sorry guys...it's been awhile....i can't figure out how to link these functions together....our teacher doesn't want use to put anything in main that has to do with the program......i might have a lot wrong w/ it syntatically and logically...if anyone can help me in anyway it'd be very helpful.....here's the code i have so far...
*Vincent Irick*/
/*Lab 1*/
/*This lab gives the user the choice of 4 different vacations plans. The user inputs the
number of people in the group and also the number of days. The user is then given the base amount
the have to deposit and the amount per person*/
#include <stdio.h>
int intro(int, int, int); /*the intro function prototype*/
int devils(int, int, int, int, int, int, int); /*the devils function prototype*/
int scuba(int, int, int, int); /*the scuba function prototype*/
int skydive(int, int, int, int, int, int, int, int); /*skydive function prototype*/
int baron(int, int, int, int, int); /*baron function prototype*/
void main(void)
{
}
int intro(int x, int y, int z)
{
printf("Hi, Welcome to the High Adventure Agency. Please select a vacation package");
printf("\n\nDevil's Courthourse Adventure Weekend");
printf("An action packed three days weekend camping trip in North Carolina");
printf("\nScuba Bahama");
printf("\n\n A week-long cruise to Bahama with three days of scuba diving");
printf("\nThe Sky Dive Colorado");
printf("\n\n Four thrilling days with expert sky diving instructors in Colorado Springs");
printf("\nBaron Cliff");
printf("\n\nEight days spent hiking and exporing caves in the Baron Cliff Wilderness");
printf("Please select a vacation package by entering the first letter in lowercase");
scanf("%c", &x);
if (x == 'd')
devils(x, y, z);
if (x == 's');
scuba(x, y);
if (x == 't')
skydive(x, y, z);
if (x == 'b')
baron(x, y);
}
int devils(int x, int y, int z, int day1, int base, int equipment, int instruction)
{
printf("How many people are going on the trip?");
scanf("%d", &x);
printf("\nHow many people need climbing instruction?");
scanf("%d", &y);
printf("\nHow many people need to rent equipment?");
scanf("%d", &z);
printf("How many days?");
scanf("%d", &day1);
base = (x * 350);
instruction = (y * 100);
equipment = (z * 40 * day1);
}
int scuba(int x, int y, int base, int instruction)
{
printf("How many people are going on the trip?");
scanf("%d", &x);
printf("\nHow many people need scuba instruction?");
scanf("%d", &y);
base = (x * 1000);
instruction = (y * 100);
}
int skydive(int x, int y, int z, int base, int lodge, int inn, int day1, int day2)
{
printf("How many people are going on the trip?");
scanf("%d", &x);
printf("\nHow many people are going to be staying in the Wilderness Lodge?");
scanf("%d", &y);
printf("\nHow many people will be staying at the Luxury Inn?");
scanf("%d", &z);
printf("\nHow many days?");
scanf("%d", day1);
printf("How many days?");
scanf"%d", day2);
base = x * 400;
lodge = (y * 65 * day1);
inn = (x * 120 * day2);
}
int baron(int x, int y, int day1, int base, int equipment)
{
printf("How many people are going on the trip?");
scanf("%d", &x);
printf("\nHow many people need to rent equipment?");
scanf("%d", &z);
printf("How many days?");
scanf("%d", &day1);
base = (x * 700);
equipment = (y * 40 * day1);
}