Question: Write the pseudo code first and then write the Python code that implements it. Using the format of P1, set up four arrays of student

Write the pseudo code first and then write the Python code that implements it.

Using the format of P1, set up four arrays of student scores

Assume 10 questions and 4 students. (This will illustrate the approach without too many numbers)

Write a function to populate a student score array.

Populate these student arrays with zeros ( false) and 1s ( true), as their scores .

Mr. Jones always gives True/False tests to his class. His tests always have 20 questions. The maximum class size is 35. He needs a program that will calculate the students grades based on the best score. Grade A will range from the best score, to the best score minus 2. B will range from the best score minus 3, to the best score minus 4. C will range from the best score minus 5, to the best score minus 6. D will range from the best score minus 7, to the best score minus 8. F will be anything below the best score minus 8. Each students ID and test answers will be entered. The output will be each students ID, number correct, and grade, along with the single highest score for the class. Develop a solution for Mr. Joness problem. Use four one-dimensional arraysone for the correct scores and the other three for the needed output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!