Title: Assignment 5
Course: COP 1510 Programming Concepts > Section: Module 6 - Modules

For your module 6 assignment, you will design and write a program following the specification that is given below. Design your program using a flowchart and pseudocode. Submit your final flowchart and pseudocode design in the dropbox.

Calories From Fat and Carbohydrates

A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consumed in a day. Then, she calculates the number of calories that result from the fat, using the following formula:

Calories from Fat = Fat Grams * 9

Next, she calculates the number of calories that result from carbohydrates, using the following formula:

Calories from Carbs = Carb Grams * 4

The nutritionist asks you to design a modular program that will make these calculations.

Example Output:

How many fat grams were consumed?
10 [Enter]
How many Carb Grams were consumed?
15 [Enter]
You have 90 calories from fat and 60 calories from carbs.