Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / 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

Computer Science

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

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

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