CalcWeightAvg solution

$9.99

Category:

Description

A java project that instead of just one line of inpu, use three lines of input data as specified below,

and modify the information you print to the output file accordingly.

  1. Create, using NetBeans, a complete Java program/project called CalcWeightedAvg according to the

following guidelines.

The input values come from a single line in a text file such as the following:

0.5 70 80 90 10

0.30 80 90 0 100

0.1 50 60 50 70

The output file should look something like this:

“When using the data 0.5 70 80 90 10 (where 0.5 is the weight, and the average is computed after

dropping the lowest of the rest of the values.) the weighted average is 40.

When using the data 0.3 80 90 0 100 (where 0.3 is the weight, and the average is computed after

dropping the lowest of the rest of the values.) the weighted average is 30.

When using the data 0.1 50 60 50 70 (where 0.1 is the weight, and the average is computed after

dropping the lowest of the rest of the values.) the weighted average is 6.”

Thoughts:

*) You’ll need to modify your methods to handle three lines of data instead of just one.

  1. Export your project from NetBeans as a zip file (File → Export Project → To .ZIP)