programming in python

programming in python

Document Preview:

ITECH1400 - Assignment 1 – Recycling Machine
Due Date: 5pm, Friday of Week 7
This assignment will test your skills in designing and programming applications to specification and is worth 20% of your non-invigilated (type A) marks for this course. This is an INDIVIDUAL ASSIGNMENT – and while you may discuss it with your fellow students, you must not share designs or code or you will be in breach of the university plagiarism rules. This assignment should take you approximately 20 hours to complete.
Assignment Overview
You are tasked with creating a text-based program for simulating a Recycling Machine using the Python 3 programming language.
The assignment is broken up into four main components:
Design and model two classes: RecyclableItem and RecyclingMachine,
Create an activity chart which describes the behaviour of the Recycling Machine system,
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...

Recent Questions in Programming Languages

You need to develop your program by completing the following three tasks:Task 1 -Draw a flowchart that presents the steps of the algorithm required to perform the task specified. Some examples of flowcharts can be found at the following web links: h
Posted
21 hours ago

1) For this program you will be creating two .s files (and you will turn in both .s files). You will be building a subroutine in the findmin.s file and a prog4.s file which will be your main. You should ORG your findmin subroutine to $6000. Your fin
Posted
2 days ago

Write a function that, when you call it, displays a message telling how many times it has been called: “I have been called 3 times”, for instance. Write a main()program that calls this function at least 10 times. Use a global variable to store the c
Posted
2 days ago

For this assignment, you are required to develop a Java Console Program to demonstrate you can use Java constructs including input/output via a command line, Java primitive and built-in data types, Java defined objects, selection and looping stateme
Posted
2 days ago

Write a program called SortedPrimes to a. Find out the prime numbers in a method from the following list (15, 16, 17, 23,2, 32, 3,31, 13, 19, 12, 9) and push/store them in a stack and then PRINT. (15 points) b. Sort those prime numbers passed by ref
Posted
4 days ago

Write a switch statement with a selector expression of type day (see example 7.6) that displays a message indicating the corresponding day of the week followed by the message " is a weekday" or " is a weekend day". For example, i
Posted
4 days ago