programming in python

profileBinita12
programming.pdf

Unit Name/Code

ISY1003 – Foundations of Programming

Assessment Type

Programming

Assessment Number

Assignment#4

Assessment Name

Group Assignment

Unit Learning Outcomes Assessed

LO2, LO3, LO4, LO5, LO6

Due Date and Time

Week 11 Friday by 5:00PM

Weighting 20%

Assessment Description

Rationale

Work in group of 2 students for this assignment. Create a Python program that will compute the orders for a Takeaway Coffee shop. The program will show a summary of the total order amount and the average amount per order. The user will have the option of continuing by adding additional orders. An order set must contain one item from Main Menu and optionally additional items. Each order contains a number of identical order sets. The subtotal is the total amount of an order. The program should include some validation to check for missing data. If any required input is missing for the calculation, the program should display a message showing the appropriate error message and not carry out the calculation. The prices of the Items are saved in a file. Name the file as “prices.txt”. The prices of the selling items are listed below:

Main Menu Price Additional Item Price Banana bread $4.50 Water $2.00 Walnut Bread $5.50 Latte (Any) $3.50 Chocolate Muffin $3.00 Ice Cream $2.50 Blueberry Muffin $3.50 Juice $2.00

If the Discount voucher box is given, the customer gets 5% discount of the subtotal amount. You must make use of files by storing the product names and their prices stored in the file. Design your user interface to fit the above requirements. Make sure that your interface is user-friendly

(Looking clear, easy to understand and easy to use). For example, your UI could look like the following: Start Running: *** Coffee Now Take Away - Main Menu ***

1. Banana Bread

2. Walnut Bread

3. Chocolate Muffin

4. Blueberry Muffin

Choose menu item: __ Quantity: __

*** Coffee Now Take Away – Additional Items *** 1. Water

2. Latte(Any)

3. Ice Cream

4. Juice

Choose additional item: __ Quantity: __

*** Coffee Now Take Away – Discount Voucher *** Customer has a discount voucher (Y/N): __

After 3 orders: ***Coffee Now Take Away – Summary *** Order Sub Total: $23.40 Total Order: $74.75 Average Order: $24.92 per order

Detailed Submission Requirements

Submission: 1. Submit the .py file, 2. Submit a word document with the names and numbers of the both the students and a small

reflection on how you went in this assignment. Any challenges that you may have faced due to the group member or the content of the assignment. The document must include the Work break down details about what each group member has contributed to the completed assignment.

Marking Criteria

Criteria Marks Marks obtained

File for prices created in the correct format

2

Make use of file in the correct manner in the program (opening in a mode and closing it when required)

2

Main menu and sub menu items coming in the logical order

2

Subtotal calculated correctly 2

Total or the order calculated correctly

2

Average of the orders calculated correctly

2

Validations done properly for the following:

 Correct menu item. Show error when a correct menu item not chosen

 Correct Additional menu item. Show error when a correct Additional menu item not chosen

 Validations on correct entry of the values in the order quantity (for example, negative quantity is not acceptable)

 Validations on correct sentinel for continuing the program to take

4

Referencing and Plagiarism

It is essential to use IN TEXT referencing. If you are using the exact words from a reference then you must use quotation marks.

Use Harvard style, which is more verbose. http://www.citethisforme.com/harvard-referencing .

Remember that this is a Turnitin assignment and plagiarism will be subject to severe penalties. Please refer to the AIH Academic Misconduct Policy: http://www.aih.nsw.edu.au/content/1-home/8-more-info-tabs/3-official- policies/academic-misconduct-policy.pdf

more orders(say ‘Y’ or ‘y’ to continue)

Reflection document:

 Reflections

 Work distribution document properly

4

Australian Institute of Higher Education CRICOS Provider Code: 03147A

Level 3 & 4 545 Kent Street Sydney NSW 2000 Australia T: +612 9020 8050 W: www.aih.nsw.edu.au