Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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