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


Please Help Members By Posting Answers For Below Questions

Define private, protected and public access control.

602


Define pure virtual function?

556


Refer to a name of class or function that is defined within a namespace?

593


Which programming language should I learn first?

572


Does c++ support multilevel and multiple inheritances?

544






Explain the use of virtual destructor?

618


Do you know about latest advancements in C++ ?

652


Does there exist any other function which can be used to convert an integer or a float to a string?

645


What is scope in c++ with example?

626


What is the difference between passing by reference and passing a reference?

553


Difference between declaration and definition of a variable.

583


Does c++ have string data type?

687


Is c++ a software?

722


What are the advantages of pointers?

593


Is there finally in c++?

611