Question: Write a c + + program to determine if an individual has a marathon time that qualifies them for the Boston Marathon. Input: prompt for

Write a c++ program to determine if an individual has a marathon time that qualifies them for the Boston
Marathon.
Input: prompt for and input this data (see the sample runs below):
1. a first name and a last name and input each into a separate string variable
2. an age and input it into an integer variable
3. an indication of gender and input it into an appropriate variable
4. a time in hours, minutes, and seconds and input each part into a separate integer variable
Output: (see the sample runs below):
1. First and last names of the individual
2. Their age and gender (using "male" and "female", no matter how the data was entered)
3. Their time
4. An indication of whether or not they qualify
5. If they do not qualify, indicate if it is due to age (<18) or time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!