Purchase Solution

Jave Program

Not what you're looking for?

Ask Custom Question

The number closest from the average is the number From the list closest to the average.
Also, your test plan would be very incomplete as I was asking for 6 test: taking the average of 1 number does not seem to be a very extensive test either. you don not need screen dump for the test. just a table with list of inputs and expected result.

These are added test to the last program you gave me guidance with.

Purchase this Solution

Solution Summary

This posting contains the solution to the given problem.

Solution Preview

Hi,

Please see attached for the modified JAVA program (modification on the closest to the average) and test data document for your reference.

Test Data:
Inputs Expected Outputs Program Outputs Remarks
10, 20, 30 Number of Inputs: 3
Sum of Numbers: 60
Average of Numbers: 20
Closest to Average: 20 Number of Inputs: 3
Sum of Numbers: 60
Average of ...

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Javscript Basics

Quiz on basics of javascript programming language.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.