This preview shows page 1. Sign up to view the full content.
Unformatted text preview: OK. Psuedocode: Caluculate_fat_percentage Prompt for calories Get calories Prompt for fat_grams Get fat_grams IF calories IS null OR fat_grams IS null THEN Display entry_message ELSE Calculate fat_calories = fat_grams * 9 Calculate fat_percentage = (fat calories/calories) * 100 Display fat_calories Display fat_percentage IF fat_percentage > 0.3 Display food_high_fat_message ELSE Display food_OK_message ENDIF ENDIF END...
View Full Document
This note was uploaded on 04/13/2008 for the course INFO 250 taught by Professor Whitcomb during the Spring '08 term at Texas A&M.
- Spring '08