Homework # 2 ~ Calories Consumed & Burned Trying to Get Some Exercise You have decided that you need to start…
custom essay writing service
Question
Submitted by kenhad on Thu, 2016-10-20 22:45
due date not specified
not answered
Hand shake with LooK_UP: In progress
Hand shake with hurryson: In progress
Homework # 2 ~ Calories Consumed & Burned Trying to Get Some Exercise You have decided that you need to start…
Homework # 2 ~ Calories Consumed & Burned
Trying to Get Some Exercise
You have decided that you need to start eating better and getting some exercise. Since you like riding your bike when the weather is nice and you have access to stationary bike when the weather is not good, you decide to start cycling every day. Also you want to keep better track of the calories you have consumed throughout the day. At the end of the week you want to know the following:
What is the total calories consumed and burned for each day? Assume that for every minute you are cycling you burn 10 calories.
What is the deficit or difference between the number of calories you consume and burn?
What is the average calories that you burn and consume?
What day did you consume the highest amount of calories? What day did you burn the highest calories?
What day did you consume the least amount of calories? What day did you burn the least calories?
Every day you plan on logging in a notebook the total number of calories you consume
(approximately) and how many minutes you spend on either or both bikes. At the end of the week you plan on loading all of these numbers into a program so that you can analyze the data.
Program Requirements
Your program will need to do the following:
Feature a menu so that all you need to do is enter a letter and the program will perform the necessary task. Use the following letters to correspond to what the program needs to do:
Menu Option
Operation
T
Get Total Calories Consumed and Burned. This will also print out calories consumed and burned per day
D
Get the deficit or difference between the total calories consumed and burned
A
Get the averages
H
Get the highest calories consumed and burned and the corresponding days in which this happened
L
Get the lowest calories consumed and burned and the corresponding days in which this happened
E
Exit or exits the program
Allows the user to pick numerous tasks before they are done with the program. HINT: you will need a loop here.
Load both Cycling and Eating data into 2 arrays when the program loads. In other words, you will not get prompted to load these values separately. Instead you will initialize your arrays with these numbers at the beginning of the program. Use either one or two procedures to load your arrays.
Points will be deducted if you do not use a procedure to load your arrays.
Nice clean output.
Utilization of modular programming. At the minimum you should have 5 modules.
Some Help with the Logic
This program will need to use numerous modules. After you code each module, run it to test it and debug it, if necessary. Do not move on to your next module until you have successfully tested the module you are currently working on.
It is all in the Planning
Open up Notepad or Notepad++ and start to figure out what this program needs to do. List the inputs, the outputs, the variables, the 30,000 foot view and your pseudocode. Time to Test the Logic
Now that you have planned out your attack, test your logic using the following test data in Raptor. You’re all put does not need to me remind but as long as it is legible and readable I am OK with it.
Cycling
Eating
15
2,600
10
2,400
20
3,500
18
3,200
25
2,700
10
3,300
5
3,000
Here is what my Menu looked like:
Here is my output when I selected T in Raptor:
Here is my output when I select D in Raptor
Here is my output when I select A in Raptor
Here is my output when I select H in Raptor
Here is my output when I select L in Raptor
How I Will Be Graded
Exemplary
Competent
Developing
13
Completion of Planning Document
10
Planning Document is missing a minor element
7.8
Planning Document is missing a major element
2
Variables declared with appropriate data types and appropriate names
1.6
More than one variable declaration missing or improperly declared
1.2
More than three variables missing. 0 points will be given if there are no declarations.
3
Utilized a procedure to fill both arrays.
2.4
Utilized a procedure with a minor error.
1.8
Utilize a procedure with a major in error or did not use a procedure at all.
3
Displayed menu
2.4
Minor error with the display of the menu
1.8
Major error with the display of the menu
7
Get Totals module prints out the total calories burned and consumed. Also prints out the calories burned and consumed for each day.
5.6
Minor error with the print out of each days calories burned and consumed or minor error in the calculation of total calories burned or consumed
4.2
Major error with the print out of each days calories burned and consumed Or did not use a procedure.
7
Get Deficit module displays the difference between calories consumed and burned for each day.
5.6
Minor error in the calculation or in the display of the difference.
4.2
Major error in the calculation or in the display of the difference Or did not use a procedure.
5
Get Average module calculates and displays the average calories burned and consumed.
4
Minor error in either average calculation.
3
Major error in either calculation Or did not use a procedure.
6
Get Highest module determines the highest amount of calories burned and consumed. Also determines the corresponding day those values occurred.
4.8
Minor error in determining the highest values and/or day. Amounts or day still are outputted to the user.
3.6
Major error in determining the highest values and or day. One or either are missing from the output
Or did not use a procedure.
6
Get Lowest module determines the lowest amount of calories burned and consumed. Also determines the corresponding day those values occurred.
4.8
Minor error in determining the lowest values and/or day. Amounts or day still are outputted to the user.
3.6
Major error in determining the lowest values and or day. One or either are missing from the output
Or did not use a procedure.
3
Output looks professional and includes the use of the tab character and the format function.
2.4
Missing one of the required elements.
1.8
Missing more than one of the requirement elements.
55
TOTAL POINTS
44
33.0
Handing it all in
1) Log on to our Angel course shell. Navigate to the Homework #2 Drop Box. Upload your planning text file and your Raptor file. Before you upload your files make sure you click on the rubric to make sure you have everything done.
Computer Science homework help
This is property of essay help USA. We provide the best online research help to individuals needing our assistance. Log in for Research paper writing help