Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
Programming Project #2: Manage Expenses Plus Objectives: Perform C++ user-define object manipulations Define class using OO approach Understand how to create and manipulate list of objects using vector class Handle input errors and invalid values Design and create a well-structure program using C++ basic programming constructs and classes
Programming Project #2: Manage Expenses Plus
Objectives:
- Perform C++ user-define object manipulations
- Define class using OO approach
- Understand how to create and manipulate list of objects using vector class
- Handle input errors and invalid values
- Design and create a well-structure program using C++ basic programming constructs and classes.
Description:
Write a menu-driven program named “ManageExpensesPlus” that provides the following options:
- Show All
- Spend
- Search expenses containing this string
- Search expenses with greater than or equal to this amount
- Exit
Basically, the program will accept a command line argument of the expense data file containing a list of entries (amount and description per line). It then allows the user to select a menu option to display all expenses, add new entry, search for a substring and find the list of entries greater a given amount.
Here is an example of the expense input data file:
45.25 Monthly telephone and Internet services
200.20 Monthly electric, water and gas
Requirements:
- The program must produce the same output as provided.
- The program must check and accept the command line argument of the data file name
- The program must accept any data file name (e.g. should not hard code the file name in the program)
- The program must define a new “Expense” class that contains the amount and the description
- The program must read the data file only once, build the list of Expense objects and manipulate that list only (and not the data file again).
- There is no requirement to save the new expense entry back to the data file. But the entry is added to the list to be displayed.
- There should be no global variable used in the program
- The program must contain at least 4 functions
Required error handling:
The program MUST perform the following checks:
- Check for the number of command line arguments
- Check for invalid amount (negative number or string is entered)
- Search is case-insensitive
- The output should be formatted nicely as given
Expert Solution
Please use this google drive link to download the answer file.
https://drive.google.com/file/d/17jV0P7Z43fvoHU6cOcXsdLI6vx0EwIzd/view?usp=sharing
Note: If you have any trouble in viewing/downloading the answer from the given link, please use this below guide to understand the whole process.
https://helpinhomework.org/blog/how-to-obtain-answer-through-google-drive-link
Archived Solution
You have full access to this solution. To save a copy with all formatting and attachments, use the button below.
For ready-to-submit work, please order a fresh solution below.





