PRG 211: Final Project: Calorie Management

1515 Words7 Pages
PRG/211 Final Project Calorie Management 28 February 2014 Introduction Development teams and programmers possess the knowledge of writing code to educe the power of computers to solve problems and perform various tasks. Proper communication with customers and organizations ensures a thorough understanding of a particular problem so a program can be designed to meet needs and expectations of customers and organizations. Successfully solving problems with program software requires planning and analyzing to ensure all aspects of the problem meet the required expectations. “Planning your program using a sequence of steps referred to as the program development cycle, will enable you to use your time efficiently and will help you design error-free…show more content…
The computer produces a result in the form of an output. In regards to a program that performs a calculation on calories, the input needed is the caloric intake of the user, the amount of calories the user burned during exercise, and the calories the user burned while resting or the user’s Basal Metabolic Rate (BMR) (National Heart Lung and Blood Institute). The computer then adds the BMR to the calories expended during exercise and subtracts them from the calories consumed. If the number is positive then the user consumed more calories than they expended, and if the number is negative the user has a deficit of calories. The variable output is displayed with text as well as the result. The pseudo-code for a program provides the plain English description of the steps a program will execute. Pseudo-code is created before the coding begins and is used by the programmer in order to gain a greater understanding of the steps of the program. Below is the pseudo-code for as calorie counter and BMI program: * Program begins. * Create an array that will house five elements for the calorie intake amounts. * Create a procedure that contains outputs that informs the user about the purpose of the program. * Message: Hello and welcome to team A’s Calorie Management Calculator. This calculator is used as a screening tool to identify possible weight and calorie intake…show more content…
If the calculation returns a positive number the user gained that number in pounds and if the user returns a negative number the user lost that number in pounds. * Following the calorie portion of the program, a Body Mass Index procedure or BMI is called. This procedure gives the user an opening statement regarding the next step. The first input is the user’s height then the user is asked for their weight. An assignment then calculates the BMI using the formula (weight*703)/ (height^2). The program now uses a series of “If/Then” statements to determine which BMI category the user falls under. * If the user’s BMI is less than 18.5 then the user is underweight. * If the user’s BMI is between 18.6 and 24.9 then the user is normal. * If the user’s BMI is between 25 and 29.9 then the user is

More about PRG 211: Final Project: Calorie Management

Open Document