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 The organization wishes to
accept contributions until a total of $ 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 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 contribution to reach the goal.
The maximum contribution received was $
The minimum contribution received was $
The average contribution amount was $
A total of $ was collected.
Test your program with a variety of input data. It is helpful to set a smaller contribution goal when testing your program. 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. Identify and validate calculations for all data sets that may total less than or greater than the
$ requirement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
