Question: Need help with a practice assignment but ive been having trouble. Its for a C++ class, We are learning about singly and doubly linked list,

Need help with a practice assignment but ive been having trouble. Its for a C++ class, We are learning about singly and doubly linked list, inheritance, operator overloading, and the big-Three. For this assignment we are not suppose to change anything in any of the files except for the DonorList.CPP file and DonorList.H file ONLY. Please help. I have attached the directions, and the code I have written: I DID NOT INCLUDE THE MAIN.CPP FILE BECAUSE WE ARE NOT SUPPOSE TO TOUCH IT.

INSTRUCTIONS:

Need help with a practice assignment but ive been having trouble. Its

for a C++ class, We are learning about singly and doubly linkedlist, inheritance, operator overloading, and the big-Three. For this assignment we are

not suppose to change anything in any of the files except for

the DonorList.CPP file and DonorList.H file ONLY. Please help. I have attached

INPUThANDLER.H:

the directions, and the code I have written: I DID NOT INCLUDE

DONORLIST.H :

THE MAIN.CPP FILE BECAUSE WE ARE NOT SUPPOSE TO TOUCH IT. INSTRUCTIONS:

DONORLIST.CPP :

INPUThANDLER.H: DONORLIST.H : DONORLIST.CPP : DONORTYPE.H : DONORTYPE.CPP : MEMEMBERTYPE.H : MEMEBERTYPE.CPP

: For this part of the project, you will complete the class

DonorList that creates an object containing a pointer that points to a

DONORTYPE.H :

dynamic array of type DonorType object (this is similar to the DArray

DONORTYPE.CPP :

class) You will start by adding the following files to your project

MEMEMBERTYPE.H :

part B: . DonorList.h The class DonorList has three (3) member variables:

MEMEBERTYPE.CPP :

a pointer to a dynamic array of type DonorType, an int storing

For this part of the project, you will complete the class DonorList that creates an object containing a pointer that points to a dynamic array of type DonorType object (this is similar to the DArray class) You will start by adding the following files to your project part B: . DonorList.h The class DonorList has three (3) member variables: a pointer to a dynamic array of type DonorType, an int storing the capacity of the array, and an int storing the number of elements in the array You will need to complete the DonorList class definition by writing the declarations for the functions listed below o o DonorList.cpp In this file, you will implement all the member functions needed for the DonorList class (instructions are below) o donors data.txt This text file goes inside the Resource Files of your solution. The file contains a list of donors that will be added to the list. Each line contains a first name, a last name, a membership number and the amount of the donation: o o Maria Curie 12345678 10000.e InputHandler.h o Function readDonorData It opens the text file and checks if the file is available and if the data can be read. If the file can be read, it will call function createDonorList; if the file cannot be read, the program will terminate (statement: exit(1). Once all entries are read, the file will close. ' o Function createDonorList It reads each item from the text file and calls the function DonorList::addDonor to add a new donor to the list. Although the implementation of this file is complete, do NOT dismiss it! Pay careful attention to the functions that are implemented to understand how they work. o Main.cpp o Function displayMenu o Function processSelection o Do NOT modify the code in this file. ' It displays a menu to interact with the user. " Determines the user's selection and proceeds accordingly For this part of the project, you will complete the class DonorList that creates an object containing a pointer that points to a dynamic array of type DonorType object (this is similar to the DArray class) You will start by adding the following files to your project part B: . DonorList.h The class DonorList has three (3) member variables: a pointer to a dynamic array of type DonorType, an int storing the capacity of the array, and an int storing the number of elements in the array You will need to complete the DonorList class definition by writing the declarations for the functions listed below o o DonorList.cpp In this file, you will implement all the member functions needed for the DonorList class (instructions are below) o donors data.txt This text file goes inside the Resource Files of your solution. The file contains a list of donors that will be added to the list. Each line contains a first name, a last name, a membership number and the amount of the donation: o o Maria Curie 12345678 10000.e InputHandler.h o Function readDonorData It opens the text file and checks if the file is available and if the data can be read. If the file can be read, it will call function createDonorList; if the file cannot be read, the program will terminate (statement: exit(1). Once all entries are read, the file will close. ' o Function createDonorList It reads each item from the text file and calls the function DonorList::addDonor to add a new donor to the list. Although the implementation of this file is complete, do NOT dismiss it! Pay careful attention to the functions that are implemented to understand how they work. o Main.cpp o Function displayMenu o Function processSelection o Do NOT modify the code in this file. ' It displays a menu to interact with the user. " Determines the user's selection and proceeds accordingly

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!