Question: 2) Write a function named salary() to calculate the salary per month and display the value of salary based on the following formula salary= (hours
2) Write a function named salary() to calculate the salary per month and display the value of salary based on the following formula salary= (hours rate) insurance where insurance is a global variable that equals to 3.6. In the main function main(), prompt the user to enter the hours and rate and pass the as arguments in the function call for salary(). Output: Enter the number of hours: 286 Enter the rate: 12 The salary is: 3428.4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
