Trusted by Students Everywhere
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

Computer Science Nov 14, 2020

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:

  1. Show All 
  2. Spend
  3. Search expenses containing this string
  4. Search expenses with greater than or equal to this amount
  5. 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:

  1. The program must produce the same output as provided.
  2. The program must check and accept the command line argument of the data file name
  3. The program must accept any data file name (e.g. should not hard code the file name in the program)
  4. The program must define a new “Expense” class that contains the amount and the description
  5. 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).
  6. 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.
  7. There should be no global variable used in the program
  8. The program must contain at least 4 functions

 

Required error handling:

The program MUST perform the following checks:

  1. Check for the number of command line arguments
  2. Check for invalid amount (negative number or string is entered)
  3. Search is case-insensitive
  4. 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
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment