Question: 1. write c++ program to calculate wages depending onhours worked and on whether any overtime had been worked . the wages is calculates according to
1. write c++ program to calculate wages depending onhours worked and on whether any overtime had been worked . the wages is calculates according to : if hours worked
wage = hours worked X hourly rate
otherwise :
wage = ( 40 + (hours worked - 40 ) * overtime factor x hourly rate .
2. Write C++ program to calculate the area of a square (area = side2) or a triangle (area =
) after prompting the user to type the first character of the figure name ( t or s ).
3. suppose you are the manager of supermarket and planing for making offers . the following statements used to compute the discount :
the discount price = the item price x discount rate
the offer price = the item price - the discount price
the above equations executed when the discount rate is not zero and when the item price more than 20 pounds.
4. read three letters then find and print the one that comes first in the alphabet .
5. the airforce has asked you to write a program to classify the aircraft as follows:
a) aircraft with velocity greater then 1100 km/h and its length is greater than 52 m is (civilian).
b) aricraft with velocity greater then 1100 km/h and its length is less than 52 m is ( military ).
c) aricraft with slowing speeds is ( unknowns ).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
