Wednesday
November 26, 2014

Homework Help: programming

Posted by Andre on Sunday, September 15, 2013 at 3:01am.

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
// 030 C D F
// 3150 C C F
// 5180 B C D
// 81100 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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

programming - // This application reads student typing test data // including ...
Math - Use this equation to estimate typing speed, S=w/5-2e, where S is the ...
Statistic - TABLE 12-3 A computer used by a 24-hour banking service is supposed ...
IT/210 - Assignment: Chapter 5 Programming Problems Complete Programming ...
Pseudocode programming - I need a currency conversion application. It does not ...
Computer - After writing the program of Exercise 17.7, write a simple program to...
English - In paragraph 3 of Swimming Strokes by Lee Carroll, I found 3 errors in...
English - In paragraph 4 in Swimming Strokes by Lee Carroll, I found 2 errors in...
programming - pseudocode for // This application reads 10 numbers // and sorts ...
Math - Gertrude and Ernest received their typing results. The results are normal...

Search
Members