Question: #include #include using namespace std; int main() { int height = 0, weght = 0; double bmi; string name; // prompt user for their data
#include
int main() { int height = 0, weght = 0; double bmi; string name; // prompt user for their data cout << "What is your name? "; cin >> name; cout << "Please enter your height in inches: "; cin >> height; cout << "New enter your weight in pounds (round to a whole number): "; cin >> weight; // calculate the bmi weight *= 703; height *= height; bmi = static_cast
Write a MIPS program that calculates bmi. Use the following C++ code as pseudocode. The variable bmi can be single or double precision.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
