subject

An algorithm has been written in pseudocode to input 50 numbers and output the sum. a. Find the error(s) in the pseudocode and suggest a correction.
b. Change the corrected pseudocode that you suggested in the solution above such that it doesn’t allow the user to enter any negative numbers. If a negative number is entered it should display an error message as well as ask for input again.
c. Dry run the solution you suggested in part b above and create a trace table for it. You may choose test data of your choice. (It should contain both positive and negative numbers)
d. Convert the solution you suggested in part b to its equivalent flowchart.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:10, gummybear1398
Select the correct answer. emma, the quality control manager in a software development company, asks the testing team to check whether the user interface is friendly. to which type of testing is emma referring? a. usability testing b. data comparison c. validation testing d. stress testing e. destruction testing
Answers: 1
image
Computers and Technology, 22.06.2019 11:20, destinyleisantos
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, bernicewhite156
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, isaiahhuettnerowgg8d
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
You know the right answer?
An algorithm has been written in pseudocode to input 50 numbers and output the sum. a. Find the err...

Questions in other subjects:

Konu
Mathematics, 21.04.2020 04:28