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.



Write a C program to calculate the salary of each employee in your company. You need to input the ..

Answer / rakesh patil

write a c++ program to calculate employee salary using
structure

Is This Answer Correct ?    28 Yes 5 No

Post New Answer

More C++ General Interview Questions

What is the arrow operator in c++?

0 Answers  


What is a constructor in c++ with example?

0 Answers  


How the keyword struct is different from the keyword class in c++?

0 Answers  


What are the advantages of early binding?

0 Answers  


How would you call C functions from C++ and vice versa?

0 Answers   Genpact,






Which is better c++ or java?

0 Answers  


What gives the current position of the put pointer?

0 Answers  


1.what is the difference between software & package &application.

1 Answers   Infosys,


Are there interfaces in c++?

0 Answers  


What is difference between class and structure in c++?

0 Answers  


Who was the creator of c++?

0 Answers  


Is swift faster than go?

0 Answers  


Categories