Functions undeclared identifier error

Hello, I'm writing a program that's suppose to calculate the cost of a paint job's company price for painting. Basically were told to put everything including forumala in its own function. Every time i run it to test it keeps saying that I have 7 undeclared identifiers which are the variables i'm using in the functions. I'm sure its something small thats wrong but the program as a whole isn't complete but this has put me at a halt. Heres the code:

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

void getUserData();
void showMenu();
void clearScreen();
void pauseScreen();
double calcGallonsOfPaint(double);
double calcCostOfPaint(double);
double calcHoursOfLabor(double);
double calcLaborCost(int);
double calcPaintJobCost(double);
void showReport();
void doEstimate();

int main()
{
	showMenu();
	return 0;
}

void showMenu()
{
	int option, rooms, room_size = 0;
	double gall_cost, gall_paint = 0;

	cout << "Paint Job Estimator Menu" << endl << endl;
	cout << "1. Get Paint Job Estimate." << endl;
	cout << "2. Quit." << endl << endl;
	cout << "Please enter your choice: ";
	cin  >> option;

	

	if (option == 1)
	{
		cout << endl<< "Please enter the amount of rooms you need painted: ";
		cin  >> rooms;
		cout << endl << "Please enter the price of paint per gallon: ";
		cin  >> gall_cost;
		cout << endl << "Please enter the square feet of wall space in ";
		cout << "each room: ";
		cin  >> room_size;
		
		doEstimate();
		
		cout << total;

	}
	else if (option == 2)
		cout << "This program will now close." << endl;
	
	else 
	{
		cout << "That is not a valid choice. Please enter 1 or 2" << endl;
		
	}
}

void pauseScreen()
	{
		system("PAUSE");
	}

void doEstimate()
	{

		calcGallonsOfPaint(0);
		calcHoursOfLabor(0);
		calcLaborCost(0);
		calcPaintJobCost(0);
		
	}

double calcGallonsOfPaint(double gall_paint)
{
	gall_paint = 110 / room_size;
	double ceil(gall_paint);
}

double calcCostOfPaint(double paint_cost)
{
	paint_cost = gall_paint * gall_cost;
}

double calcHoursOfLabor(double labor_hrs)
{
	labor_hrs = (110 / room_size) * 6;
	ceil(labor_hrs);
}

double calcLaborCost(int labor_cost)
{
	labor_cost = labor_hrs * 15;
}

double calcPaintJobCost(double total)
{
	total = labor_cost * paint_cost;
}


Thanks for the help.
Your functions are all wrong. I recommend that you read this carefully: http://www.cplusplus.com/doc/tutorial/functions/
Topic archived. No new replies allowed.