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, 21.06.2019 23:00
Fast sportcars the top speeds of sportscars, given in miles per hour, are: 155 mph bmw m5 217 mph lamborghini aventador spyder 205 mph ferrari 488 205 mph nissan gtr 197 mph chevrolet corvette stingray zr1 258 mph bugatti veyron supersport 195 mph dodge viper 270 mph hennessey venom 155 mph bmw m3 195 mph mercedes sl given: topspeeds=[155; 217; 205; 205; 197; 258; 195; 270; 155; 195]; carnames=string(["bmw m5" "lamborghini aventador spyder" "ferrari 488" "nissan gtr" "chevrolet corvette stingray zr1" "bugatti veyron supersport" "dodge viper" "hennessey venom" "bmw m3" "mercedes sl"]); the variable is a rectangular array. write a function called selectcars to identify cars with the top speed within a given range, and display the identified names. the selected cars speed will be in a range given by lowerbound < speed < upperbound. inputs to the function selectcars are: a column array os all car top speeds named topspeeds, the corresponding chara
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
You know the right answer?
The programmer intended the following pseudocode to get five sets of two numbers each, calculate the...
Questions
question
Mathematics, 18.03.2021 20:10
question
Mathematics, 18.03.2021 20:10
question
Mathematics, 18.03.2021 20:10