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:
3
Explanation:
MOD means the remainder after a division calculation.

The remainder is 3
Answer:
FF-FF-FF-FF-FF-FF and 255.255.255.255
Explanation:
FF-FF-FF-FF-FF-FF can be defined as the layer 2 address broadcast which is often used on ethernet frames as well as help to broadcast all equipment due to the fact broadcast is made possible through Ethernet networks in which the Frames are addressed to reach every computer system on a given LAN segment as far as they are addressed to MAC address FF:FF:FF:FF:FF:FF.
255.255. 255.255 can be seen as the layer 3 address which help to address the exact same hosts because it enables the broadcast address of the zero network which is the local network due to the fact that the IP broadcasts are often used by BOOTP and DHCP clients to find and send requests to their respective servers in which a message sent to a broadcast address may be received by all network-attached hosts.
Therefore the Layer 2 and Layer 3 destination addresses which the message contain are FF-FF-FF-FF-FF-FF and 255.255.255.255
This is port 80 for clear-text connections and 443 for encrypted (TLS) connections.