Question: Objectives: Perform C++ string object manipulation Understand how to manipulate data using arrays Handle input errors and invalid values Design and create a well-structure program
Objectives:
Perform C++ string object manipulation
Understand how to manipulate data using arrays
Handle input errors and invalid values
Design and create a well-structure program using C++ basic programming constructs
Description:
Write a menu-driven program that provides the following options:
Show All
Spend
Search expenses containing this string
Search expenses with greater than or equal to this amount
Exit
It 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.
Requirements:
The program must produce the same output as provided. The output should be formatted nicely as given.
The program must use array of structs
The program must not use global variables. In another words, it must use local variables and pass-by-value or pass-by-reference parameters.
The program must define the maximum number of entries such as 100 and keeps track of the actual count of the current number of expenses entered by the user
You should not use data file to save or read from. All operations should be done through the use of arrays and array indices.
You must write at least 2 functions.
Required error handling:
The program MUST perform the following checks:
Check for invalid amount (negative or 0 number)
Description cannot be empty.
Search is case-insensitive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
