Question: This assignment needs to be in Java. Also I have been having an issue where it prints to a txt file labeled results.out. the input

This assignment needs to be in Java. Also I have been having an issue where it prints to a txt file labeled "results.out". the input file must be called "input.in". please refrain from using doubles as I would like to understand how to do this with simple strings. Another issue is that the program keeps accepting donations after I hit the max and the assignment clearly asks me to work around that somehow.

Design a logical solution using control structures. Utilize repetition structures in a programming solution. Use file input and output operations in a programming solution

1. Review the rubric for this assignment before beginning work. Be sure you are familiar with the criteria for successful completion. The rubric link can be found in the digital classroom under the assignment.

2. Design a flowchart for a program that tabulates contributions collected by an organization. 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.

a. The total number of contributions needed to meet the goal of 10 million dollars b. The amount of the largest and smallest contribution accepted

c. The average contribution size d. The final total of the contributions accepted 3. Implement (code) and 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. The output file should match the formatting shown in the example.

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!