Question: (C++) You will need to use a class to solve the problem. The election season is upon us. The amount of money a candidate raises
(C++)
You will need to use a class to solve the problem.


The election season is upon us. The amount of money a candidate raises against his/her opponent greatly affects the outcome of the election. Anders and Valerie (completely fictional characters) are two fierce opponents fighting for the democratic party nomination. Election Contributions v1.0 Anders vs. Valerie 1- Contribute to a Campaign 2- Report per Candidate 0- Exit Make a choice (1-3): 1 Candidate (Anders or Valerie):Anders Donation Amount: 1300 Your Name: Jackson Your job is to write a program that will help us keep track of the donations to these candidates. You will assume that the program is written for this election where Anders and Valerie are running. It is OK to hard code these into your program. Don't worry about case sensitivity of names Election Contributions v1.0 Here are the features of the program Anders vs. Valerie 1- Contribute to a Campaign 2- Report per Candidate 0- Exit Make a choice (1-3): 1 Candidate (Anders or Valerie): Anders Donation Amount: 1500 our Name: Jackson You cannot exceed $2700 per election Feature #1: Contribute to a Campaign [60 points] When someone wants to make a contribution we use this feature to enter the contribution information to the system. Program asks for which candidate the contribution is, and the amount of the contribution, along with the name of the person making the contribution. To make things easier for you - You may assume that the name of the donor is just the last name. No spaces allowed in the last name and assume that no two donors will ever have the same last name. :-) Election Contributions v1. Anders vs. Valerie 1- Contribute to a Campaign 2- Report per Candidate 0- Exit Make a choice (1-3): 2 Anders: According to US laws, no individual is allowed to make political contributions exceeding $2700 per election. The program should not accept the contribution if the total amount of contribution of that individual (go by last name) exceeds $2700 [50 points] Total: $1300 # of Donations: 1 The candidate that will be entered by the user will always be either Anders or Valerie - you do not need to error check for this Avg. Amount: $1300 Valerie: Total: $0 The program supports up to 1000 donations # of Donations: 0 lvg. Amount: $0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
