Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

United lCause Relief Agency Donations Accounting Program The United Cause Heliengency, a charitable organizationJ solicits donations from businesses in the form of items they can

image text in transcribedimage text in transcribed
United lCause Relief Agency Donations Accounting Program The United Cause Heliengency, a charitable organizationJ solicits donations from businesses in the form of items they can distribute to those in need during emergencies. United Cause received various donations from regular donor companies on May 29; 2914. The record of the day's donations is found in the attached .CS'vr file fdonotions.csv]. The structure of the file is as follows. YOU l'v'lA'i'r NC'JT MODIFY THE STRUCTURE DR CDNTENTS lC'IF THIS FILE. @ \" Accounting Number given by UCRA for this gift Name ofthe company donating this item m Phone number of point of contact at company m The donations were received in the orderthey appear in the file. The United Cause manager has asked you to write a program that displays the donations in various orders to include the files original order. The requested report heading for all reporls will look like this [the first and last record are provided to show you the output alignment and formats]: United Cause Relief Agency Daily Donations GIFT-Ell Fre sch Foundation HEB} 555-9054 Lopez ' Clothing ccccmore records:- GIFT-31 DC Magazine i?3}555-d41 Marshall ComputEr Software Software Total 5 99,999.90 All reports will accumulate a total to display at the bottom as shown in the example above, formatted. Note the 5 is only on the rst record and the total; per accounting formatting principles. The manager wants 5 reports to be chosen from a screen menu option as shown below: United Cause Relief Agency Daily Donations Reports Menu 1: All by Natural Order of Input File 2: All by Company name, Ascending 3: All by Company name, Descending 4: All by Category, Ascending 5: All by Gift ID, Ascending 6: One Donor only by Value, Descending D: Exit the program Please select report you wish to be run from menu above (1-6):_ For report 6, the user will be presented with a selection of company names to choose from. This list should be created by reading the file and listing each company in the file only once in this 2nd menu. Program requirements: 1) The program should loop back to the 1" menu after each report and only exit if the user selects item 0. 2) Create a class to hold each record as a vector of objects to be used by the main program. 3) The class should contain all necessary Set and Get functions, 2 constructors and all necessary member functions (methods) to be able to sort the records in their proper order. 4) Be sure to include error handling inside your class definitions, when appropriate, to protect the member variables (properties). 5) Read the Donations.csv file into the array of donor objects in the mian() function. 6) Create functions for main() to call for the headings, the menus, sorting and each report. No global variables are allowed. You must pass in the vector array of objects, file handers, etc., as needed, to each function. 7) Prompt the user for a file name to save each report they select after they make the selection. 8) Save each report in a separate file, as named by the user. 9) You should have 5 files for your project: 2 for the class (.h and .cpp), 2 for the main program (.h and .cpp - your main and functions that are external to the class can be in the same .cop file) and the Donations.csv input file. 10) After deleting the "debug" folders in your project, zip the ENTIRE project with the name convention LastName_Firstinitial_Program3.zip and attach it to this assignment as your submission

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions