Professional Documents
Culture Documents
PROBLEM: Write a program that will determine the gross pay of an employee after entering the hourly
rate and the number of hours worked. The formula for getting the gross pay is Gross = hours*rate. If there
is an overtime, the formula is Gross=0.015*rate*(hours-40.0)+(40.0*rate).
IF-ELSE LADDER
PROBLEM: Write program that will accept a temperature value and will determine if it's state: less than 0
- ICE, between 0-100 - WATER, greater than 0 - STEAM.
SWITCH STATEMENT
PROBLEM: Write a program that will input a letter and determine the letter if it’s a consonant or a
vowel.