ITECH1400 Recycling Machine Assignment Problem

Assignment Help Python Programming
Reference no: EM132460590

ITECH1400 - Foundations of Programming - Recycling Machine Assignment, Federation University Australia

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:

1) Design and model two classes: RecyclableItem and RecyclingMachine,

2) Create an activity chart which describes the behaviour of the Recycling Machine system,

3) 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.

4) 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.

Part 1 - Class Design

Think of a product that you can recycle that you might want to be able to deposit into a Recycling Machine, like maybe an empty soft drink can.

Start by listing all the properties of that object that you can think of - try to come up with at least ten general properties of a RecyclableItem and write.

Next, use the process of abstraction to cut the number of properties back to only 'key' properties - write these down in the next section.

Now, fill in the class diagram for your Item class in the Word document template provided. Your RecyclableItem class does not have to have any methods (i.e. functions) associated with it to perform any actions other than a constructor which takes and set the key properties that you've identified.

Next we'll move on to RecyclingMachine class - think about what information the Recycling Machine has to keep track of to allow you to successfully deposit an item to be recycled. There will only really be three key properties that the RecyclingMachine cares about, and the RecyclingMachine class should have the following five methods available:

1) A default constructor that takes no arguments and initialises a new object and its properties,

2) accept_product(),

3) select_product()

4) payout(anAmount)

5) print_receipt().

Fill in the class diagram for the RecyclingMachine class in the Word template, and that's the first part completed!

Part 2 - Activity Flowchart

Create an activity diagram of how the program should operate to successfully enter their money, buy one or more products, provide change and print a receipt for the user.

Make sure to use the correct symbols in your diagram for starting, processes, decisions/branches, and ending the process.

Although you may be familiar with how a Recycling Machine works, if not then you can always look online Recycling Machine.

Don't worry about taking payment to debit or credit cards, our RecyclingMachine will only provide cash.

Part 3 - Software Implementation

You are free to implement the software however you see fit, however the functionality of the software should be able to match the following output. Note that in the below run of the program I have 'hard-coded' a small number of RecyclableItem instances so that products which exist can be purchased - in your code you should do the same.

Your program does not have to have the facility to add new recyclable items - just define a few and use them as demonstrated below. If the final option of STOP is chosen, the program should print the receipt and ask the user if they want to start again or quit.

Part 4 - Code Explanation and Use

You are provided with the following two functions which you should

1. Analyse to determine what they do & provide documentation comments for, and

2. Incorporate into your final program solution.

Attachment:- Foundations of Programming - Recycling Machine Assignment File.rar

Reference no: EM132460590

Questions Cloud

What is the present value of growth opportunities : If Sepia goes forward with the plan, what will be its new stock price? What is the present value of growth opportunities?
Finding the current us treasury yield curve : You are an intern with First Bank, and have been asked to develop estimates for yield spreads that would be appropriate for corporate bonds
How would account the when calculating for taxable income : How would you account this when calculating for taxable income.There was an unrealized holding gain on temporary investments of $8,200
Calculate the price that biti bank paid to purchase bond : Calculate the price (PB) that Biti Bank paid to purchase the bond. Give your answer in dollars and cents to the nearest cent.
ITECH1400 Recycling Machine Assignment Problem : ITECH1400 - Foundations of Programming - Recycling Machine Assignment Help and Solution, Federation University Australia. Part 1 - Class Design
Describe the three functions of accounting : Describe the three functions of accounting Apply the accounting vocabulary Record various business transactions in accordance with generally accepted accounting
What was his annual rate of return on this sculpture : Assume a bronze sculpture sold in 2003 at auction for a price of $10,381,845. Unfortunately for the previous owner, he had purchased it in 1999 at a price of $1
Determine case study analysis - fred stern and company inc : Determine Case Study Analysis - Fred Stern and Company Inc. (Knapp)Please describe the strength and weakness of the company.
What cash flow must the investment provide : What cash flow must the investment provide at the end of each of the final 3 years, that is, what is X?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd