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
19. in the array implementation of a queue, the pop operation is most efficient if the front of the queue is fixed at index posi
ICE Princess25 [194]

It is true that in the array implementation of a queue, the pop operation is most efficient if the front of the queue is fixed at index position. The correct option is a.

<h3>What is pop operation? </h3>

The removal of an element is referred to as a pop operation. Again, because we only have access to the element at the top of the stack, we can only remove one element. We simply take the top of the stack off.

A push operation decrements the pointer before copying data to the stack; a pop operation copies data from the stack before incrementing the pointer.

The pop operation in an array implementation of a queue is most efficient if the queue's front is fixed at index position.

Thus, the correct option is a.

For more details regarding pop operation, visit:

brainly.com/question/15172555

#SPJ1

6 0
1 year ago
Why do wireless networks experience such a great reduction in actual throughput compared with their respective theoretical throu
jasenka [17]

Wireless networks experience such a great reduction in actual throughput compared with their respective theoretical throughputs, because wireless networks experience a high number of collisions and require greater overhead on each transmission. The throughput varies significantly from the theoretical maximum speeds due to:

distance from the access point, physical obstructions, such as walls, signal-blocking or reflecting materials which affect signal propagation and reduce speed , interference - other wireless networks and devices in the same frequency in the same area affect performance and shared bandwidth - available bandwidth is shared between all users on the same wireless network.


5 0
3 years ago
An Excel file can be saved as a Web page. T or F
Katen [24]

Answer:

True

Explanation:

5 0
3 years ago
Read 2 more answers
This type of technology typically does NOT come with a keyboard or mouse for input.
anyanavicka [17]
The answer is C) tablet. You use the touch screen keyboard for that.
4 0
3 years ago
Read 2 more answers
What feature is available to add a suggestion in the margin of someone else's document?​
Ksenya-84 [330]

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

The correct question is:

what feature is available to add a suggestion in the margin of someone else's document. The given features in this question are:

  • Annotation
  • Comments
  • Highlight and
  • Bookmark

The correct answer to this question is the Comments.

Because you can add comments in someone else's document and only Comments features in word document allow you add comments on the someone else's document.

While the other options are not correct because:

The Annotation works with grammar or writing, Highlight feature allows you to mark important information or text in your document. while Bookmark allows you to save your space in a document.

4 0
3 years ago
Other questions:
  • What company handles security for a lot of the e-commerce on the internet and also maintains two root name server clusters?
    8·1 answer
  • What is meant by Angular 4?
    15·2 answers
  • Assume that the variables gpa, deansList and studentName, have been declared and initialized . Write a statement that both adds
    6·1 answer
  • A compressed format featuring small file size and good quality that is commonly used for online videos and music videos is BIN.
    8·1 answer
  • The blank is the area on your screen where you can access the tab and menu options for word
    5·1 answer
  • What are three metrics used to define consistent network application availability?
    5·1 answer
  • Write a statement that reads a floating point value from standard input into temperature. Assume that temperature. has already b
    6·1 answer
  • I paid $23.99 to subscribe for the “no adds” version.. its now been a week since then but today I’m shown adds and advertisement
    12·1 answer
  • Which of the following statements is FALSE?
    10·2 answers
  • What does an upright (straight) body posture convey or show? [ ]
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!