subject
Computers and Technology, 07.03.2020 04:22 Tayj91

In this project you will demonstrate your knowledge of decision making blocks such as if 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 will 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, like 1 minute vs. 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: o Enter a number of minutes: • Enter a number of seconds: • You can assume that the user will never enter a negative number, but they can enter one or more O's. In the unique case that the user enters 0 for all three inputs, you should output: No time units to report. Refer to the sample runs below for how to format your output. Note that the time values are indented 4 spaces. Examples of a sample run: Welcome to the Time Conversion Calculator! Enter a number of hours: 1 Enter a number of minutes: 2 Enter a number of seconds: 3 Your time conversion is: 1 hour 2 minutes 3 seconds Goodbye! Welcome to the Time Conversion Calculator! Enter a number of hours: 0 Enter a number of minutes: 0 Enter a number of seconds: 0 Your time conversion is: No time units to report. Goodbye! Welcome to the Time Conversion Calculator! Enter a number of hours: 30 Enter a number of minutes: 20 Enter a number of seconds: 1000 Your time conversion is: 1 day 6 hours 36 minutes 40 seconds Goodbye!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
You know the right answer?
In this project you will demonstrate your knowledge of decision making blocks such as if statements....
Questions
question
Social Studies, 28.12.2020 09:10
question
English, 28.12.2020 09:20
question
Mathematics, 28.12.2020 09:20
question
Mathematics, 28.12.2020 09:20
question
English, 28.12.2020 09:20
Questions on the website: 13722363