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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started