Question
There is no python file given in this assignment just only they provide only criteria please help me with python 3 program of recycling machine.
There is no python file given in this assignment just only they provide only criteria
please help me with python 3 program of recycling machine. I have to following below criteria I have to submit py file as well and there is no python file with the assignment I have to create python file for Assignment
- Create a computer program that allows a user to enter items that are able to be recycled into a machine. During the process the machine prompts the user for the type of item to be recycled and how many they have to enter. The machine keeps track of the number of each of the different items and keeps track of the total amount to pay the user until they indicate that they are finished. When they stop adding items, print out a receipt and given them the amount of money owing. The receipt should contain the following:
- A list showing how many of each item has deposited and the cost of each item.
- The total amount provided for each item
- The total money received.
- Finally, explain and integrate some code into your Recycling Machine program that keeps track of how many items of each type are in the machine, and, if the machine is full, makes deposits of that item type unavailable. You machine should have at least 4 different products, and allow up to 50 of each product.
Your submission should consist of one document containing the first two parts of the assignment, and three Python scripts that implement the computer program (recyclingmachine.py, recyclableItem.py and main.py).
The main.py script runs the main logic of the program and will use instances of the RecyclingMachine and RecyclableItem classes to simulate depositing into a Recycling Machine.
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.
1.) Create a computer program that allows a user to enter items that are able to be recycled into a machine. During the process the machine prompts the user for the type of item to be recycled and how many they have to enter. The machine keeps track of the number of each of the different items and keeps track of the total amount to pay the user until they indicate that they are finished. When they stop adding items, print out a receipt and given them the amount of money owing. The receipt should contain the following: a. A list showing how many of each item has deposited and the cost of each item. b. The total amount provided for each item c. The total money received.
Example Program Output
Balance: $0.0. Please select a product: (Can, Bottle, Paper, Stop): Can
How many cans do you have?: 3
Please place 3 cans into machine.
Can accepted Can accepted Can accepted You added 3 can(s) for $0.20 each.
You have $0.6. Balance: $0.6.
Please select a product: (Can, Bottle, Paper): Bottle
How many bottles do you have?: 1 Please place 1 bottle into machine.
Bottle accepted You added 1 can(s) for $0.50 each.
You now have $1.10.
Please select a product: (Can, Bottle, Paper): STOP
----- Final Receipt -----
3 Can(s) $0.6 1 Bottle(s) $1.0 Number of items 4 Amount paid: $1.6
Thank you for recycling at FedUni! (N)ext customer, or (Q)uit? q
>>> Programming of the product Recycling Machine simulation so that it: i) Creates a small number of items to be recycled instances that may be added to the machine, ii) Accepts selection of an item to recycle to identify it (including refusal to identify products which do not exist), iii) Adds a selected recycleable item to the RecyclingMachine list of items collected, iv) Allows the recycling of multiple products, v) Prints a final receipt of the products purchased, along with the total cost, total paid and any change given. Indicates when the machine is full of items
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started