Create a modular solution algorithm using pseudocode

Assignment Help JAVA Programming
Reference no: EM131272150

Assignment.

With Summer just around the corner, you've decided you want to get healthier. To help you with this goal, you decide to build a calorie tracker that will help you track your daily net caloric intake factoring in your calorie intake (number of calories you've eaten) and outtake (number of calories you've burned off from exercise) in one day.

Since you love walking, jogging, and running, you limit the types of exercise you will perform to one of these options:

For you, walking burns approximately 314 calories per hour
For you, jogging burns approximately 557 calories per hour
For you, running burns approximately 861 calories per hour

Create a modular program that will continuously prompt for the calorie count of each food item eaten today until the user indicates they are finished entering food item calorie counts. For example, if the user ate a slice of bread followed by a banana, they would enter 110 calories and then 105 calories. (Note: When running the program, you as the student will make up the number of calories for each food item eaten). The user must have eaten at least four food items and the program must enforce this.

Upon completion of entering all food item calorie counts for the day, the program should prompt the user to enter the type of exercise they performed for the day and the number of hours the exercise was performed. The type of exercise must be one of the options listed above, or no exercise at all, since the user might decide to take a break from exercise for the day. When exercise is performed in a given day, it is limited to only one type of exercise, performed once.

Finally, the program will print a well formatted report, detailing the total number of calories eaten, the total number of calories burned off, the net caloric intake (total number of calories eaten - total number of calories burned off), and feedback for the day based on the following rules for net caloric intake:

When the net caloric intake is less than 1200 calories, "That's Dangerous! You need to eat more per day." must appear
When the net caloric intake is between 1200 calories and 2000 calories, inclusive, "Good job! Keep up the good work." must appear
When the net caloric intake is more than 2000 calories, "Oops, you went a little over. Try again tomorrow." must appear

Other Requirements:

Your solution must contain one or more arrays or ArrayLists.
Your solution must demonstrate a modular design using modules.

You must validate all data input by the user. Whenever an invalid piece of data is entered, you must display an error message and re-prompt the user.

Programming Assignment 7: Solution Design

Create a defining diagram that shows the input, processing, and output

Create a structure diagram/hierarchy chart grouping processes from the defining diagram into modules (You need to do this, but you do not need to turn it in as part of the grade)

Create a modular solution algorithm using pseudocode

Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Make sure your desk checking considers multiple cases including both valid and invalid test data to prove your algorithm will work

Upload a Word document containing only items above to Blackboard.

Full points will be awarded for an accurate, efficient, complete defining diagram, solution algorithm, and desk checking table. Partial credit is available.

Programming Assignment 8: Solution Implementation

Write a well-documented, efficient Java program that implements the algorithm you identified. Include appropriate documentation as identified in the documentation expectations document.

Note: You may not use the Scanner or System classes for input/output. You must use the JOptionPane class. Additionally, you may not use System.exit, or any variant that exits the program in the middle of the program. The program should only exit once the algorithm has finished completing.

Upload the .java file of the final program to Blackboard. Be careful that you do not submit a .class file instead of a .java file.

Full points will be awarded for an accurate, efficient, complete Java program that compiles using jGrasp. Partial credit is available. Any final program that does not compile, for any reason, will receive an automatic zero. Other IDEs often place in additional code that you are unaware of, doing too much of the work for you. You are strongly discouraged from using IDEs other than jGrasp.

Reference no: EM131272150

Questions Cloud

Would you be willing to fight over the grievances listed : Select from this list of grievances, which you READ, the three that you believe are the most grievous and why they are the worst grievances in the list, which you READ.
Design a program that will allow a user to input a list : Design a program that will allow a user to Input a list of your family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who lives in Texas.
Analyze past diversification case through acquisition : Research or analyze past diversification case through acquisition or self development. What is the background or rational? Does it make sense? Why? What was the predicted result on company performance?
Distinguish between advertising and pr in terms of control : Distinguish between advertising and PR in terms of control. Discuss, using examples, the very different qualities PR has to those found in other communications tools.
Create a modular solution algorithm using pseudocode : Create a modular solution algorithm using pseudocode. Create a structure diagram/hierarchy chart grouping processes from the defining diagram into modules.
Applicable or other information on the size : Type of setting - acute care hospital, skilled nursing facility, physicians office, surgical center, insurance company, etc. Size of the facility - research the number of beds if applicable or other information on the size. Ownership - private, gover..
Describe the main purpose of the hajj in the muslim faith : Describe the main purpose of the Hajj in the Muslim faith, and identify two (2) specific aspects of the Hajj that you find fascinating or significant. Next, explain the association between Muhammad and the area of the Dome of the Rock in Jerusalem..
Comprehensive natural gas strategy : What threats in the external environment could cause this comprehensive natural gas strategy to fail? What can managers do to help ensure that the plan is executed successfully?
Create a spreadsheet to track personal expenses : Creating a spreadsheet to track personal expenses is an excellent use of Microsoft Excel. For this exercise, you will create a spreadsheet to enter a personal budget and track actual expenses for the year.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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