Question: In C + + Write the code to determine an amount paid to an employee calculated in this way for a fictitious rice company. The

In C++ Write the code to determine an amount paid to an employee calculated in this way for a fictitious rice company. The employee is paid 1 nickel on day one or $0.05. The pay for each day is doubled. For example, pay will be doubled to 2 nickels on the second day ($0.10) for a total pay of $0.15. The program should accept input for the number of days worked and output the total pay in dollars with two decimal places.
((10 points - correct use of loop
10 points - correct output (You may want to include daily pay for debugging purposes but not in the final program. Only output the final pay.)
10 points - correct output format))

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 Programming Questions!