How to write these programs?

Hello! I recently told a friend of mine that I could help them compile two programs, however I can only do Java and have never programmed with C++ before. Can someone show me how to create these two programs?

1.) Compute tax and possible totals with different tips when the meal charge is entered. The tax should be 6.75% of the meal cost. The tips should be 10, 15, and 20% of the total after adding the tax. Display the meal cost, tax amount, and total bill on the screen.

Pseudocode:
Set variables
Get values
Calculate tax
Add to meal cost
Calculate tips for various rates
Calculate totals and display results

2.) Write a program that asks for five test scores. Calculate the average test score and display it. The number should be in fixed-point notation with one decimal point of precision.

Thank you in advance for any help!!
For 2):

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
using namespace std;

int main()
{
    float scores[5];
    for(int i = 0; i < 5; i++)
    {
        cin >> scores[i];
    }
    cout << "The average is: " << (scores[0] + scores[1] + scores[2] + scores[3] + scores[4]) / 5 << endl;
    return 0;
}


The first one is not much harder.
Topic archived. No new replies allowed.