Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Language - Pointers and Dynamic Arrays Develop a software using dynamic arrays (using the new and delete operators) that allows a user to enter

C++ Language - Pointers and Dynamic Arrays

Develop a software using dynamic arrays (using the new and delete operators) that allows a user to enter the names of the athletic equipment below in an inventory management class: image text in transcribed

  1. If Mark purchases two pairs of Nike basketball shoes, three Under Armour T-shirts, four Nike shorts, and one pair of Brooks running shoes; print a receipt for the purchase including the total cost before and after tax. Assume the tax rate is 8.25%

  2. Print an inventory list before and after Marks purchase.

  3. Add a copy constructor to your inventory management class. Test the copy constructor by instantiating a new inventory management object which is a copy of the original. Print an inventory list for the new object. This should match the original inventory.

  4. Your program must use pointer variables for all variables.

  5. Use at least one user defined namespace.

  6. Maintain a transaction history of all items purchased. Print an audit log of all transactions including cost & quantity for items. Ensure the copy constructor from step 3 also makes a copy of the transaction history. Correct answer will be upvoted. Thank you so much!

Quantity 22 33 Name of equipment Nike basketball shoes Under Armour T-shirt Brooks running shoes Asics running shoes Nike shorts Cost $145.99 $29.99 $111.44 $165.88 $45.77 11 20 77

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

List and describe three contingency leadership theories.

Answered: 1 week ago