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 the cout in c++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Describe private, protected and public – the differences and give examples.
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What is the best free c++ compiler for windows?
Discuss the possibilities related to the termination of a program before entering the mainq method?
How compile and run c++ program in turbo c++?
What is a binary file? List the merits and demerits of the binary file usagein C++.
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Explain the different access specifiers for the class member in c++.
Write bites in Turbo c++ Header ("Include") Files.
What are the important differences between c++ and java?
What is #include cstdlib in c++?
Explain rtti.
What is vectorial capacity?