Question: C++ Classes and Map HW help ( Please use C++ 11 Language for Linux ) The UML: You will be using a map to store

C++ Classes and Map HW help (Please use C++ 11 Language for Linux)

The UML:

C++ Classes and Map HW help (Please use C++ 11 Language for

You will be using a map to store Transaction objects (values) sorted by Date objects (keys). You will also be making a menu to allow a user to select different options and input data.

Part 1: Classes

You are to implement 3 classes: Date, Transaction, and Transaction List. Date represents a date, down to the second. It has 6 private variables: year representing the year, month representing the month, day representing day, hour representing the hour, minute representing the minute, and second representing second. There are also 4 public functions. The constructor takes in values for the private variables and assigns them. to_string() converts the data of the class to a string. operator

Part 2: main.cpp In the main cpp, you must create a menu where the user can select different options. These options must include printing out the list of transactions, adding a new transaction, deleting a current transaction by date, deleting all transaction by a certain employee, getting the average transaction, and getting the name of the person who earned the bonus. Please note that menus may have a submenu or require additional input, such as asking for the date, price, and name. Here is an example menu: Welcome to the Transaction List Management Solution. Please make a selection from the following menu: 1: Print all transactions 2: Add a transaction 3: Delete a transaction(s) 4: Average transaction value 5: Bonus winner ?

Transaction List -transactions : map Date, Transaction> + Transaction_List() + add transaction(date Date, transaction Transaction): bool + list transactions() + get_average_transaction() : double + bonus): string + to string: string + operator

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!