Program that prompts the user to enter blood sugar level

Assignment Help Basic Computer Science
Reference no: EM131428062

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)

Reference no: EM131428062

Questions Cloud

Results of naming and shaming : Do you think that the results of naming and shaming is related to the type of government? In other words, naming and shaming may be more effective in the United States, a democracy, while not effective at all in North Korea, a totalitarian countr..
Want more challenge-responsibility-recognition-advancement : While leaders commonly “want more challenge, responsibility, recognition, and advancement,” many “long to make an impact with their work” . How true is this statement of you as a current or prospective leader?
Comparing racial and class inequalities in childrens : Describing and comparing racial and class inequalities in children's academic performance. In this section, we will consider two sources of inequality-class and race
Explain the interlinking model of quality and profitability : Explain the interlinking model of quality and profitability (Exhibit 4.2 of the text). How does it connect to business and operations strategy? Can you provide any examples of goods and services that support and add credibility to this model? (cengag..
Program that prompts the user to enter blood sugar level : Write java program that prompts the user to enter blood sugar level after eating. The program should match the input sable - blood sugar level after eating Type of diabetes
Who is disrupting department productivity and morale : A manager would like to discharge an employee who is disrupting department productivity and morale, but this employee has a history of filing formal complaints against coworkers. How should HR proceed?
Baby needs a new crib : An on-line retailer that sells home and children’s items, such as children’s furniture, clothing, and toys, was seeking a way to reach a new audience and stop the declining sales and revenue trends it was suffering. Should the retailer pursue this ne..
Explain gordon allports approach to personality theory : Explain Gordon Allport's approach to personality theory. Describe Gordon Allport's theory of motivation and functional autonomy. Describe McCrae and Costa's Five-Factor Theory.Describe Eysenck's Biologically Based Factor Theory.
How relevant is an employees personality or credit history : After a potential predictor of employee performance is identified, it is necessary to observe its relationship with one or more criterion measure(s) of work related behaviors and/or performance. The criterion measures selected for employee perform..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd