-1
#include<iostream>
using namespace std;
{
		int main()
		
		//declare variables
		char total amount = ' ';
		int rate = 0;
		double registrants = 0;

		//determine if registrant
		cout << "Are you a seminar registrant: (Y/N)";
		cin >> registrant;
		registrant = toupper(registrant);

		if (registrant == 'R')
		{
			//determine rate
			cout << "what is the rate? ";
			cin>> rate;
			if( rate > 80)
				rate = 85;
			else 
				fee = 70;
			//endif
		}
		else 
			fee = 75;
		//endif

		//display
		cout <<fixed <<set precision(2);
		cout << invalid error << rate << endl;

		system("pause");
		return 0;
}

Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by shortie05
0

You have your opening brace before int main() instead of after it

Please start your own thread next time instead of bumping one that is almost 6 years old.

Edited by jonsca: n/a

0

You have your opening brace before int main() instead of after it

Please start your own thread next time instead of bumping one that is almost 6 years old.

sorry about that i'll be sure to start my OWN thread next time I'm kind of new to this thing so I DIDNT know.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.