Microsoft
Software
Hardware
Network
Question : Write an algorithm in pseudocode
Hi (again) :)
I have been asked to:
Write an algorithm in pseudocode that finds and displays the largest of a list of positive numbers entered by the user and the sum of positive numbers. The user should indicate that s/he has finished entering numbers by entering a zero.
I was wondering if somebody could have a look over what I've done so far as I'm still not sure I'm getting this right....
Here it is:
DISPLAY “Please enter a number. This can be negative or positive. To indicate that you have finished entering numbers, please enter a zero.”
GET Number
WHILE Number is not equal to 0
DISPLAY “Please enter your next number.”
END IF
STORE Number
IF Number is > 0 add to NumList
SET Highest = Number
IF Number > Highest
SET Highest = Number
WHILE Number is not equal to 0
ADD all numbers together from NumList and ADD to TOTAL
DISPLAY “The largest positive number entered is + Hightest as the sum of the positive numbers is” + TOTAL
Thank you in advance
Answer : Write an algorithm in pseudocode
Is everything working as is or are you experiencing problems?
Are you using VLans?
What trunk mode is the 3560 set to on the connections to the dell?
What is your usage on the Link to the SGE 2002?
Random Solutions
Removing a tidserv backdoor rootkit on XP
Roaming Profiles on Windows 2008 R2 Remote Desktop Services server not working correctly
VMWare ESX 4 Update Manager and failing Remediation for certain patches
How to get all the site names under a sitecollection
Trying to reset Konica Minolta Bizhub C220 to factory defaults. How?
get 550 5.7.1. Unable to relay for specific domains....
Team Foundation Server 2010, deleted web site problem
Show All Records In Query if Nothing Selected in Listbox
RadCombo Box loses Items on postback.
WCF Nested complex types