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

In this program, you are going to write a program for playing the game of Hangman. In this game, the computer will pick a word and display a sequence of blanks to be filled in; one

Diskless workstations:    Most people assume that the operating system is stored on a disk that is connected directly to the computer, but this is not necessarily true. If the

Super Computers: The specialised demands and requirements of science, industry and military have led to the creation of powerful super computers. For numerically intensive com


Suppose that of 100 computers checked for viruses 30 where infected and 70 where not. If we select 10 computers at random what is the probability that at most 4 of them are infecte

function to delete a telephone book record in c programing using struct and objects...?

#queswhat computers can do tion..

assembly programs

Internet searching algorithm: Searching: When a user enters a query into a search engine, the engine examines its index and provides a listing of best-matching web pages accordin