Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

17.1 PROJECT 1: Time Conversion Calculator Overview In this project you will demonstrate your knowledge of decision making blocks such as statements Objectives Building on

image text in transcribed
image text in transcribed
17.1 PROJECT 1: Time Conversion Calculator Overview In this project you will demonstrate your knowledge of decision making blocks such as statements Objectives Building on everything you have learned so far in this class, the objectives of this project are to demonstrate understanding of the following Input/output Variables Arithmetic expressions Division and modulo If else statements Equality and relational operators Nested if-else statements Code blocks and indentation Description Given the knowledge that there are 60 seconds in a minute, 60 minutes in an hour and 24 hours in a day you will prompt the user for the for the number of hours, minutes, and seconds as integer inputs, and your program wil output the converted time so that the larger units are as large as possible. The possible output units are days, hours minutes and seconds Make a note of the following Use singular and plural value names as appropriate, le 1 minutes 2 minutes . Do not output a unit if its value is zero For example 2 hours and 1 second, NOT 0 days. 2 hours 0 minutes and 1 second Your program must start by printing the welcome message Welcome to the Time Conversion Calculator! Your program should obtain the three inputs from the user with the following prompts, in this order Enter a number of hours: Enter a number of minutes 17.1 PROJECT 1: Time Conversion Calculator Overview In this project you will demonstrate your knowledge of decision making blocks such as statements Objectives Building on everything you have learned so far in this class, the objectives of this project are to demonstrate understanding of the following Input/output Variables Arithmetic expressions Division and modulo If else statements Equality and relational operators Nested if-else statements Code blocks and indentation Description Given the knowledge that there are 60 seconds in a minute, 60 minutes in an hour and 24 hours in a day you will prompt the user for the for the number of hours, minutes, and seconds as integer inputs, and your program wil output the converted time so that the larger units are as large as possible. The possible output units are days, hours minutes and seconds Make a note of the following Use singular and plural value names as appropriate, le 1 minutes 2 minutes . Do not output a unit if its value is zero For example 2 hours and 1 second, NOT 0 days. 2 hours 0 minutes and 1 second Your program must start by printing the welcome message Welcome to the Time Conversion Calculator! Your program should obtain the three inputs from the user with the following prompts, in this order Enter a number of hours: Enter a number of minutes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions