subject
Engineering, 17.03.2020 23:15 brokegirlyy

In this program you will read in the number of seconds and convert it to days, hours, minutes and remaining seconds. Your program will make use of long long int variables for all calculations. Note: the use of long long int requires that you have C++11 support. You should have this automatically if you are using a newer version of Visual Studio. The support is there for GCC as well but you may need the -std-c++11 or -std-c++0x compiler flag. You first need to read in the total number of seconds. Your should then output this value as follows: Total seconds xxx Where xx is the number of seconds you read in If this value is 0 or less you need to output the message Total seconds must be greater than zero For example, assume the input is: -102 The output will be as follows Total seconds: -102 Total seconds must be greater than zero If the number is more than zero you need to calculate the number of days, hours, minutes and seconds. The value for hours should be after you have subtracted off the number of days. The value for minutes will be the number of minutes after you have subtracted the days and hours. Seconds will be the remainder after you have subtracted the days, hours and minutes. You should only output the days if the number of days is more than 0. You should only output the hours if the number of hours is more than 0. You should only output the minutes if the number of minutes is more than 0 and you should only output the seconds if the number of seconds is greater than O For example, assume the input is: 90061

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
You know the right answer?
In this program you will read in the number of seconds and convert it to days, hours, minutes and re...
Questions
question
English, 20.09.2020 14:01
question
Business, 20.09.2020 14:01
question
Mathematics, 20.09.2020 14:01
question
Chemistry, 20.09.2020 14:01