Analysis Help

I have to write a program calculating the following for a class: total calories, total grams of fat, total calories from fat, and total percentage of fat. It also needs to be set up in a table....I have some code done, but I dont know where to go from here. Help?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  
#include <iostream>
#include <string>
using namespace std;

const int fatBase = 9; // 9 Calories per gram of fat

//Grams of Fat
const int Cheeseburger = 13;
const int mcChicken = 20;
const int BigMac = 32;
const int largeFry = 26;

//Calories
const int calCheeseburger = 320;
const int calmcChicken = 440;
const int calBigMac = 570;
const int callargeFry = 540;

int main()
{

int Cheeseburger;
int mcChicken;
int BigMac;
int largeFry;

cout<<"How many Cheeseburgers?";
cin>>Cheeseburger;
cout<<"How many mcChickens?";
cin>>mcChicken;
cout<<"How many Big Macs?";
cin>>BigMac;
cout<<"How many Large Fries?";
cin>>largeFry

Topic archived. No new replies allowed.