This program is designed to track political donations made this election year. For this project, you can either hard code the names of at least 15 donors or you may get user input, your choice. You...

This program is designed to track political donations made this election year. For this project, you can either hard code the names of at least 15 donors or you may get user input, your choice. You will create the following parallel arrays & variables (use these exact variable names):  donorName: a String array to hold the first and last names of donors.  amtDonated: an array of doubles to hold the amount of the donation.  numDonations: an array of integers to hold the number of times the donation will be made.  totalDonation: an array of doubles to hold the total donation made by each donor.  grandTotalDonations: a double to hold the sum of all donations from all donors. The program should match data in each array through subscripts (parallel arrays). For example, Dale Remick pledged to donate $25 four times: donorName[0]will be Dale Remick, amtDonated[0]will be 25.0, and numDonations[0]will be 4. Therefore, totalDonation[0]will be 100.0. The program should display the donor number and each donor’s name (or get user input for donor name). Then get user input for the amount of the donation and number of times that amount will be donated. The program should then calculate the total donation from that donor (amtDonated[i] * numDonations[i]) which should be stored in the totalDonationarray. After all data has been entered and calculated, the program should display the donor number, the donor name, the amount of each donation, the number of times that donation will be made, and the total donation from that particular donor. After all individual donor data has been listed, display the grand total of all donations made from all donors. See sample output below. Required validation & formatting: the amount of each donation must be at least $5.00. At least 1 donation must be made. The amount donated, the total donation, and the grand total of donations must be formatted for currency using NumberFormat class. Before starting this lab, be sure to refer to the “How Grades are Determined” document in eLearn for proper file name, documentation, naming conventions, etc. Points may be deducted if submitted incorrectly.
Jun 07, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here