Question: Write a Java program that implements the contributions collection flowchart, or pseudocode, from Exercise 3 . The organization wishes to accept contributions until a total

Write a Java program that implements the contributions collection flowchart, or pseudocode, from Exercise 3. The organization wishes to accept contributions until a total of $10,000,000 is met. Once this total is hit, no further contributions should be accepted.
The organization wants the program to read data from an input file (input.in). The following data should be written to a file called results.out:
The total number of contributions needed to meet the goal of 10 million dollars.
The amount of the largest and smallest contribution accepted.
The average contribution size.
Consider both the scenario where the input file does not contain enough contributions to meet the goal and the scenario where the input file contains more data than needed. The output file should match the formatting shown in the example.
It took 2007 contribution to reach the goal.
The maximum contribution received was $53,246.00.
The minimum contribution received was $7.00.
The average contribution amount was $4,982.58.
A total of $10,000,034.00 was collected.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!