help with problem from class

Can someone please help? I don't know what I'm missing. Everything seems to run correctly but it gives me the product of 0 for each division. The problem is:

1. Write a program that asks the user for a value that represents the total sales of Company X. Store that value into a variable. Assume the following: Company X’s East division generates 35% of sales, the West division 22%, the North division 29.6% and the South division generates 13.4% of total sales. Store these values in 4 named constants near top of your program. Compute the 4 divisional sales and place these values into 4 variables that you create. Display your results in a tasteful fashion. If your output display looks funky, consider reading ahead to page 118 and controlling things like decimal places.

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
38
39
40
#include <iostream>
using namespace std;

int main ()
{
	
	//declare and initialize variables

	double nolanInterprise = 0.0;
	
	const double eastDivision = 0.35;
	const double westDivision = 0.22;
	const double northDivision = 0.296;
	const double southDivision = 0.134;

	double eastSales = nolanInterprise * eastDivision;
	double westSales = nolanInterprise * westDivision;
	double northSales = nolanInterprise * northDivision;
	double southSales = nolanInterprise * southDivision;
	

	//input data

	cout << " Enter a value for the Nolan Enterprise: ";
	cin >> nolanInterprise;
	
	


	//output section
	cout << "\nTotal sales for each division are:\n\n" "East Sales: " << eastSales  << "\n";
	cout << "West Sales: " << westSales << "\n";
	cout << "North Sales: " << northSales << "\n"; 
	cout << "South Sales: " << southSales << "\n\n";


	system("pause");
	return 0;

}
Last edited on
Nevermind, I'm a dummy. I figured it out.
Topic archived. No new replies allowed.