need help with my problem

I already done part a and i but i don't know how to do part M

m. Write a C++ program that tests each of the C++ statements that you wrote
in parts a through l. Place the statements at the appropriate place in
the previous C++ program segment. Test run your program (twice) on
the following input data:
a. num1 = 13, num2 = 28; name = "Jacobson"; hoursWorked = 48.30.
b. num1 = 32, num2 = 15; name = "Crawford"; hoursWorked = 58.45.


here is my code

//part a
#include <string>
#include <iostream>

//part b
using namespace std;

//part c
const int SECRET = 11;
const double RATE = 12.50;

int main()
{
//variable declaration
// part d
int num1, num2, newNum;
double hoursworked, wages;
string name;

//part e
cout << "Enter two integers, separtaed by a space ";
cin >> num1 >> num2;
cout << endl;

//part f
cout << "The value of num1 = " << num1 << " and the value of num2 = " << num2 << "." << endl;

//part g
newNum = num1 * 2 + num2;
cout << "The value of newNum =" << newNum << endl;

//part h
newNum = newNum + SECRET;
cout << "The value of updated newNum =" << newNum << endl;

//part i
cout << "Please enter you last name: ";
cin >> name;
cout << endl;

//part j
cout << "Please enter a decimal number between 0 and 70: ";
cin >> hoursworked;
cout << endl;

//part k
wages = RATE * hoursworked;

//part i
cout << "Name: " << name << endl;
cout << "Pay Rate: $" << RATE << endl;
cout << "Hours Worked: " << hoursworked << endl;
cout << "salary: $" << wages << endl;


//executable statements

//return statement
return 0;

}
It looks like you've already done it - what are you having trouble with, exactly?
Topic archived. No new replies allowed.