//program name:assignment 1
//Date: February 03,2011
//course:comsc265-1251
// Write a program that performs a survey tally on beverages. The
//program should prompt for the next person until a sentinel value of –1 is
//entered to terminate the program. Each person participating in the survey
//should choose their favorite beverage from the following list:Co!ee Tea Coke
//Orange Juice
//
#include <iostream>
using namespace std;
//includes iostream and namespace std. namespace std is included so we can
use cin and cout..
int main()
{
// Fill in the code to define and initialize to 1 the variable month
int coffee = 0;
int tea = 0;
int coke= 0;
int orange=0;
float total = 0, beverage = 0;
//variable declarations; coffe,tea,coke, orange, total and beverage.
while(beverage !=-1) //while beverage is not = to -1
{
total++; //total+1