Question

Executive Training School offers typing classes. Each final exam evaluates a student's typing speed and the...

Executive Training School offers typing classes. Each final exam evaluates a student's typing speed and the number of typing errors made. Develop the logic for a program that produces a summary table of each examination's results. Each row represents the number of students whose typing speed falls within the following ranges of words per minute: 0-19, 20-39, 40-69, and 70 or more. Each column represents the number of students who made different numbers of typing errors -0 through 6 or more.

pseudocode for java

Homework Answers

Answer #1

Begin

Declare matrix M[4][7] //for storing student record

Initialize M[4][7] to 0 // All elements should be 0

Declare int typingSpeed

Declare int error

Declare int n // for total number of students

Input n

Start while loop repeat n times

Input typingSpeed

Input error

Check If typingSpeed>0 and typing Speed <=19

Then

Check if error=0 update M[0][0] to M[0][0]+1

Else check if error=1 update M[0][1] to M[0][1]+1

Else check if error=2 update M[0][2] to M[0][2]+1

Else check if error=3 update M[0][3] to M[0][3]+1

Else check if error=4 i update M[0][4] to M[0][4]+1

Else check if error=5 update M[0][5] to M[0][5]+1

Else check if error>=6 update M[0][6] to M[0][6]+1

Else If typingSpeed>19 and typing Speed <=39

Then

Check if error=0 update M[1][0] to M[1][0]+1

Else check if error=1 update M[1][1] to M[1][1]+1

Else check if error=2 update M[1][2] to M[1][2]+1

Else check if error=3 update M[1][3] to M[1][3]+1

Else check if error=4 update M[1][4] to M[1][4]+1

Else check if error=5 update M[1][5] to M[1][5]+1

Else check if error>=6 update M[1][6] to M[1][6]+1

Else If typingSpeed>39 and typing Speed <=69

Then

Check if error=0 update M[2][0] to M[2][0]+1

Else check if error=1 update M[2][1] to M[2][1]+1

Else check if error=2 update M[2][2] to M[2][2]+1

Else check if error=3 update M[2][3] to M[2][3]+1

Else check if error=4 update M[2][4] to M[2][4]+1

Else check if error=5 update M[2][5] to M[2][5]+1

Else check if error>=6 update M[2][6] to M[2][6]+1

Check If typingSpeed>69

Then

Check if error=0 update M[3][0] to M[3][0]+1

Else check if error= update M[3][1] to M[3][1]+1

Else check if error=2 update M[3][2] to M[3][2]+1

Else check if error=3 update M[3][3] to M[3][3]+1

Else check if error=4 update M[3][4] to M[3][4]+1

Else check if error=5 update M[3][5] to M[3][5]+1

Else check if error>=6 update M[3][6] to M[3][6]+1

End while loop

For int i=0 upto i<3 i++

For int j=0 upto j<7 j++

Print M[i][j]

End

if this answer is helpful to you please give positive rating.if any doubts please provide comments i will clarify your doubts

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