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
asambeis [7]
3 years ago
8

Write a java program named BMI.java(i)print out your name and your pantherID(ii) Ask user to type in his/her weight and height;

if an illegal input (such as a letter) is typed by the user, give the user one more chance to input correctly.(iii)Create a method to compute the body mass index (BMI) accordingly. BMI
Computers and Technology
1 answer:
anyanavicka [17]3 years ago
3 0

Answer:

Answered below

Explanation:

//Print name and ID

Scanner x = new Scanner(System.in);

System.out.print("Enter name");

String name = x.nextline();

Scanner y = new Scanner(System.in);

System.out.print("Enter ID");

int id = y.nextline();

System.out.println(name, id);

Scanner w = new Scanner(System.in);

System.out.print("enter weight");

double weight = w.nextline();

Scanner h = new Scanner(System.in);

System.out.print("enter height: ");

double height = h.nextline();

int i = 0;

while( I < 2){

if ( !isDigit(weight) && !isDigit(height){

Scanner w = new Scanner(System.in);

System.out.print("enter weight:);

weight = w.nextline();

Scanner h = new Scanner(System.in);

System.out.print("enter height");

height = h.nextline();

}else{

break;

double BMI = weight / ( height **2)

System.out.print(BMI)}

I++

}

You might be interested in
Untuk memberikan keterangan pada bagian bawah halaman dokumen yg akan diulangi pada setiap halaman dokumen yg digunakan fasilita
lisabon 2012 [21]
Fasilitas yg di gunakan adalah footer
5 0
3 years ago
Read 2 more answers
Charles is having a lot of problems with errors in a very complicated spreadsheet that he inherited from a colleague, and he tur
Kobotan [32]

Charles is having a lot of problems with errors in a very complicated spreadsheet that he inherited from a colleague, and he turns to another co-worker, Seymour, for tips on how to trace errors in the sheet. Seymour tells Charles that all error values begin with the same symbol, so they can be easily identified as errors.

The symbol is A)#.

Explanation:

  • An error is something you have done which is considered to be incorrect or wrong, or which should not have been done.
  • Generally errors are classified into three types: systematic errors, random errors and blunders
  • Error values begin with the same symbol as they are easy to identify. Once an error is identified, it can be corrected.
  • Error correction is the process of detecting errors in transmitted messages and reconstructing the original error-free data. Error correction ensures that corrected and error-free messages are obtained at the receiver side.
  • Error Correction can be handled in two ways: Backward error correction: Once the error is discovered, the receiver requests the sender to retransmit the entire data unit. Forward error correction: In this case, the receiver uses the error-correcting code which automatically corrects the errors.

3 0
4 years ago
You decide to store data in the user's browser in order to reduce the amount of data that must be downloaded. What is this proce
Lemur [1.5K]

Answer:

client-side storage

Explanation:

The process of doing this is known as client-side storage. Like the name suggests this saves data that is sent to the user's computer on that computer either as cookies or cached data. This data is then used every time that the user decides to enter the same website or access the same program from the browser. Doing this allows these websites and programs to load much faster the more times that the user decides to enter them.

5 0
3 years ago
What job titles describes a person with green engery? in career clusters
Amiraneli [1.4K]

Answer:

environmental scientist

Explanation:

8 0
3 years ago
Pls help? \/<br><br>https://youtu.be/kDmXlM50API<br>Click there and go to my channel and $ub
WITCHER [35]

Coming from a person with a Y-ouTube channel with more than 50 s-ubscribers, here are some tips if you want to be serious about starting this.

1. Don't ask for s-ubs. It never works, and it won't ever. That's not a good way to promote your channel. Especially on a school website. You have to work hard for your s-ubscribers, because if you ask for them, you won't have real fans. They'll only be there as a number, not viewing your videos, just staying there. I don't ask my viewers to s-ubscribe, because that's their choice and I don't want to force them to do anything. If you don't ask for s-ubs, people will view you as a person who cares for people's opinions and doesn't tell people what they should do. Also, you have to have 1,000 subs, 4 live watch hours, and more than 10k views to get paid.

2. Don't post random videos. Set up your channel first. If you post random things, your channel won't grow at all because people only s-ubscribe if they really like the person's original content or the person themselves.

3. Remember, quality not quantity. Just because you post multiple videos, doesn't mean you'll get many views. Quality in this case means to put real effort into your videos. Taking the time to make thumbnails, full descriptions, etc. Quantity means that you only care about how many videos come out.

4. DON'T COPY OTHERS. Make your own content (also don't clickbait). If you make your own content people will s-ubscribe for your originality, and they'll be more interested in your content.

5. Look at your comments and interact with your s-ubscribers. Y-ouTube loves that. Don't ignore them, and make them know that they're special.

6. Take criticism. I'm guessing since you became a Y-ouTuber, you already know that you're bound to get hate. If someone comments something rude, delete it, block the person and move on. Don't start a meaningless argument. If someone gives constructive criticism, just respond with something like "Okay, thanks for the feedback!".

I hope this helped you learn more things about becoming a Y-ouTuber :)

3 0
3 years ago
Other questions:
  • Assume the following rules of associativity and precedence for expressions:
    7·1 answer
  • Public class Car {
    15·1 answer
  • HELP ME WITH JAVA: This is my assignment. I need to write a program with a main method and methods. Use a scanner to get the Str
    5·1 answer
  • Customizing ads to people who had earlier visited the site is
    14·1 answer
  • In the forward chaining technique, used by the inference engine component of an expert system, the _____ condition is evaluated
    5·1 answer
  • An entity can be said to have __ when it can be wronged or has feelings of some sort
    10·1 answer
  • HELPPP I cand find my sound card/driver on my computer, and I cant hear anything, I have tried to update the audio driver, but w
    7·1 answer
  • What is the difference between a threat and an attack?
    7·1 answer
  • How do you create a turtle in python again-
    6·1 answer
  • Which of the following shows how to correctly declare pointer variable x?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!