Java.The Saudi Heart Association recommends that no more than 30 percent of a person’s daily calories come from fat.

 

I.        Project objective:

This project is an opportunity for you to practice your knowledge in Java. It will allow you to develop your skills of working within a team, thanks to your interaction with your colleagues in designing and creating a small program.

II.        Project Description:

The Saudi Heart Association recommends that no more than 30 percent of a person’s daily calories come from fat.  Each gram of fat is 9 calories. Given the grams of fat and the number of calories in a food item, we can calculate the percentage of calories that comes from fat for that food item as follows:

Fact calculate percent =      * 100

 

III.        Project Phase 2 questions:

In this project, you are requested to

  1. Prompt user to enter name of a food
  2. Input food name
  3. Prompt user to enter the grams of fat in the food (for the food he/she entered in previous input)
  4. Input grams of fat
  5. Prompt user to enter the number of calories in the food “Enter the the number of calories: “
  6. Input the number of calories
  7. Print the food item and the percentage of calories that come from fat

(fatCalPercent)

  1. Print one of the two following messages depending on the percentage

of calories from fat (value of fatCalPercent)

  1. “This item is Heart Heathy!” When FactCalculatePercent <= 30
  2. “This item is NOT Heart Heathy!” otherwise.
  3. Ask the user if he/she would like to continue Y/ N? The program should be continuing until the user press N.

 

 

 

IV: Run your program at least 3 times. An example of test data is given in table 1.

Item Grams of fat Calories
Tuna 1 60
Beef 7 200
V8 Juice 0 35

Table 1: example of test data

Your output should be similar to the result in figure 2.

Figure 2: example of output

IV.        Marking Criteria

 

Criteria Marks
The program is bugs-free /5
The source code is well documented (commented) and program uses standard Java naming conventions /5
Question 1,2,3,4,5 and 6 /10
Question 7 /10
Question 8 and 9 /10
Output screenshots provided in the report /10
Total /50
Final Grade /5

Answer

  1. Brief description

Provide a brief description of your program in this section.

 

  1. Program code

Put the code of your program in this section. Do not forget to document (comment) your code.

 

  1. Screenshots

Put the different screenshots with a brief description in this section.

 

  1. Difficulties Faced

Provide a brief description of difficulties and challenges faced during this phase of the project.

 

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
You can contact our live agent via WhatsApp! Via + 1 929 473-0077

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 20% with the discount code GURUH