Answered step by step
Verified Expert Solution
Link Copied!

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.4image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

An Introduction To Derivative Securities Financial Markets And Risk Management

Authors: Robert A. Jarrow, Arkadev Chatterjee

2nd Edition

194465965X, 978-1944659653

More Books

Students also viewed these Accounting questions

Question

What are the different forms of depositary receipt?

Answered: 1 week ago