![subject](/tpl/images/cats/User.png)
Engineering, 24.03.2020 00:30 jaz5380
Reference Parameters (returning multiple values): Write a C++ function that converts standard time to military time. Inputs include hours and minutes in standard time and a character equal to ‘a’ for am or ‘p’ for pm.
The function call might look like:
MilitaryTime(SHour, SMin, AorP, MHour, MMin);
Also write a main program to prompt the user for the inputs (such as 1:30 am), call the function, and display the input and the output in the following form:
12:30 am= 0030
2:30 am = 0230
3:30 pm = 1530
12:00 am = 0000
Run the program for the four cases above plus at least three other cases.
Hint: Using fill(’0’) is an easy way to show leading zeros.
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Engineering
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 19:20
At steady state, air at 200 kpa, 325 k, and mass flow rate of 0.5 kg/s enters an insulated duct having differing inlet and exit cross-sectional areas. the inlet cross-sectional area is 6 cm2. at the duct exit, the pressure of the air is 100 kpa and the velocity is 250 m/s. neglecting potential energy effects and modeling air as an 1.008 kj/kg k, determine ideal gas with constant cp = (a) the velocity of the air at the inlet, in m/s. (b) the temperature of the air at the exit, in k. (c) the exit cross-sectional area, in cm2
Answers: 2
![question](/tpl/images/cats/User.png)
Engineering, 06.07.2019 02:30
A75mm diameter shaft is supported in a journal bearing 75mm long with a diametral clearance of 0. 1mm. it supports a radial load of 1000 n and is lubricated with sae 50 oil at 70°c. find the friction torque and the power loss when the crankshaft rotates at 2900 rev/min.
Answers: 1
![question](/tpl/images/cats/User.png)
Engineering, 06.07.2019 03:20
Not a characteristic property of ceramic material (a) high temperature stability (b) high mechanical strength (c) low elongation (d) low hardness
Answers: 2
You know the right answer?
Reference Parameters (returning multiple values): Write a C++ function that converts standard time t...
Questions
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2019 05:00
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 11.10.2019 05:00
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/fizika.png)