Menu

Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 8 00pm Gm Q43785317

Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 8:00PM GMT+8time zone:

  1. A class Scanner in Java can be used to get user input and itsmethods can be used after the following statement isexecuted:Scanner input = new Scanner(System.in);One of its methodsnextDouble() returns the next double value from the keyboard. Nowyou are requested to write a method enterHeight() which displaysthe message “Input height:
  • and uses the method input.nextDouble() to get the user input.The process should be repeated until the input is non-negative.Finally the input should be returned. You can assume theaforementioned statement starting with Scanner has already beenexecuted.
  1. Write a method category(double height) which returns a suitabletype in string form according to the following:

Condition

Type

height >= 200

Tall

100 <= height < 200

Medium

height < 100

Short

Expert Answer


Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 8:00PM…

OR