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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
You know the right answer?
The programmer intended the following pseudocode to get five sets of two numbers each, calculate the...
Questions
question
English, 18.03.2021 02:20
question
Mathematics, 18.03.2021 02:20
question
Mathematics, 18.03.2021 02:20
question
Mathematics, 18.03.2021 02:20
question
Mathematics, 18.03.2021 02:20
question
Mathematics, 18.03.2021 02:20
Questions on the website: 13722361