My name is Lori and I am in beginning programming and need help with an assignment. The program is C++ and the problem is listed below. I have tried everything I can think of but the program run indefinitely. Please help!

Create a program that displays the registration information for programming seminars. The price per person depends on the number of people a company registers. (For example, if a company registers four people, then the amount owed by that company is $400.) The following chart shows the charges per registrant.
Number of registrants                Charge per person ($)
1-3                                           150
4-9                                           100
10 or more                                90
Use a while loop to allow the user to enter the number of people a company registers. The program should allow the user to enter the number registered for as many companies as desired. Be sure to use an appropriate sentinel value. The program should display the total number of people registered, the total charge, and the average charge per registrant. (For example, if one company registers 4 people and a second company registers 2 people, then the total number of people registered is 6, the total charge is $700, and the average charge per registrant is $116.67.

Here is my program (that does not work):

#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
using std::fixed;
using std::setprecision;
int main()

 //declare variables
 char company = ' ';
 int registrantCount = 0;
 double chargePerson = 0.0;
 double totalCharge = 0.0;
 double averageCharge = 0.0;
 double subcharge = 0.0;
 //convert variable types
 static_cast <double> (registrantCount);
 cout << fixed << setprecision (2);
 //enter input data
 cout << "Enter company (S to stop): " << endl;
 cin >> company;
 //start loop
 while (company != 'S' || company != 's')
   cout << "Enter number of registrants: " << endl;
   cin >> registrantCount;
   cout << endl << endl;  
  if (registrantCount > 0 && registrantCount <=3)
   subcharge = registrantCount * 150;
  else if (registrantCount > 3 && registrantCount < 10)
   subcharge = registrantCount * 100;
  else if (registrantCount >= 10)
   subcharge = registrantCount * 90;
   cout << "Incorrect input" << endl;
  //end ifs
Thank you for your help.

Last edited by shabbir; 15Mar2010 at 11:31.. Reason: Code blocks