Using Java, Design a flowchart for a program that tabulates contributions collected by an organization. The organization
Posted: Fri Jul 01, 2022 5:52 am
Using Java,
Design a flowchart for a program that tabulates contributionscollected by an organization. The organization wishes to acceptcontributions until a total of $10,000,000 is met. Once this totalis hit, no further contributions should be accepted. Theorganization wants the program to read data from an input file(input.in). The following data should be written to a file calledresults.out
a.The total number of contributions needed to meet the goal of10 million dollars
b.The amount of the largest and smallest contributionaccepted
c.The average contribution size
d.The final total of the contributions accepted
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. It took 2007 contributions 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.
Design a flowchart for a program that tabulates contributionscollected by an organization. The organization wishes to acceptcontributions until a total of $10,000,000 is met. Once this totalis hit, no further contributions should be accepted. Theorganization wants the program to read data from an input file(input.in). The following data should be written to a file calledresults.out
a.The total number of contributions needed to meet the goal of10 million dollars
b.The amount of the largest and smallest contributionaccepted
c.The average contribution size
d.The final total of the contributions accepted
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. It took 2007 contributions 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.