Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started