Assignment2 For each of the following questions show (g inputs and outputs (i) m
ID: 3749438 • Letter: A
Question
Assignment2 For each of the following questions show (g inputs and outputs (i) manual alculation (m) flow chart (N) code in Co (v) test screens, Submit as a Ms Word document. No photos please. carrier based catapult, given the jet's takeoff speed in km/hr and the distance (meters) over which the catapult accelerates the jet from rest to take odd. Assume constant acceleration. Also calculate that calculates the acceleration (m/s2) of a jet fighter launched from a aircraft - 1. Write a program the time (seconds) for the fighter to be accelerated to takeoff speed. When you prompt the user, be sure to indicate the units for each input. For one run use a takeoff speed of 278 km/hr and a distance of 94 meters1 0)5 Use formulas where v is velocity, a is accretion, t is time and s is distance ssat house given the number e a program that calculates how many BTUS of gallons of oil burned and the efficiency of the house's oil furnace. Assume that a barrel of oil (42 gallons) has an energy equivalent of 5,800,000 BTU. Test with efficiency of 65% and 100 gallons of 2. oil. Write a program that estimates the temperature in a freezer in C degrees given the elapse time in hours since a power failure. Assume the temperature T is given by 3. 4t2 Where t is the time since the power failure. Your program should prompt user to enter how long it has been since the start of the power failure in hours 4. Write a program to assist in design of a hydro-electric dam. Prompt the user for the height of the dam and for the number of cubic meters of water that are projected to flow top to the bottom of the dam each second. Predict how many MW of power will be produced if 90% of work done on the water by gravity is converted to electric energy. Note that the mass of one cubic meter of water is 1000 kg Use 9.8m/s2 as the gravitational constantg.The relevant formula is wsmgh.Explanation / Answer
As there are no subparts to the third question. I'll be answering this question as a code which would serve the purpose of the requirement asked in the question.
--------------------------------------------------------------------------------
#include <iostream>
using namespace std;
int main() {
int t;
cout<<"Enter the time elapsed since the power cut in hours: "<<endl;
cin>>t;
cout<<"The Temperature of the freezer now is (in C): "<<endl;
cout<< (4*t*t - 20*t - 40) / (t+2);
return 0;
}
--------------------------------------------------------------------------------
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.