Question: Create a function named Salary. The function will calculate how much you make in a week. The formula you will use is: number of hours

Create a function named Salary.

The function will calculate how much you make in a week.

The formula you will use is: number of hours * pay rate.

The function will ask the user to input their pay rate and number of hours worked in a week.

The function will then calculate how much the user made and return that value to the main function where it will print out to the screen the users weekly salary.

The language is C++ and we're using the Dev-C++ application.

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!