Question: 2. For the given code ,include using namespace std ??22 void main char gender: int age i double HR cout >age while (age 0) cout>gender:

 2. For the given code ,include using namespace std ??22 void

2. For the given code ,include using namespace std ??22 void main char gender: int age i double HR cout>age while (age 0) cout>gender: if ( (gender'MII(gender' HR 220-age else if (gender 'F'11 (gender HR 206-0.88 age cout>age/ Do the following 2.1. Complete the general comments of this program (in short state what the program does, what the input and output are) 2.2 Complete the program to validate the gender (it cannot be other than M, m, F, or f) 2.3. Change the program to use this function:double ComputeHR (int, char)://prototype You have to figure out what the return value and the parameters mean. Grading Scale: Pb 1 (10+10+15) Pb 2(15, 15, 25) Format of Submission (10)-- Total: 100

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 Databases Questions!