Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. //Program Id: StarSearch.cpp
  2. //Author : Linn McKee
  3. //Class : CSC100AA
  4. //Date Written: 10/26/10
  5. //Brief Description:
  6. //This program will ask for 5 scores given by judges. It will drop the highest and lowest scores and average the
  7. //remains 3 scores. It will do so until the user selects to quit the program.
  8.  
  9.  
  10. #include <iostream>
  11. #include <iomanip>
  12. using namespace std;
  13.  
  14. //getJudgeData Function prototype
  15. void getJudgeData(double &score)
  16. {
  17. cout << "Enter a score between 0 and 10. " << endl;
  18. cin >> score;
  19.  
  20. if ((score <= 0) || (score > 10))
  21. cout << "That score is not between 0 and 10. Please try again. " << endl;
  22.  
  23. return;
  24. }
  25. //calcScore Function prototype
  26. void calcScore(double s1, double s2, double s3, double s4, double s5)
  27. {
  28. double average;
  29.  
  30. average =
  31.  
  32. return average;
  33. }
  34. //findLowest Function prototype
  35. double findLowest(double s1, double s2, double s3, double s4, double s5)
  36. {
  37. double lowestNum
  38.  
  39. if (( ))
  40.  
  41.  
  42. return lowestNum;
  43. }
  44. //findHighest Function prototype
  45. double findHighest (double s1, double s2, double s3, double s4, double s5)
  46. {
  47. double highestNum
  48.  
  49. if (( ))
  50.  
  51. return highestNum;
  52. }
  53.  
  54. int main()
  55. {
  56. int contestantNum;
  57. double score = 0.00;
  58. char userIn;
  59.  
  60. cout << "Welcome to Star Search!" << endl;
  61. cout << "------------------------" << endl;
  62. cout << "Contestant " << contestantNum << endl;
  63.  
  64. do
  65. {
  66.  
  67.  
  68.  
  69. }while ((userIn == 'Y') || (userIn == 'y'));
  70.  
  71. return 0 ;
  72.  
  73. /*Expected Output
  74.  
  75. This will display:
  76.  
  77.  
  78.  
  79. */
  80.  
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement