Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program Id: StarSearch.cpp
- //Author : Linn McKee
- //Class : CSC100AA
- //Date Written: 10/26/10
- //Brief Description:
- //This program will ask for 5 scores given by judges. It will drop the highest and lowest scores and average the
- //remains 3 scores. It will do so until the user selects to quit the program.
- #include <iostream>
- #include <iomanip>
- using namespace std;
- //getJudgeData Function prototype
- void getJudgeData(double &score)
- {
- cout << "Enter a score between 0 and 10. " << endl;
- cin >> score;
- if ((score <= 0) || (score > 10))
- cout << "That score is not between 0 and 10. Please try again. " << endl;
- return;
- }
- //calcScore Function prototype
- void calcScore(double s1, double s2, double s3, double s4, double s5)
- {
- double average;
- average =
- return average;
- }
- //findLowest Function prototype
- double findLowest(double s1, double s2, double s3, double s4, double s5)
- {
- double lowestNum
- if (( ))
- return lowestNum;
- }
- //findHighest Function prototype
- double findHighest (double s1, double s2, double s3, double s4, double s5)
- {
- double highestNum
- if (( ))
- return highestNum;
- }
- int main()
- {
- int contestantNum;
- double score = 0.00;
- char userIn;
- cout << "Welcome to Star Search!" << endl;
- cout << "------------------------" << endl;
- cout << "Contestant " << contestantNum << endl;
- do
- {
- }while ((userIn == 'Y') || (userIn == 'y'));
- return 0 ;
- /*Expected Output
- This will display:
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement