C++, computer science, Basic Computer Science

You are to code a C++ program that will read the file IntList into an integer array. There are no more than 20 integers in the file. After all of the data is read into the file, find and print the following items: count of all the numbers; sum of all of the numbers; average of the numbers (make the average a double variable and print the average to at least 1 decimal place). When these statistics are computed and printed, have the program examine each of the numbers and print all of them that are larger than the average.

Finally, use the Selection Sort from the book to arrange the numbers into ascending order. Print the numbers one more time after they are sorted.

Be sure to use comments to show all that you are doing. Print your code and give me a copy of it. Then let me see it run in lab. Use your last name plus Lab6 as the name of the file.
Posted Date: 3/21/2012 3:19:53 PM | Location : United States







Related Discussions:- C++, computer science, Assignment Help, Ask Question on C++, computer science, Get Answer, Expert's Help, C++, computer science Discussions

Write discussion on C++, computer science
Your posts are moderated
Related Questions
Write a shell script, change-lines, which will substitute a string for a replacement string for each occurance of the string in files specified. The original file will be saved,

What constitutes ERP? ERP typically comprises a client server architecture, fourth generation language, RDBMS and graphical user interface in an open systems environment. It

the chemical reactions in a battery produce ____________, each of which carries energy.

The use of manage files very much facilitates the creation of files and programmer can focus on other aspects of the programming lacking worrying on details which can be handled by

want to get detail understanding of the types of security policies including enterprise security policy, issues specific policies etc

• The SRT is the preemptive complement of SJF and helpful in time-sharing environment. • In SRT scheduling, the process with the least estimated run-time to completion is run next,

a program to create htmlpage

General Considerations for Search If we may specify the starting state, the operators and the goal check for a search problem, then we know from where to start, how to move and

Input unit: These are used to read data and transfer to primary memory contained in CPU through keyboard or floppy disk or mouse etc. Central Processing Unit (CPU): This consists o

Batch Processing When the entire computer system is dedicated to a single job, the system is said to be operating in Batch Processing mode. In this mode each program is run to