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
PIT_PIT [208]
3 years ago
12

Write c++ program bmi.cpp that asks the user bmi.cpp the weight (in kilograms) and height (in meters).

Computers and Technology
1 answer:
Galina-37 [17]3 years ago
8 0

Answer:

// here is code in C++(bmi.cpp).

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables

float weight,height;

cout<<"enter the weight(in kilograms):";

//read the weight

cin>>weight;

cout<<"enter the height(in meters):";

//read the height

cin>>height;

// calculate the bmi

float bmi=weight/(pow(height,2));

// print the body-mass index with two decimal places

cout<<"BMI is: "<<fixed<<setprecision(2)<<bmi<<endl;

return 0;

}

Explanation:

Read the weight from user and assign it to variable "weight",read height and assign it to variable "height".Then find the body-mass index as (weight/height^2).Here weight  should be in kilograms and height should be in meters.

Output:

enter the weight(in kilograms):75

enter the height(in meters):1.8

BMI is: 23.15

You might be interested in
How would our lives be different without computers at home?
Yuri [45]

Answer:

It would be so difficult to spend a life without computers. We would not be aware of technology or what things are being discovered. We could get information by newspaper, television, radio or some other medium but on computers.

Explanation:

Thanks for the points have a good day <3

8 0
3 years ago
What is the smallest v groove angle that can be welded useing the fca welding process?
vagabundo [1.1K]
The smallest v groove angle that can be welded using the FCA welding process is 20 degrees. Double v joints help for buckling forces especially in welding thicker metals.
3 0
3 years ago
The easiest way to check whether the part is the one that is causing problems is to do what?
Vesna [10]
OB: load test it because it will be telling you try again or error occurred
3 0
3 years ago
Write an application that reads an English-language phrase and encodes it into Morse code. Also write an application that reads
Morgarella [4.7K]

Answer: English to Morse code. Hello my name is Isabella:   .... . .-.. .-.. --- / -- -.-- / -. .- -- . / .. ... / .. ... .- -... . .-.. .-.. .-

Morse code to English: .. / .-.. .. -.- . / -- .- - ....  is I like math

6 0
3 years ago
What is the last step of writing a business document?
Naily [24]
The last step to writing a business document is make sure your business document appears professionally

The five steps are
1. Identify the audience
2. Identify the dictums ya purpose and keep it focused
3.organize your writing
4.re read your business document before sending
5. Make sure your business document appears professional

-hope this helps
5 0
3 years ago
Read 2 more answers
Other questions:
  • What do you think about net neutrality??
    6·2 answers
  • What is virtual memory?
    11·1 answer
  • What is a DreamScape?<br> Explain <br> and give example (if you want)
    10·1 answer
  • __________ has remained a dominant communication tool, despite the rise in use of newer, alternative media options for message d
    9·1 answer
  • The main purpose of a service panel in a house is to
    11·1 answer
  • CLICK ME IF U DARE hehehe
    10·2 answers
  • Expresa tu reflexión sobre la necesidad de un código de etica para la IA (inteligencia artificial) , oponia sobre los bots en la
    15·1 answer
  • You cannot be everywhere at once, but your freedom allows you to
    5·1 answer
  • The AND operator is a disjunction and the OR operator is a conjunction.
    15·1 answer
  • Do small companies need computers? why?<br>​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!