Advertisement
Nickpips

Untitled

Oct 23rd, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. How many students do you want? You must have at least 1 and at most 30.
  2. 4
  3. How many tests will you have? If you enter a negative amount you will have 0
  4. 3
  5. Now let's enter the names of your students
  6. Enter the name of student 1
  7. Alvin
  8. Enter the name of student 2
  9. Nick
  10. Enter the name of student 3
  11. John
  12. Enter the name of student 4
  13. Atharva
  14. Now let's enter the names of your tests.
  15.  
  16. Enter the name of test 1
  17. Quiz
  18. Enter the name of test 2
  19. Test
  20. Enter the name of test 3
  21. Project
  22. Now let's enter the scores of the students.
  23.  
  24. Enter Alvin's grade for test Quiz
  25. 95
  26. Enter Alvin's grade for test Test
  27. 90
  28. Enter Alvin's grade for test Project
  29. 93
  30. Enter Nick's grade for test Quiz
  31. 80
  32. Enter Nick's grade for test Test
  33. 85
  34. Enter Nick's grade for test Project
  35. 86
  36. Enter John's grade for test Quiz
  37. 73
  38. Enter John's grade for test Test
  39. 76
  40. Enter John's grade for test Project
  41. 75
  42. Enter Atharva's grade for test Quiz
  43. 61
  44. Enter Atharva's grade for test Test
  45. 64
  46. Enter Atharva's grade for test Project
  47. 63
  48. Here is your class:
  49.  
  50. Quiz Test Project Average Grade
  51. Alvin 95 90 93 92.67 A
  52. Nick 80 85 86 83.67 B
  53. John 73 76 75 74.67 C
  54. Atharva 61 64 63 62.67 D
  55. Here are your test averages:
  56.  
  57. The average for Quiz is 77.25
  58. The average for Test is 78.75
  59. The average for Project is 79.25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement