General programming

Moderators: None (Apply to moderate this forum)
Number of threads: 1642
Number of posts: 2791

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need some Pseudocode help plz! Posted by tdabboud on 20 Oct 2010 at 10:33 AM
I have started to write the pseudocode for this program but i have come to a dead end. I do not know how to continue this. Here is the question.

Write a program that will read in five positive integers (one at a time) and print out the largest and smallest number of the five numbers. The program should read the numbers one at a time. Write the program such that it takes an unlimited amount of positive integers.



Start
num number
num ans
num min
num max
num count = 0

output "How many numbers are you going to input?"
input ans
while count < ans
output "Enter Number" count + 1
input number
if number < 0 then
output "enter positive number"
Thread Tree
tdabboud Need some Pseudocode help plz! on 20 Oct 2010 at 10:33 AM
ColmShannon Re: Need some Pseudocode help plz! on 6 Nov 2010 at 9:42 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.