Ask a New Question

Asked by baikedagn

design an algorithm that keeps on reading numbers until the user enters-1and them determines and out puts the largest number .using pseudo codeand flow chart
10 years ago

Answers

Answered by Damon
x = 0

1 read n

if n = -1, go to 2

if n > x then x = n

go up to 1

2 print x

end
10 years ago
Answered by sol
start- (using start process)
enter number-(using input process)
number not equal to -1 (using decision)
if yes back to enter number
if no end(using End)
9 years ago

Related Questions

Design an algorithm that accepts two values, the hourly rate and the number of hours worked by an em... design an algorithm that reads three numbers and prints that smallest number.using pseudo code and f... Design an algorithm that keeps reading positive numbers until the user enters a zero value, and dete... Design an algorithm that multiplies three numbers and display the results? Design an algorithm that compare three numbers and display the smallest to the screen? Design an algorithm to find the average age of n students, where n is the number of students. Design an algorithm to assist a school to calculate it's canteen which sum up to 12cedis displaying... You can run an algorithm like you can run code. (1 point) Responses True True False False... What does the algorithm do in the context of social media
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use