Write java program that prompts the user to enter blood


Write java program that prompts the user to enter blood sugar level after eating. The program should match the input sable and display one of options in the table below:

blood sugar level after eating Type of diabetes

Less than 140 Normal

140-199 Pre-diabetes

More than or equal to 200 Level 1 or level 2 of diabetes

Input:

- blood sugar level after eating

Output

- Type of diabetes

The program must include:

- Use Scanner to enter blood sugar level after eating

- Program class called Diabetes.

- Your name, your ED.. your group number as paragraph comments.

- Only soft copy file is accepted (no hard copy)

- File extension format must be .java (e.g. Diabetes Java) or notepad file .text (e.g. Diabetese.text)

Note 1: each student must submit the assignment alone (no group work required)

Note 2: each student must submit the assignment through blackboard

Distribution of marks:

- Correct Class name and void main lines (0.5 M)

- Correct lines of import Scanner, declaring new Scanner, saving variable, asking user to enter number of absent hours (1.5 M)

- Correct lines of if else/ switch (2 M)

- Correct lines for output ( 1 M)

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write java program that prompts the user to enter blood
Reference No:- TGS02223676

Expected delivery within 24 Hours