Cashback Offer from 10th to 18th May 2021. Get Flat 20% Cashback credited to your account for a minimum transaction of \$80. Post Your Question Today!

Question DetailsNormal
\$ 24.00

# Project 3 | Complete Solution

Question posted by

Goal:  Using loops, functions, and formatting output. Do not use arrays.

Problem:  Once launched a weather balloon can gather data about temperature and pressure for days.  During the day the sun will warm the helium in the balloon and the balloon will rise to a higher altitude.  At night, the helium will cool and the balloon will sink.  This change in altitude can be approximated by the equation

Altitude(t) = -0.12t4 + 12t3 - 380t2 + 4100 t +220

where t is time in hours and altitude is in meters.  The velocity of the balloon can similarly be approximated by the polynomial

Velocity(t) = -0.48t3 + 36t2 – 760t + 4100

where t again is in hours and velocity is in meters/hour.

For this project you are to write a program that will calculate the altitude (in meters) and velocity (in meters per second) of the balloon to create a table and histogram of the height.  You program should:

v  prompt the user to enter a start time for the monitoring,

v  robustly confirm that the number is greater than or equal to  0 and less than or equal to 50,

v  prompt the user to enter when the calculating should end,

v  robustly confirm that the input is greater than the starting time and less than or equal to 50 hours,

v  prompt the user to enter the time increments,

v  and robustly confirm that the time increments > 0 and less than 3 hours.

Next your program should use a for loop to generate a table beginning at the start time and ending at the stop time.  This table should contain the time, the balloon height (meters) and the balloon velocity (meters/second) and a horizontal histogram that displays the height of the balloon using asterisks.  Each asterisk should symbolize 500 meters and you should round the number of asterisks that are printed, e.g. 3225 would be printed as 6 asterisks and 3790 would be printed as 8 asterisks.  Your table would then look something like

Time        Height         Velocity        (Each * symbolizes 500 meters)

(hrs)        (meters)        (m/s)

0.00         220.00         1.14

0.50       2176.49         1.04                 ****

1.00       3951.88         0.94                 ********

1.50       5554.89         0.84                 ***********

2.00       6994.08         0.76                 **************

2.50       8277.81         0.67                 *****************

3.00       9414.28         0.59                 *******************

The calculation of height and velocity should be done in a single function that will accept the time, calculate the height and velocity of the balloon and send both the height and velocity back to the function call.

Your program should also employ a do-while loop that allows the user to repeat the entire process with different starting and stopping times.

\$ 24.00

## [Solved] Project 3 | Complete Solution

• This solution is not purchased yet.
• Submitted On 03 Nov, 2015 05:42:20
int main() { int choice; do { cout<<"Enter Start time of the monitoring :"; float startTime,endTime,inter...
Buy now to view the complete solution
Attachment
Other Similar Questions
Tutor...

### math project 3-liberty university

Answer for math project 3-liberty university...
kmgina

### Liberty University MATH 201 Project 3 complete solutions correct answers A+ work

Liberty University MATH 201 Project 3 complete solutions correct answers A+ work Get a good grade! Based on Larson & Farber: sections 5.2–5.3 Go to this website. First, set the date range to be for exactly 1 year ending w...

### CMSC 350 Project 3

CMSC 350 Project 3 The third programming project involves writing a program that allows the user to enter a binary tree in a parenthesized prefix format and then allows it to be categorized and allows various features of t...
Tutor...

### IFSM 201 Excel Project 1, IFSM 201 Excel Project 2, IFSM 201 Excel Project 3

IFSM 201 Excel Project 1 IFSM 201 Excel Project 2 IFSM 201 Excel Project 3 ...
Tutor...

### Project 3: Government Mobile Apps Security Assessment & Strategy

Overview It has been seen that the implementation of mobile apps has been increased to a high level or has been increased enormously for the digital services. These services are delivered by the federal government of the U.S...

#### The benefits of buying study notes from CourseMerit

##### Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
##### Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.