I am trying to write in pseudocode. The chapter this assignment is in is titled arrays. I just can't figure out the array process. I understand what I need to do. I just can't seem to get it into a code.
Heres the assignment.
Quote
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 to 100. Write a program that accepts data for each student in the school - Student ID, classroom number, and score on the achievement test. Design a program that lists each classroom's average of the test scores.
This is as far as I can get.
start num studentId num score num numStudents sting classSize=35 string class=1 string numClass=30 string average get studentId, score, numStudens
I understand that I need to
1. get studens id for class 1, get number of students in that class.
2. get test scores for class 1
3. add all test scores then divide by number of students in the class...
4. print the average of the class.
5. repeat until class 30 is printed.
I just cant figure out the logic/pseudocode.
I am really stuck...any advice?
I really appreciate any help.
If this is the wrong place to post I am sorry...please let me know the correct place.

New Topic/Question
Reply




MultiQuote







|