You are tasked with creating a text-based program for simulating a supermarket self-service checkout using the Python 3 programming language. The assignment is broken up into four main components: 1.)...

1 answer below »
You are tasked with creating a text-based program for simulating a supermarket self-service checkout using the Python 3 programming language.

The assignment is broken up into four main components:

1.) Design and model two classes: Product and CheckoutRegister,

2.) Create an activity chart which describes the behaviour of the checkout system,

3.) Create a computer program that allows a user to interactively check out a number of products, then provides an opportunity to enter some virtual money to pay for the products and finally and prints out a receipt for the user (to the screen, not on paper), and finally

4.) Explain and integrate some code into your checkout program that places the products purchased into virtual shopping bags.

Your submission should consist of one Microsoft Word or LibreOffice document containing the first two parts of the assignment, and three Python scripts that implement the computer program (checkoutregister.py, product.py and main.py).

The main.py script runs the main logic of the program and will use instances of the CheckoutRegister and Product classes to simulate checking out of the supermarket.

You are provided with a Microsoft Word template to help you complete the first two parts of this assignment.

Towards the end of this document you will also be provided with the output of a simulated run of the completed computer program which may help you with this assignment.

Answered Same DayApr 22, 2020

Answer To: You are tasked with creating a text-based program for simulating a supermarket self-service checkout...

Abr Writing answered on Apr 24 2020
138 Votes
Assignment Part 1 Details – Class Design
Insert your list/table of possible product properties here…
Product Properties (All
)
    Price
    Barcode
    Name
    If in the cart or not
    If available or not
    
    
    
    
    
    
    
Insert your list/table of key product properties here…
Product Properties (Key)
    Name
    Barcode
    Price
    In customer’s cart ?
Complete the class diagram of your final Product class here…
Product Class Diagram
Product    
None (no functions)
All products:
Prices
Names
Barcodes
CheckoutRegister Class Diagram
Complete the class diagram of your final CheckoutRegister class here…
CheckoutRegister
Payment: Float
Product: Integer (Barcode)
Accept payments
Scan Item
Print Receipt
Assignment Part 2 – Activity Flowchart
Insert your activity flowchart of the supermarket checkout process here… If your flowchart is large then place it on the following page
Please check “Activity Diagram.jpg”
Assignment Part 3 – Software Implementation
Please check all the .py files.
Assignment Part 4 – Code Explanation and Use
CheckOutRegister.py
from Product import Product
class CheckoutRegister:
    def __init__(self):
        # Getting all the details about all the product
        self.product = Product()
        # product_list is the list...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here