C++ problem make function
Steve’s Tool Shoppe will rent you a power washer based on thetime you need to use it. Steve charges 25 cents per minute for thefirst hour and 18 cents per minute for each minute after that.Write a C++ function that accepts the number of minutes as anargument. The function should return the cost for that power washerrental. Write a complete C++ program below that will demonstratethe function by calling it after asking the user to enter thenumber of minutes from the keyboard. Assume that the user mustenter minutes as a whole number. The main() function should printthe cost using an appropriate label and decimal places. Create ado-while loop that allows the user to repeat charges for multiplecustomers. After each transaction, ask the user if they would liketo process another customer. The user will reply with a "Y" or "N".The function definition should be placed after the function main().Be sure to include documentation for your program and the functionas discussed in class. Be sure to use global constants for allliteral values. These should be declared using ALL CAPS.
C++ problem make function Steve’s Tool Shoppe will rent you a power washer based on the time you need to use it. Steve c
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am