Computers and Technology
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, "."

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 01:00, summerjoiner
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
image
Computers and Technology, 24.06.2019 11:30, smann211
Convert 11001110(acdd notation) into decimal
Answers: 2
image
Computers and Technology, 24.06.2019 13:30, lorelaistudent
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
image
Computers and Technology, 25.06.2019 05:20, andrealeon2000
6. write a user-defined matlab function for the following math function: r() = 4cos(4sin ) the input to the function is  (in radians) and the output is r. write the function such that  can be a vector. a) use the function to calculate r(/6) and r(5/6). b) use the function to plot (polar plot) r() for 0 ≤  ≤ 2. hint: use “ polar” and/or for “polar plot in matlab." include the title “'r(\theta)=4cos(4sin(\theta))”
Answers: 1
Do you know the correct answer?
The programmer intended the following pseudocode to get five sets of two numbers each, calculate the...

Questions in other subjects:

Konu
Mathematics, 12.09.2019 05:30