I/O Stream and Arrays, Basic Computer Science

Write a program that: 1. Ask the user for names of the two iput files and a name of an output file. The two input files contain integers in any order. Eachimput file contains no more than 20 integers. 2.Create two arrays of integer of size 20. One for each input file. 3. Read in the numbers from the imput files into the arrays respectively. 4. Find the smallest and the largest numbers from the two input files and writes the answers into a third file - output file. 5. Find the average of all numbers and write to the third file (output file.) Each input file contains a list of numbers (no more than 20 numbers) of type int separated by a space. (The number of data in each file is not fixed. They also could be in any order)
Posted Date: 11/14/2012 12:05:07 PM | Location : United States







Related Discussions:- I/O Stream and Arrays, Assignment Help, Ask Question on I/O Stream and Arrays, Get Answer, Expert's Help, I/O Stream and Arrays Discussions

Write discussion on I/O Stream and Arrays
Your posts are moderated
Related Questions
The term ‘page traffic’ describes

Question 1 Differentiate between PL/SQL functions and procedures Question 2 Draw the diagram of logical structure of oracle database and explain it in brief Question 3 D

100 animals and their respiratory organs

Ask question describes deadlock avoidance#Minimum 100 words accepted#

Question 1 Explain the following terms associated with Pattern Recognition Features Collection Question 2 Explain the working of character recognition with a suit

Network Control, Engineering and Management Network control in this sense involves traffic management, and the engineering of the networks to support varying traffic loads. In

wap to print padovan string in c

Research and Development  All intellectual activities consciously pursued and systematically completed generate useful information. Research (also Research and Development) is

function of each status flags Z80 status flags

The first report, Report #1, is to be an ordered list of the contents of the database, sorted in ascending order by a major field. Report #1 is to include all of the fields and rec