### Need add Choose Measure Unit in BMI

i complete my code dy..but now i wan add a features to choose measure unit on the BMI calculator..and also add array to make several BMI calculation on the same time..is this possible?

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120`` `````` #include using namespace std; void displayMenu() { cout << "*-------------------------------------*" << endl; cout << "| BMI Calculator |" << endl; cout << "|=====================================|" << endl; cout << "| Select: |" << endl; cout << "| 1 => Display Data |" << endl; cout << "| 2 => Insert Data |" << endl; cout << "|-------------------------------------|" << endl; cout << "| 3 => Calculate Standard BMI |" << endl; cout << "| 4 => Clear Data |" << endl; cout << "|-------------------------------------|" << endl; cout << "| Q => Quit |" << endl; cout << "*-------------------------------------*" << endl; cout << endl; cout << "Choice: "; } void DisplayData( string &name, float &weight, float &height,float &bmi ) { cout << endl; cout << "Name = " <>name; cout <<"Enter your weight in Kilograms (KG) : "; cin >> weight; cout <<"\nEnter your height in Meters (M) : "; cin >> height; cout<<"You are now able to calculate your BMI."< 18.5 ) && (bmi < 25)) cout << "Your weight is in the normal range."<= 25) cout << "You are overweight."<> choice; choice = toupper(choice); switch (choice) { case '1' : DisplayData(name, weight, height, bmi); break; case '2' : InsertData( name, weight, height, bmi); break; case '3' : DebugCalculator(name,weight,height); setPrecision(); Calculate( name, weight, height, bmi); break; case '4' : DisplayData(name="null", weight=0,height=0,bmi); cout << "Your record have been deleted, please insert your data again." << endl; break; case 'Q' : invalid = false; cout<<"Thanks for using"<
anyone help me pls?
 is this possible?
Sure:

 make several BMI calculation
turn `weight` and `height` into an array. Introduce another variable that contains the number of calculation (you need to ask the user for this)

 choose measure unit
Introduce another variable for that. Ask the user. Before you calculate the BMI convert the values to the base unit (m/kg)
Thx so much!!!!
Topic archived. No new replies allowed.