December 6th, 2012, 02:42 PM
Join Date: Dec 2012
Time spent in forums: 16 m 22 sec
Reputation Power: 0
General - Please help!
So my CS teacher assigned this to us today. Now I am by no means asking anyone to do this for me! I just need help getting started because honestly, I have no idea where to start. Thanks!
Note: Do not use array!
Write a program that inputs from keyboard a number, call it N,
followed by N integer values.
You are to
1. Store the numbers in a new file that you create called
2. Close the file
3. Open the file for reading.
4. Determine and print the numbers in the file followed by the largest and
smallest numbers appropriately labeled.
5. Have the program request 5 numbers, one at a time, from the
keyboard. For each number, see if it occurs in your data file.
If it does, print a message saying so. If it does not, then print
a message saying so. In the hand in test run for this step,
you are to have as part of the 5 numbers, 2 numbers that are
not present in the file, the first number in the file, the last
number in the file and any other number different from the
previous four numbers.