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
QUESTION (a) What is Multi-Protocol Label Switching (MPLS)? List the main advantage of running MPLS in a service provider network (b) What is a label? Explain the structure

You have been approached by Company XYZ to design and deploy a new network that will span three cities in Queensland: Brisbane (12 users), Gold Coast (8 users), and Cairns (6 users


Question 1 Write a note on transition, transition types & Features Question 2 Describe the different types of lens used in film shooting Question 3 Briefly explain

solution of two degree of freedom system with matlab program???

How to crete a web page name esp.html that allows users to conduct an ESP test

When software is installed onto a modern day personal computer (most commonly from a CD-ROM, though other media or downloading from the internet is also common), code comprising th

Question 1 Explain the basic structure of a C program with an example 2 What would be the value of x after execution of the following statements? 3.What are the commonly u

Communications Programs : By communications programs, we mean those programs which allow a computer to communicate via a transmission cable to another electronic device. Here we d

Briefly explain who a hacker is and what the activities of a hacker are?k question #Minimum 100 words accepted#