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 is split a string in c++?
What are formatting flags in ios class?
What is scope operator in c++?
What are c++ files?
Why do we use classes in programming?
Can union be self referenced?
What are single and multiple inheritances in c++?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What would happen on forgetting [], while deallocating an array through new?
What is meant by const_cast?
What is a map in c++?
What is the difference between prefix and postfix versions of operator++()?
Explain the different access specifiers for the class member in c++.
What gives the current position of the put pointer?