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
Environments We have seen that intelligent agents might take into account certain information when   choosing   a   rational   action, by  including information from its sensor

Advantages:- • Sharing Treads permit the sharing of a lot resources that cannot be shared in process, for instance, sharing code section, data section, Operating System resource



They straightforwardly affect the content of the flags. CLC CLD CLI CMC STC STD STI CLC INSTRUCTION Reason: To uncontaminated the cartage flag. Syntax: CLC This instruction turning

Types of chat room: Java Chat rooms: The most common and popular chat scripts are based on java which is object oriented language. Java is freely available and comes with virt

Open Systems Interconnection (OS1): As there are many different protocols for LANs and WANs, communication between two different systems can be difficult. The International St

Digital computer: In the digital computer there are basically two types of input, namely Instructions, and Data from the various radio and non-radio sensors, which will be refe

Working of web Browser:   Internet is characterized by the Client Server Computing that consists of three basic components: The Web client which may be the web browser;

Device Drivers:   Device drivers are shared computer programs that provide an interface between the hardware devices and operating system or other higher level programs.