Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
development of a program
Junior Member
Status: Offline
Posts: 1
Join Date: Apr 2012
Location: Australia
Default development of a program - 04-01-2012, 08:13 PM

Hi everyone,

I have to develop the following program.

The program that you will develop does the following:

1. Takes a numeric input from the keyboard

2. The above must be repeated as long as the user keeps entering positive values.
3. After the user enters the first negative input, the program must stop the repetition and any
calling of the mystery function. It will then print out the number of positive numbers
5. Finally, the program will calculate and print the average of the values returned by the
mystery function for the previous/positive inputs.

Last edited by mish71; 04-03-2012 at 03:32 PM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.