Write a C program to calculate the salary of each employee
in your company. You
need to input the hours worked and the hourly rate. The
company pays 1.5 times
the hourly rate for all hours worked in excess of 48 hours.
Use the formulas below
to calculate the salary:
if employee worked less than 48 hours
salary = hours * rate;
if employee worked more than 48 hours
salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5;
You are required to use a loop to produce the sample output
as given below.
Answer / rakesh patil
write a c++ program to calculate employee salary using
structure
| Is This Answer Correct ? | 28 Yes | 5 No |
What is abstraction in c++ with example?
Is c++ map a hash table?
What is array give example?
What is == in programming?
What is constant in c++ with example?
Which coding certification is best?
What do you mean by global variables?
Explain the difference between struct and class in terms of access modifier.
Can we distribute function templates and class templates in object libraries?
What is else if syntax?
What is the limitation of cin while taking input for character array?
Should a constructor be public or private?