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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
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
question
English, 24.08.2019 06:30
question
Mathematics, 24.08.2019 06:30
question
English, 24.08.2019 06:30