The program that checks the BMI of a patient is given below:
<h3>THE CODE</h3>
#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
// C++ program to illustrate
// how to calculate BMI
float BMI(float height, float weight)
{
float bmi = weight / pow(height, 2);
return bmi;
}
int main()
{
float height = 1.79832;
float weight = 70;
// Function call
float bmi = BMI(height, weight);
cout << "The BMI is " << setprecision(15) << bmi
<< " so ";
// Conditions to find out BMI category
if (bmi < 18.5)
cout << "underweight";
else if (bmi >= 18.5 && bmi < 24.9)
cout << "Healthy";
else if (bmi >= 24.9 && bmi < 30)
cout << "overweight";
else if (bmi >= 30)
cout << "Suffering from Obesity";
return 0;
}
// This code is contributed by aarohirai2616.
<h3>Output: </h3>
The BMI is 21.64532402096181 so Healthy
Read more about algorithms here:
brainly.com/question/24953880
#SPJ1
Answer:
Create a new C# windows application with the name SalsSandwiches. Add the below code in respective file.
Explanation:
See attached images for the source code and output
<u>Automatic Draft-</u> A convenient payment method where funds are automatically debited from your account.
<u>Cash-</u> The physical form of currency.
<u>Credit Card-</u> Allows you to make a purchase and pay for it later.
<u>Digital Wallet-</u> An electronic device that aids consumers to make online payments through various websites.
For anyone still looking, hope this helps.
Explanation:
when a user changes his or her view to a Report only view when using QuickBooks online they only see a report list page, without having such features as; Navigation panel, Search box or Quick Create (+) icon.
Explanation:
To ensure a smooth transfer, the outgoing incident commander should provide a transfer of command briefing to the new incident commander. This should be done in a scenario in which the Deputy Incident Commander will be replacing the current Incident Commander.