Details of this Paper

weather balloon?s performance

Description

solution


Question

The program will provide output data file for the selected weather balloon?s performance. User will select the weather balloon and the program will provide the table in the output data file with time, height and velocity.;There are three different weather balloons in the inventory WB_1, WB_2 and WB_3. Each has different height and velocity behavior;(see the table below). Basically, there are three balloons with three different flight characteristics. The abstract height and velocity equations and related the parameter values for each balloon are provided: Height Equation (time) =A1xt^4 + B1xt^3 + C1xt^2 + D1xt + E1;Velocity Equation (time) =A2xt^4 + B2xt^3 + C2xt^2 + D2xt+E2;The equation parameters for the 3 balloons (displayed in a table) are;WB_1: A1, B1, C1, D1, E1, A2, B2, C2, D2, E2;WB_1: -0.12, 12, -380, 4100, 220, 0, -0.48, 36, -760, 4100;WB_2: A1, B1, C1, D1, E1, A2, B2, C2, D2, E2;WB_2: -0.11, 10, -235, 3850, 178, 0, -0.5, 34, -564, 3450;WB_3: A1, B1, C1, D1, E1, A2, B2, C2, D2, E2;WB_3: -0.18, 14, -401, 4860, 235, 0, -0.6, 39, -843, 4300;USER INPUTS;Two inputs a) Selection of weather balloon b) Time frame of the flight;simulator;BALLOON;User would be able to select the weather balloon to learn about the;Height and Velocity with in determined time frame.;The menu options;1. Option 1 Weather balloon 1 (WB_1);2. Option 2 Weather balloon 2 (WB_2);3. Option 3 Weather balloon 3 (WB_3);4. Exit;TIME;User would be able to select the time/duration to record/observe the behaviors of the balloon. Enter initial value of the time (in hours);Enter increments between line (in hours);Enter the final value of the observation (in hours);THREE FUNCTIONS TO DEVELOP;You are expected to develop three functions for this project;? myMenu to show themain menu with four options;? myAltitude to calculate the Height in meters by using the;provided Height Equation formula myAltitude (A1,B1,C1,D1,E1...);? myVelocity to calculate the Velocity (meters/s) by using the;provided Velocity Equation formula myVelocity (A2,B2,C2,D2,E2...);PROGRAM OUTPUT;The program will only provide a confirmation message with output data file name on the screen. The output data table will not appear on the screen. Output data table will be saved in the data file.;The output data table will have three columns;Column# XXXXX Time (Hours);Column #2 Height (Meters);Column #3 Velocity (meters/s);For example, The first line of a data file generated by a sample program uses an initial time of 0 hours, an increment of 0.5 hours and a final time of 22 hours..;PROGRAM EXECUTION;? If option #1 was selected then Output date file name:Lastname_ WB_1.txt After generating the numbers and record them in the output data file, program will show the menu items again. At this point user can exit from the program by selecting option 4 or select another balloon.;? If option #2 was selected then Output date file name:Lastname_ WB_2.txt After generating the numbers and record them in the output data file, program will show the menu items again. At this point user can exit from the program by selecting option 4 or select another balloon.;? If option #3 was selected then Output date file name: Lastname_ WB_3.txt After generating the numbers and record them in the output data file, program will show the menu items again. At this point user can exit from the program by selecting option 4 or select another balloon.;TERMINATION;Program will NOT stopuntil user selects option 4 Exit in the main menu.;WARNING MESSAGES;WARNING MESSAGE 1: There must be a warning message of ? Invalid Entry !?: if the user enters a choice (option) which is NOT given in the menu items (i.e.5), user will be prompted by ? Invalid Entry !? and the menu items must be shown again to give the user an opportunity to make correct selection.;WARNING MESSAGE 2: There must be a warning message of ?NOT PROPER DURATION ?: if user enters TOTAL HOURS for simulation /observation smaller than 5 hours or bigger/longer than 24 hours.;And then the program will give another chance user to reenter time parameters;Enter initial value of the time (in hours);Enter increments between line (in hours);Enter the final value of the observation (in hours);The program will not go further if user cannot enter acceptable time parameter.;NOTE;Use setw(), and clear screen options within the program to make your user interface and output data files nice.

 

Paper#71388 | Written in 18-Jul-2015

Price : $27
SiteLock