subject
Computers and Technology, 17.12.2019 02:31 azduce

The programmer intended the following pseudocode to get five sets of two numbers each, calculate the sum of each set, and calculate the sum of all the numbers entered. it will not function as intended, however. find the error.//this program calculates the sum of five sets of two numbers. declare integer number, sum, total declare integer sets, numbers constant integer max_sets = 5 constant integer max_numbers = 2 set sum = 0; set total = 0; for sets = 1 to max_numbers for numbers = 1 to max_sets display "enter number ", numbers, " of set ", sets, "." input number; set sum = sum + number end for display "the sum of set ", sets, " is ", sum, "." set total = total + sum set sum = 0 end for display "the total of all the sets is ", total, "."

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 22.06.2019 17:50, ImBADatmath8743
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, bowmanari2154
What is used to analyze and summarize your data without graphical support
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
The programmer intended the following pseudocode to get five sets of two numbers each, calculate the...

Questions in other subjects: