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
Ksivusya [100]
3 years ago
6

an individual’s Body Mass Index (BMI) is a measure of a person’s weight in relation to their height. it is calculated as follows

: • divide a person’s weight (in kg) by the square of their height (in meters) design and implement a program to allow the user to enter their weight and height and then print out their BMI by using java
Computers and Technology
1 answer:
Nezavi [6.7K]3 years ago
6 0

Answer:

import java.util.*;

public class Main

{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 float weight, height,bmi;

 System.out.print("Enter weight (kg) and height(m): ");

 weight = input.nextFloat();

 height = input.nextFloat();

 bmi = (weight)/(height*height);

 System.out.print("BMI: "+bmi);

}

}

Explanation:

This declares all variables as float

 float weight, height,bmi;

This prompts the user to enter weight and height

 System.out.print("Enter weight (kg) and height(m): ");

This next two lines get input from the user for weight and height

 weight = input.nextFloat();

 height = input.nextFloat();

This calculates the bmi

 bmi = (weight)/(height*height);

This prints the bmi

 System.out.print("BMI: "+bmi);

You might be interested in
Susan is creating a spreadsheet, and she needs to enter the months of the year in column A. Susan should _____.
AysviL [449]
Enter January in A1 hold mouse in bottom right hand corner of cell. Hold mouse button down and drag the mouse. Excel will populate the months of the year
3 0
3 years ago
Read 2 more answers
A plain text e-mail and the same text entered into a word processing document would be about the same file sizes.
kumpel [21]
The email should be lighter but they're variables such as the word processing program. Not sure if this answered your question.
6 0
4 years ago
Read 2 more answers
This is your code.
Sever21 [200]

Construct d

  • d=[[5,10,15],[2,4,6],[11,33,55]]

So

d[2] is c i.e [11,33,55]

d[2][1]=c[1]

So it's 33

3 0
2 years ago
1. You are given a database to create, however, you realize that in the instructions you are told to create relationships betwee
Alik [6]

Answer:

In your table create statement, you can reference a primary key of another table. This is called a foreign key.

The syntax varies per database type.

6 0
3 years ago
A ____ network (or workgroup) consists of multiple windows computers that share information, but no computer on the network serv
ra1l [238]
<span>A peer-to-peer network (or workgroup) consists of multiple windows computers that share information, but no computer on the network serves as an authoritative source of user information. domain-based peer-to-peer server-based centralized</span>
5 0
3 years ago
Other questions:
  • State College charges its departments for computer time usage on the campus mainframe. A student had access to the university co
    10·1 answer
  • Why is the total number of cylinders in an engine an even number?
    11·1 answer
  • A program is divided into 3 blocks that are being compiled on 3 parallel computers. Each block takes an Exponential amount of ti
    6·1 answer
  • An employee who interacts with customers regarding the nature of their car problems, rather than actually working on the vehicle
    6·1 answer
  • What does the word “Gacha” come from??????
    5·2 answers
  • D. What is the work of the following features:<br>1. Foot note​
    10·1 answer
  • What Is entered into the system as input?
    13·1 answer
  • The Word feature that would allow you to insert fields from an Access database into multiple copies of a Word document is called
    12·1 answer
  • The owner of a candle shop has asked for your help. The shop sells three types of candles as shown below:
    14·1 answer
  • Katrina needs to send her database to colleagues, but she does not want them to access anything except the
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!