Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following paragraph in English and then consider the following code that expresses the same concepts in C++. An item has a name, a
Consider the following paragraph in English and then consider the following code that expresses the same concepts in C++. An item has a name, a price, and an expiry date. A store item is an item that has the number of available items in the store. A monetary bill has a value and a unit; e.g. 1,000 L.L. For simplicity we consider coins to be bills as well. A basket has a sequence of items. A customer has a basket and only one bill of cash to pay for the basket. A cash register has monetary bills each associated with a number of bills. Each cash register has also a set of customers waiting to be served. A store has a set of store items and a set of cash registers. I/a date tuple has a day, month and year values. struct dater (unsigned int day, month, year;); // an item has a name, a price, an expiry date, and a number of items available struct itemt (string name; double price; datet expiry :); //a store item is an item, it has the number of available items struct storeItemt : public itemt { unsigned int available;); //a bill has a value and a unit struct billt (unsigned int value; string unit:): // a basket has items struct basketT (vector
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started