Question: Assignment 1 Arithmetic expressions and Math Module Out: Thu Feb 18, 2021 @ 3:00 PM Due: Thu Feb 25, 2021 @ 11:59 PM General Rules


Assignment 1 Arithmetic expressions and Math Module Out: Thu Feb 18, 2021 @ 3:00 PM Due: Thu Feb 25, 2021 @ 11:59 PM General Rules You should work on the assignment individually. Group work is not allowed for this assignment. This assignment has a total of 20 marks and it is worth 10% of the course. Late submission of the assignment will lead to 10% mark deduction per day from the total mark of the assignment. If the assignment more than three days late, the student will get a zero. Plagiarism and collusion will not be tolerated. If you plagiarize any part of the assignment, or copy the answers from someone else, you will sanctioned as per the UTAS Academic Integrity and Honesty Policy See Appendix B for details on the academic integrity rule that applies to this course.. Required Submission You need to submit the following four programs. sales_discount.py - 10 marks. cal_energy.py - 10 marks. sales_discount.py A sales discount is a reduction in the price of a product that is sold by the seller. Al-Alwai hyper market wants to offer a sales discount for their customer to increase their sales. The Hyper market wants to give 20% discount for the amount purchased by the customers. Write a python program for the Hyper market to calculate a) discount and b) Payable amount for a customer using the following formulas. Your program has to read(input) purchase amount as an input and produce discount and payable amount as the output Discount = 20 % of Purchase amount Payable amount = Purchase amount - discount The payable amount and discount should be printed with two decimal places. Include the following comments at the beginning of your code. Make sure that you replace
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
