programming

posted by .

where are the errors the pseudocode debugging exercise




// This application reads student typing test data
// including number of errors on the test, and the number
// of words typed per minute. Grades are assigned based
// on the following table:
// Errors
// Speed 0 1 2 or more
// 0–30 C D F
// 31–50 C C F
// 51–80 B C D
// 81–100 A B C
// 101 and up A A B
start
Declarations
num MAX_ERRORS = 2
num errors
num wordsPerMinute
num grades[5][3] = {"C", "D", "F"},
{"C", "C", "F"},
{"B", "C", "D"},
{"A", "B", "C"},
{"A", "A", "B"}
num LIMITS = 5
num speedLimits[LIMITS] = 0, 31, 51, 81, 101
num row
output "Enter number of errors on the test "
input errors
if errors = MAX_ERRORS then
errors > MAX_ERRORS
endif
output "Enter the speed in words per minute "
input wordsPerMinute
while row < LIMITS AND wordsPerMinute >= speedLimits[row]
row = row + 1
endwhile
row = row - 1
output "Your grade is ", grades[errors][row]
stop

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Programming and algorithms

    For each of the following problems, use the top-down modular approach and pseudocode to design a suitable program to solve it. 1. Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records …
  2. Statistic

    TABLE 12-3 A computer used by a 24-hour banking service is supposed to randomly assign each transaction to one of 5 memory locations. A check at the end of a day's transactions gave the counts shown in the table to each of the 5 memory …
  3. IT/210

    Assignment: Chapter 5 Programming Problems · Complete Programming Problems 1 and 2. · Provide the analysis, pseudocode and test cases using the template submitted in Week 6 only (no diagrams are required). Chapter 5 Programming Problem …
  4. Math

    Use this equation to estimate typing speed, S=w/5-2e, where S is the accurate typing speed, w is the number of words typed in 5 minutes, and e is the number of errors. Choose the letter for the best answer. One of the qualifications …
  5. Statistics

    Alonzo applied for a job to be an administrative assistant.He had to take a typing test. His words per minute were translated into a z-score. If the z-score was 0, should he be hired?
  6. programming

    // This application reads student typing test data // including number of errors on the test, and the number // of words typed per minute. Grades are assigned based // on the following table
  7. stats

    It was thought that students who dressed more neatly received better grades. To test this idea, a researcher rated each student on neatness of dress and obtained their grades on a standard school achievement test. The data are presented …
  8. statistics

    A professor is interested in the relationship between the number of hours students study for a quiz and their quiz grades. She asked each student to record the number of hours that he/she studied for the final exam. She also recorded …
  9. Computer Literary

    Which of the following is Not an example of debugging A)Looking for errors in programming code B)Fixing misspelled commands in programming code C)Solving faulty logic in programming code D)Upgrading to improve the programming code
  10. math

    mike reads thrice as fast as judy.the ratio of the number of words judy can read per minute to the number of words paul can read per minute is 5:2 if paul can read 140 words per minute,how many words per minute can mike read

More Similar Questions