Santa Monica College Program to Store Total Hours Work of Everyday C++ Question
In the space provided below, write a C++ code that does the following:
It asks the user to enter the total number of days they worked in a given pay period and the total number of hours they have worked on each of those days and their hourly rate. It then prints the total earning for each day followed by the total earnings for the pay period. Assume that there is no overtime pay.
You must use a dynamic array (of days) to store the total hours worked on each day, and you must use pointers to access the elements of the array.
- Each student should individually write a C++ program which uses a class that contains the following members: the name of a student, one midterm score, one final score, and one lab project score. The class also contains a member function that finds the average of the three scores and displays a grade based on that average (A for 90 and above, B for 80 and above, C for 70 and above, D for 60 and above, and F for anything less than 60). The class also contains a member function that displays a pass if the grade is D or above. Your program using overloading prints the grades of students, and names of the students.