Homework # 2 ~ Calories Consumed & Burned     Trying to Get Some Exercise

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 TGet Total Calories Consumed and Burned.  This will also print out calories consumed and burned per dayDGet the deficit or difference between the total calories consumed and burnedAGet the averagesHGet the highest calories consumed and burned and the corresponding days in which this happenedLGet the lowest calories consumed and burned and the corresponding days in which this happenedEExit 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

💡 Buy the answer for only $12 Get it now →

to me remind but as long as it is legible and readable I am OK with it.Cycling Eating 152,600102,400203,500183,200252,700103,30053,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 13Completion of Planning Document10Planning Document is missing a minor element7.8Planning Document is missing a major element2Variables declared with appropriate data types and appropriate names1.6More than one variable declaration missing or improperly declared1.2More than three variables missing.  0 points will be given if there are no declarations. 3Utilized a procedure to fill both arrays.2.4Utilized a procedure with a minor error.1.8Utilize a procedure with a major in error or did not use a procedure at all.3Displayed menu2.4Minor error with the display of the menu1.8Major error with the display of the menu7Get Totals module prints out the total calories burned and consumed.  Also prints out the calories burned and consumed for each day. 5.6Minor error with the print out of each days calories burned and consumed or minor error in the calculation of total calories burned or consumed4.2Major error with the print out of each days calories burned and consumed Or did not use a procedure.  7Get Deficit module displays the difference between calories consumed and burned for each day.5.6Minor error in the calculation or in the display of the difference.4.2Major error in the calculation or in the display of the difference Or did not use a procedure.5Get Average module calculates and displays the average calories burned and consumed.4Minor error in either average calculation.3Major error in either calculation Or did not use a procedure.6Get Highest module determines the highest amount of calories burned and consumed.  Also determines the corresponding day those values occurred.4.8Minor error in determining the highest values and/or day.  Amounts or day still are outputted to the user.3.6Major error in determining the highest values and or day.  One or either are missing from the outputOr did not use a procedure.6Get Lowest module determines the lowest amount of calories burned and consumed.  Also determines the corresponding day those values occurred.4.8Minor error in determining the lowest values and/or day.  Amounts or day still are outputted to the user.3.6Major error in determining the lowest values and or day.  One or either are missing from the outputOr did not use a procedure.3Output looks professional and includes the use of the tab character and the format function.2.4Missing one of the required elements.1.8Missing more than one of the requirement elements.55TOTAL POINTS44 33.0  Handing it all in1) 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.

💡 Buy the answer for only $12 Get it now →