The solution of the problem includes modeling and realization of the process of issuing cash receipts in a store. It is necessary to create classes that store and manipulate information about: store; cashier in a store; goods in a store; cash register in a store; a receipt that is issued to the customer.

  1. Cashier class - stores information about the identification number and name of the cashier;
  2. Class Goods to be sold in a store - stores identification number, name, unit price of the goods and expiration date;
  3. Class Cash register in a store - stores information about which cashier is currently working at this cash register. At the checkout, customers in the store pay for the purchased goods and receive a receipt.
  4. Class The receipt must contain at least the following information: serial number, cashier issuing the receipt, date and time of issuance of the receipt, list of goods to be included in the receipt including their price and quantity. It is necessary to keep the total number of issued cash receipts so far and the total amount generated as turnover at the time of issue. When issuing the receipt, it is necessary to display its contents and save them in a file. Each receipt must be kept in a separate file with the file name, which must contain the serial number of the issued receipt. It should be possible to check how many receipts have been issued at the moment. The information in the file in which the receipt is saved must be legible.
  5. Class Store - stores information about a list of goods sold in the store, a list of cashiers who work in the store and the number of issued receipts. Goods must be delivered to the store, which will then be sold. It must be possible to sell a product if there is a sufficient quantity of it available in the store. It should be possible to check at any time what the total turnover of the store is at the moment.

Thanks in advance!

If you are looking for hire a programmer, state not only the price but supply a longer design document. If this is a task for work, ask for more team members. If this is homework, then use what you learned so far along with your design document to build the code. Code comes AFTER the design.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.