Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project # 3 Requirements: There is extra credit with this project ( last page ) . Design and develop a two - file program (

Project #3 Requirements: There is extra credit with this project (last page).
Design and develop a two-file program (use a header file for functions) that computes an
Evacuation Status for the International Space Station (ISS) based upon the size and distance of a
Meteor coming toward the station. The program will accept a meteor size in meters and
distance from the station in miles, and output to the console the Meteor Data and Status of
Evacuation (shown below).
1. Prompt the user for meteor size in meters, distance from Earth in miles using a void
function in the header file.
a. Validate the input...must be >0
2. Determine the following two values using a single function located in the header file:
a. The speed of the meteor (size in meters *120 mph)
b. Time to impact (distance /speed in mpm)
3. Determine this value using a function in the header file that returns a string
a. The Evacuation Status (based on the criteria provided below)
4. Display the results using an output function in the header file
5. Create a loop in main to run the program multiple times and clear the screen
between runs using system(CLS)
Main can only have variable declarations, the loop, and calls to functions that are in a header
file. All other operations and calculations must be in functions located in the header file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

How can an angular closure be obtained on a link traverse?

Answered: 1 week ago

Question

What is the meaning of the following RTN statement: (OP:=12) R[ra]

Answered: 1 week ago