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 Posted / rakesh patil
write a c++ program to calculate employee salary using
structure
| Is This Answer Correct ? | 28 Yes | 5 No |
Post New Answer View All Answers
What do you mean by early binding?
Explain the uses oof nested class?
What is runtime polymorphism in c++?
What is the auto keyword good for in c++?
What is namespace & why it is used in c++?
What is the advantage of c++ over c?
What is format for defining a structure?
What is the basic structure of a c++ program?
Out of fgets() and gets() which function is safe to use?
What is the use of turbo c++?
Which should be more useful: the protected and public virtuals?
What is the default access level?
What are c++ storage classes?
Define a nested class. Explain how it can be useful.
What does new in c++ do?