Question 21: Sports Performance Database

 

📖 Story Task


At Greenfield Academy, the sports department is keeping a Sports Performance Database for all students who participated in the annual inter-house competition.

For each student, they want to record scores for:

  • 100m Sprint

  • Long Jump

  • Shot Put

  • High Jump

The sports coordinator’s job is to:

  1. Enter the student’s name into the database.

  2. Type in the scores for all four events.

  3. Calculate:

    • Total score

    • Average score

    • Performance Level (A: 70+, B: 60–69, C: 50–59, E: below 50)

  4. Save the record so it appears when “View Database” is selected.

💻 Your Task
Using the program:

  • Open the app and go to “Input Student Score”.

  • Type the name of the athlete and their four event scores.

  • Click Submit student score to save it.

  • Switch to “View Database” to see the performance records of all athletes.

Write what you are looking for, and press enter to begin your search!