Question

Watson Elementary School contains 30 classrooms numbered 1 through 30. Each classroom can contain any number...

Watson Elementary School contains 30 classrooms numbered 1 through 30. Each classroom can contain any number of students up to 35. Each student takes an achievement test at the end of the school year and receives a score from 0 through 100. Write a Python program that accepts data for each student in the school-classroom number and score on the achievement test. Design a program that lists the total points scored for each of the 30 classrooms.

In other words, the program will ask for the score of each student in classroom 1 (use a terminal value like -1 to indicate all the classroom 1 scores are entered.  Then do the same thing for classroom 2. Once all 30 classes have been entered, display the total points entered for each classroom

I need the coding part for this assignment, I have already made my Pseudocode and Flowchart but am stuck going any further. Thank you!

Homework Answers

Answer #1

Python code for your doubt is given below

Given program will ask number of students for each class , and for each class it reads the marks for the students.

If the entered mark is not in between 0 and 100 it will again ask to re enter until correct data is entered

Atlast total mark for each class will be displayed

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT