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

Distinguish between a # include and #define.

0 Answers  


Where Malloc(), Calloc(), and realloc() does get memory?

0 Answers  


write a porgram in c++ that reads an integer and print the biggest digit in the number

0 Answers  


What does it mean to declare a member function as virtual?

0 Answers  


What causes a runtime error c++?

0 Answers  






Difference between delete and free.

0 Answers  


Differentiate between late binding and early binding.

0 Answers  


Explain the purpose of the keyword volatile.

0 Answers  


What is main function in c++ with example?

0 Answers  


When volatile can be used?

3 Answers   Symphony,


Is c++ harder than java?

0 Answers  


Is it possible to use a new for the reallocation of pointers ?

0 Answers  


Categories