info@nzassignmenthelp.com
Logo

Looking for Plagiarism free Answers for your college/ university Assignments.

University University of Auckland (UOA)
Subject Python Coding

Programming Project

A cloud-based platform “Shop Online” is a small business that sells its products worldwide online, like Amazon or Alibaba.  As a part of the software, you are required to partially develop a Stock Management program to help them boost their sales using the Python programming language.

The Stock Management program must store and manage products listed for sale. It must store each product with at least five attributes such as code, name, price, and quantity at hand as well as description, size, and color of a product depending on your chosen product.

The program must store two attributes: the code and quantity of each product along with other attributes. As code is the unique identifier, the program ensures that each product is stored with a unique code value. The program will only accept the quantity of a new product between 10 and 50 to make sure there are enough quantities available of a product for sale and also, they are not overstock as well.

Stuck! Do not Know Assessment Answers?

Hire NZ Native Experts 24/7.


Three of your selected products and their attributes should be stored in lists

Your program must include the following functions:

1: addProduct()

Create a function addProduct() that reads and stores product information into lists. This function should allow a user to add as many products as they want to add for sale. For example, the screenshot below is to add a Book with five attributes: code, category, title, price, and quantity.

This function must show an error message if a user wants to add a new product with an existing code value. For example, the screenshot below shows an error message when a user tries to add a new product with existing code 12345.


Buy Custom Assignment & Homework Solutions

Pay to NZ Native Writers | Cheap Cost & Plag Free


This function must validate quantity value before accepting a new product. For example, the screenshot below shows an error message when a user tries to add a new book record with quantity value 8.

This function should allow the user to enter multiple products.

2: checkProduct()

In the same program, declare another function and call it to check product() to check if a product exists or not. It should receive an input argument (code) and return a Boolean (True or False) value. It should return true if it finds an existing product with the given code otherwise should return false.

3:searchProduct()

In the same program declare another function and call it searchProduct() to search a product by code. This function should receive an input argument (code) and it should use the check product function to ensure the product code exists before displaying the details of the product matching the given product code. For example, the screenshot below is to search a Book by code.


In quest for a professional assignment help?

Flexible rates compatible with everyone’s budget


This function should continuously display an error message if a user tries to search for a product with the wrong code. For example, the screenshot below is showing an error message when a user searches a book record with the wrong code value.

4: updateProduct()

In the same program declare another function and call it to update product()  to update a product. This function should receive an input argument (code) to check if the product code exists before allowing any update.

As the code is a read-only value, this function should not allow the user to update the code value.

For example, the screenshot below is to update a Book product.


Stuck! Do not Know Assessment Answers?

Hire NZ Native Experts 24/7.


5: buyProduct()

In the same program declare another function and call it a “byproduct” that will be called when a customer wants to buy a product from the store. This function must receive two arguments: code and quantity. The function should validate the product code using the check product function and should validate the quantity values before accepting them to calculate the total price.

The total price (quantity * price of the product) will include Goods and Services Tax (GST) amount as well where the GST rate is 15% of the total price. As businesses want to increase the sale of their products, they offer the following discount on full GST inclusive price:

10% discountWhen a customer buys between 10 and 20 quantities of products (including the 10 but less than 20).
20% discountWhen a customer buys between 20 and 30 quantities of products (inclusive).
30% discountWhen a customer buys more than 30 quantities of a products

After a customer buys a product, its quantity value must be updated to reflect the actual number of product quantities available for sale.

The below screenshot is to buy a book product.


Buy Custom Assignment & Homework Solutions

Pay to NZ Native Writers | Cheap Cost & Plag Free

Get Help By Expert

Hire first-class university assignment help on Python Coding. We have a group of talented assignment authors who have many years of knowledge in coding and authentic assignment solutions that write assignment for programming assignments at an affordable price

Looking for Plagiarism free Answers for your college/ university Assignments.

Recent Solved Questions

UP TO 30 % DISCOUNT

Get Your Assignment Completed At Lower Prices

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now