i need some help/ having trouble in making this program for homework:
Create a C++ program which calculates student fees for those attending Santa Monica College. IN ORDER TO RECEIVE FULL CREDIT, YOU MUST CREATE FUNCTIONS TO SOLVE THIS PROBLEM WITH BOTH PASS-BY-VALUE AND PASS-BY-REFERENCE PARAMETER (No, main() doesn't count). Summarized in the chart below is the cost calculations I want your program to perform.

SANTA MONICA COLLEGE STUDENT FEES (as of Fall, 2012)

Enrollment Fee

$ 46.00/ unit for California Residents
$ 295.00/ unit for F1/Non-Residents

Student Services Fee
(AS Sticker fee is Optional, saving $19.50)
(ID Card fee is Optional, saving $13)

$ 47.50 Winter/Summer
$ 50.50 Fall/Spring

Parking Decal (Optional)

$ 45.00 Winter/Summer
$ 85.00 Fall/Spring

so i was able to create this program but their is a lot of errors when i build it, ill post program

void main()
{
int units,seasons;
int opt;
double fees=0;
cout << " SMC Fee Calculator.\n ";
cout << " Enter the number of units enrolled.\n";
cout << " Is this Fall [0], Winter [1], Spring [2], Summer [3] Semester:";<<endl;
cin>>season;
switch(season)
{
case 0:
label1:
cout << "Are you a state resident [1 = yes] or not [2 = no]:"<<endl;
cin>>opt;
if(opt==1)
{
fees=46;
}
else if(opt==2)
{
fees=295;
}
else
{
cout<<"invalid input please enter again"<<endl;
goto label1;
}

label2:
cout<<" Want a parking decal? [1=Y/2=N] "<<endl;
cin>>opt2;
if(opt2==1)
{
fees=fees+85;
}
else if(opt2==2)
{
}
else
{
cout<<"invalid input,please enter again"<<endl;
goto label2;
}

label4:
cout<<" Want an AS sticker? [1=y/2=n]"<<endl;
cin>>opt3;
if(opt3==1)
{
fees=fees+19.50;
}
else if(opt3==2)
{
fees=fees;
}
else
{
cout<<"invalid input please enter again"<<endl;
goto label4;
}

label5:
cout<<"Want an ID card? [1=y/2=n]"<<endl;
cin>>opt4;
if(opt4==1)
{
fees+=13;
}
else if(opt4==2)
{
}
else
{
cout<<"invalid input!! please enter again."<<endl;
goto label5;
}
cout<<"enter the number of students enrolled"<<endl;
cin>>students;
fees= students * (fees+50.50);
cout<<" Your total for this semster is $ ."<<fees;
break;

case 1:
case 2:
case 3:
default:
}
return 0;

Can anyone help with this?

This article has been dead for over six months. Start a new discussion instead.