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
IrinaK [193]
3 years ago
9

Write down the pseudo code of a program that calculates the Body Mass Index (BMI) of

Computers and Technology
1 answer:
SSSSS [86.1K]3 years ago
8 0

Answer:

A pseudo code was used in calculating the body mass index (BMI) of a person. The code was executed and can be shown on the explanation section below

Explanation:

Solution

#Pseudocode program to calculate the BMI of a person

Input height in meter

Input weight in kg

BMI = Weight / (height)2

If BMI < 18.5 then

Print output as “Underweight”

ElseIf  BMI >= 18.5 and BMI < 24.9 then

Print output as “Healthy”

ElseIf bmi >= 24.9 and BMI < 30

Print output as “overweight”

Else BMI >=30 then

Print output as “Obesity”

End if

You might be interested in
Problem 1: you must write a method for this problem called sentenceAnalyzer Write a program that reads a sentence from the keybo
forsale [732]

Answer:

   static void sentenceAnalyzer(String sentence){

       int lenOfString = sentence.length()-1;

   

           if(sentence.charAt(lenOfString)=='.'){

               System.out.println("Declarative");

             

           }

           else   if(sentence.charAt(lenOfString)=='?'){

               System.out.println("Interrogative");

             

           }

           else if(sentence.charAt(lenOfString)=='!'){

               System.out.println("Exclamation");

             

           }

           else{

               System.out.println("Unknown");

             

           }

   

   }

Explanation:

Using Java programming language

Create the method as required

Obtain the index of the last element using the string length method

Use if and else statements to check if the character at the last index is equal to any of the characters given and print the expected output

see a complete code with the main method below

<em>import java.util.Scanner;</em>

<em>public class num11 {</em>

<em>    public static void main(String[] args) {</em>

<em>        Scanner in = new Scanner(System.in);</em>

<em>        //Receiving User input</em>

<em>        System.out.println("Enter a sentence");</em>

<em>        String sentence = in.nextLine();</em>

<em>        // Calling the method</em>

<em>        sentenceAnalyzer(sentence);</em>

<em>    }</em>

<em>    static void sentenceAnalyzer(String sentence){</em>

<em>        int lenOfString = sentence.length()-1;</em>

<em />

<em>            if(sentence.charAt(lenOfString)=='.'){</em>

<em>                System.out.println("Declarative");</em>

<em>            }</em>

<em>            else   if(sentence.charAt(lenOfString)=='?'){</em>

<em>                System.out.println("Interrogative");</em>

<em>            }</em>

<em>            else if(sentence.charAt(lenOfString)=='!'){</em>

<em>                System.out.println("Exclamation");</em>

<em>            }</em>

<em>            else{</em>

<em>                System.out.println("Unknown");</em>

<em>            }</em>

<em>    }</em>

<em>}</em>

<em />

8 0
3 years ago
"The term ____ refers to the programs or instructions used to tell the computer hardware what to do."
Anuta_ua [19.1K]

Answer:

Software is the correct answer.

Explanation:

Software is the collection of programs or the group of instruction through which the computer system's hardware knows that what works they have to do. In other words, it is the computer program through which hardware of the computer systems understand how to work. There are several types of software such as application software, system software, and utility software.

8 0
3 years ago
HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HEL
AURORKA [14]

Answer:

I should be C! :D

5 0
2 years ago
Read 2 more answers
Fill in the correct term to complete the statement. _____ refers to borrowing money from a bank.
Vera_Pavlovna [14]

taking a guess here : a lone.

hope this helps.

4 0
3 years ago
Read 2 more answers
How can you represent a graphic element in a wireframe?
rusak2 [61]

Answer:

The answer is "in the form of design, color and graphic".

Explanation:

The wireframe is also recognized as 'skeleton', it is a static, low-fidelity description of various layouts, which provides shapes to the component. It is indeed a visualization of even an interface using only basic shapes.

It is a 2D illustration of a site user interface, which primarily focuses on capacity planning and priority of information, features available, and role expectations like, storyboards which do usually not include design, color, or graphics.

3 0
3 years ago
Other questions:
  • Instructions:Type the correct answer in the box. Spell all words correctly.
    14·2 answers
  • What is master slide and tell about master slide
    6·1 answer
  • A user of the wireless network is unable to gain access to the network. The symptoms are:1.) Unable to connect to both internal
    6·1 answer
  • If you want to copy text formatting from one area of your document to another area, _____.
    5·2 answers
  • FTP requires confirmation that a file was successfully transmitted to a client, but it has no built-in mechanism to track this i
    7·2 answers
  • Write a function called intersect with four float parameter
    11·1 answer
  • This project is to mimic a meeting request system by checking the requesting party’s validity, and the number of people attendin
    15·1 answer
  • Why does my inbox keep getting notifications and then disappearing?
    15·2 answers
  • What is an information technology? ​
    12·2 answers
  • The add_prices function returns the total price of all of the groceries in the dictionary. Fill in the blanks to complete this f
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!