Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions