1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
KatRina [158]
1 year ago
8

1.Know the BMI of the user. First, the user will input the height in meters and weight in kilograms. After inputting, the inputt

ed data will be processed - the weight will be divided by height in meters squared to get the BMI. The calculated BMI will be going into a decision.If the calculated BMI fall to <18.5,it well be categorised as "underweight",if <24.9,it is "normal weight";if <30,it is "over weight";and if the user got the higher result than usual,it will be categorised as "abesity".
2.Write an algorithm to compute the sum of the two given integer values. If the two
values are the same, then return triple their sum.

3.Write an algorithm to check two given integers, and return true if one of them is 30 or if their sum is 30.​

Computers and Technology
1 answer:
Verizon [17]1 year ago
3 0

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

You might be interested in
For which tasks would Excel be useful? Check all that apply.
viktelen [127]

Answer:

Creating charts or graphs

Bringing data together

Storing Financial data

Explanation:

Excel is great at creating charts and graphs

Also good at compiling data

You wouldn't necessarily want to type an essay in excel, so not for writing an essay

You cannot schedule appointments through excel, although I guess if you really wanted to you could organize them in excel

Excel is fine for storing financial data, you can even manipulate it in the program

You cannot draw conclusions using excel directly, although you can organize data in such a way using excel that it makes it easy to identify trends and such for you to draw your conclusions

5 0
3 years ago
Who need best OCR app . I will help you.​
myrzilka [38]

Answer:

i do

Explanation:

7 0
3 years ago
1. Which mechanical part or feature listed in the section on Critical Vehicle Systems do you think is most important?
kaheart [24]
I think it would be seatbelt but is it a multiple choice if so what's the choices
3 0
4 years ago
Read 2 more answers
in which of the following scenarios would a router send a resign message? answer if a preempted active router fails, the standby
hodyreva [135]

A scenario in which a router would send a resign message include the following: A. if a preempted active router fails, the standby router becomes the active router. If the preempted active router regains service, it sends a coup message. The current active router sends the resign message after receiving the coup message.

<h3>What is a router?</h3>

In Computer technology, a router can be defined as a network device (node) that is designed and developed to connect two (2) different computer networks together, in order to allow them communicate by forwarding and receiving encapsulated data (Ethernet frame) and packets.

<h3>What is a resign message?</h3>

In Computer networking, a resign message can be defined as a set of information that is typically sent by an active Hot Standby Router Protocol (HSRP) network device when it is preparing to go offline or whenever it wants to relinquish the active role due to some other reasons.

This ultimately implies that, a resign message instructs or informs a standby router to get ready to become the active router and take over the active role.

Read more on router here: brainly.com/question/24812743

#SPJ1

8 0
1 year ago
NEED HELP AGAIN
Anestetic [448]
The answer to the question is D)
8 0
3 years ago
Read 2 more answers
Other questions:
  • Suppose a subnet has a prefix 128.119.44.128/26. Give an example of an IP address from this subnet. If an ISP owns a block of ad
    14·2 answers
  • Which of the following OSI layers is responsible for the segmentation, multiplexing, flow control and host-to-host communication
    6·1 answer
  • Which is the most likely problem with a static layout?
    5·2 answers
  • Is a type of software program used to write code and develop other
    9·1 answer
  • Lin is booting up his computer, and during the boot process, the computer powers down. After several unsuccessful attempts to bo
    12·1 answer
  • 14. Which of the following statements is true? A. The most secure email message authenticity and confidentiality isprovided by s
    11·1 answer
  • Which tool is used to plan a web site?<br> HTML<br> Storyboard<br> Text editor<br> WYSIWYG
    5·2 answers
  • Help Me Please, Ill mark whoever has the best answer with brainliest.
    14·1 answer
  • State the advantages of MS Excel in data encoding
    9·1 answer
  • The force of impact is
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!