Number of minutes in an hours and number of seconds

Assignment Help Basic Computer Science
Reference no: EM132003001

Write program that asks the user to enter a time duration in hours, minutes, and seconds and then displays the time in terms of hours in decimal format. There are 60 minutes in an hour, and there are 60 seconds in a minute. Represent these number of minutes in an hours and number of seconds in a minute as constant in your program.You should use a separate variable for each input value.Please make sure that minutes and seconds are less than and equal to 59. If the users enter this more than 59 or negative it should be asking him to reenter the information.

A sample run should look like this (user input is in bold):

Enter a hours, minutes, and seconds:

First, enter the hours: 10

Next, enter the minutes: 30

Finally, enter the seconds:30

10 hours, 30 minutes, 30 seconds = 10.50833 hours

At the end of the inputs and after display of the results, you should ask the user if he wants to continue, and if the input is 'Y' you should repeat the process.

Reference no: EM132003001

Questions Cloud

While loop and for loop in matlab : What is the difference between the while loop and for loop in matlab?
Describe your overall reaction after the event experience : For events A or B: Clearly identify the event location, date attended, the attendees, and your initial reaction upon arriving at the event.
Driving a car coming to an intersection that has a stop sign : You are driving a car coming to an intersection that has a stop sign. You will make a right turn at the intersection. Can someone pls help!
Calculate the npv of decision to grant credit : Solar Engines manufactures solar engines for tractor-trailers. Calculate the NPV of the decision to grant credit.
Number of minutes in an hours and number of seconds : Write program that asks the user to enter a time duration in hours, minutes, and seconds and then displays the time in terms of hours in decimal format.
What will be approximate population of the united states : What will be the approximate population of the United States, if its current population of 316 million grows at a compound rate of 2.1% annually for 25 years?
Identify the regulations concerning venipuncture : Identify the regulations concerning venipuncture, drug administration, and IV medication and how these standards in your field
Draw an applications architecture diagram showing interfaces : Draw an applications architecture diagram showing interfaces for all systems in the Case Study that will be operating at the client site and their connections
Present value equation and future value equation : Describe the relationship between the Present Value Equation and The Future Value equation

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd