Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 inputin 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started