Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:00, vetterk1400
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
image
Computers and Technology, 24.06.2019 17:00, harlon852
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, yaretxi
Telling a computer that is already on to turn again is known as what type of boot?
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, asra44
One important thing in finding employment is to get your resume noticed and read. true or false
Answers: 2
Do you know the correct 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, 17.02.2021 18:00