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 / rakesh patil
write a c++ program to calculate employee salary using
structure
| Is This Answer Correct ? | 28 Yes | 5 No |
Comment on local and global scope of a variable.
Does c++ support multilevel and multiple inheritances?
Why do we use constructor?
What is the difference between a constructor and a destructor in C++?
In a function declaration what does extern means?
What is compilation?
What is c++ hash?
What is the use of 'using' declaration in c++?
What does new in c++ do?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
How can a called function determine the number of arguments that have been passed to it?
write a function signature with various number of parameters.