Question: In this assignment, students will show master over basic input, expression, and output. Write a program that prompts the user for the number of minutes
In this assignment, students will show master over basic input, expression, and output.
Write a program that prompts the user for the number of minutes that were worked.
Your program should produce the following output based on minutes:
You worked minutes.
You worked for hours and minutes.
In decimal time, you worked hours.
You do no have to concern yourself with the pluralsingular of the word hour: hours is acceptable.
Rules of Engagement
Violating the rules of engagement will lead to a grade of zero.
The first three lines of the program should be comments that show: student name, course, and assignment.
There should be three sections with a comment label: Input, Processing, and Output.
Input code that gathers information from the user.
Processing code that uses the input to support the output.
Output code that displays the results.
Only print statements are allowed in the Output section each print statement is permitted a single string literal with variables. Print statements with expressions are not allowed.
Only programming constructs covered in lesson and
The following datatypes are allowed: string, float, and integer.
You should have a single print statement that corresponds to each line in the sample output.
Your program should work with a range of values not just minutes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
