Question: Consultant Charges Conditional Operator Input Try to get the numbers of hours worked Calculations If the hours worked is less than 5, assign 5 to
Consultant Charges Conditional Operator
Input
Try to get the numbers of hours worked
Calculations
If the hours worked is less than 5, assign 5 to hours. Otherwise assign the user input hours. Use a conditional operator to get hours
Charges are 50 times the hours
Output
Print the charges
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
