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 use of register keyword with the variables?

0 Answers  


What does extern mean in a function declaration in c++?

0 Answers  


How to implement flags?

2 Answers   Symphony,


Explain working of printf?

8 Answers  


What is Object Oriented programming.what is the difference between C++ and C?

8 Answers   Infosys,






Write my own zero-argument manipulator that should work same as hex?

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. x + y=z;

2 Answers  


What is an action class?

1 Answers  


What's the hardest coding language?

0 Answers  


What are the difference between reference variables and pointers in C++?

1 Answers  


How does a copy constructor differs from an overloaded assignment operator?

0 Answers  


Write a program which uses Command Line Arguments

0 Answers  


Categories