Question: In C++ Please... Consider *int *ptr; In the function please only ask for the houly rate once Assignment 11 Target Goal: Write a program that

 In C++ Please... Consider *int *ptr; In the function please only

In C++ Please... Consider *int *ptr;

In the function please only ask for the houly rate once

Assignment 11 Target Goal: Write a program that will total your wages for a pay period. As a user, I should be asked to enter how many daysI worked, the hours worked per each of those days, and then be asked for how much per hour I make. I should then see in a neatly formatted display, my total gross earnings for that pay period of days entered . Start by asking the user how many days they have worked and their hourly rate while working those hours. Store these into variables as they will become handy later Create a pointer to a dynamically allocated array of the size equal to days worked. Remember this is done with the "new" keyword. Recall the relationship between pointers and arrays . Ask the user how many hours they worked for each day Display each day using a loop and total the number of hours worked and multiply the total times the hourly rate. Use any functions you feel is necessary to write in this program. You will be critiqued on your structure. There should be at least one other function besides main. Determine what you feel is necessary. Remember to delete the dynamic array after use before the program ends and it is deallocated automatically

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!