Question: create a program for each of the following ( Submit the . cpp source code file for each ) : ( age 2 0 4

create a program for each of the following (Submit the .cpp source code file for each):
(age2040) Get the user to input their current age and the current year. Calculate and output what their age will be in the year 2040.
5 points - user friendly/correct input for current age
5 points - user friendly/correct input for current year
10 points - correct use of assignment statement
10 points - user friendly/correct output statement
(pay) Input the number of hours worked for a week, and the hourly pay rate. Output the total pay.
10 points - correct input statements
5 points - correct use of assignment statement
5 points - correct output statement
10 points - output formatted for currency (dollar sign and 2 decimal places example: $2.25)
(score) Input the number of questions on an exam, the number of correct questions, and a student first name. Output the name and the grade for the exam.
15 points - correct number and formatting for 3 inputs
10 points - correct formula for calculating a percent grade
15 points - correct output of the percent grade. (example: Marty's grade for the exam was 82%)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!