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 the return value of the insertion operator?
What are the advantages of prototyping?
What are pointer-to-members? Explain.
When does a name clash occur in c++?
What is a namespace in c++?
Should the member functions which are made public in the base class be hidden?
What is difference between initialization and assignment?
12 Answers HCL, HP, Infosys,
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
Does c++ have a hash table?
What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What are default parameters? How are they evaluated in c++ function?