Categories
Uncategorized

ITECH1400 Foundations of Programming: Recycling Machine system

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

ITECH1400 Foundations of Programming

Questions:

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: RecyclableItemand Recycling Machine,
  • Create an activity chartwhich describes the behaviour of the Recycling Machine system,
  • Create a computer programthat 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:
    1. A list showing how many of each item has deposited and the cost of each item.
    2. The total amount provided for each item
    3. 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. 

Assignment Part 1 Details – 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 these down in your  Microsoft Word document, provided for download in the assessment section of your Moodle shell.

Next, use the process of abstraction to cut the number of properties back to only ‘key’ properties – write these down in the next section of your Word document. Take a look at the week 2 lecture slides if you need a reminder on how to go about this.

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:

  • A default constructor that takes no arguments and initialises a new object and its properties,
  • accept_product(),
  • select_product()
  • payout(anAmount)
  • print_receipt().

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

Assignment Part 2 Details – Activity Flowchart

Using either the online, or the applications Visio or Powerpoint – 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.

Once you have completed your activity chart, add it to your assignment template document.

Assignment Part 3 Details – 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.

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

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!

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.

Wherever there is a # followed by some underscores in the code below, you should write a short comment explaining what the below section of code is doing, and if there is space why it is doing it. Do part 1 of the above in the provided assignment 1 template document, rather than here!

ITECH1400 Foundations of Programming

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

32 More Pages to Come in This Document. Get access to the complete answer.

Students, who need a helping hand in preparing assignment subjects like chemistry and biology, can stop by at MyAssignmenthelp.com. The reason is, we have the best qualified and highly skilled experts, who provide chemistry assignment help, biology assignment help, etc. In case, students need academic assistance on commerce subjects, they also can avail our services including capital budgeting assignment help, finance assignment help, etc.

More ITECH1400 ITECH1400 Foundations of Programming: Questions & Answers

EE3093 C++ Programming

Questions:
Design a program in C++ that performs a series of different calculations based on the user input:
Calculate the first Three room modes for an arbitrary room size using the given formula.
Calculate axial room modes: fk= k * (c/(2L))
f = frequency
k = number of the mode
c = speed …

View Answer

Computer Science

Select a programming language that interests you: it must not be one of C++, Clojure, Java, ML(Yeti), Ruby or Scheme (i.e. it must be different to one we have focussed on in this module). Investigate the syntactic elements of that language for inheritance of types. Your language does not need to be …

View Answer

DSAA204 Data Structure and Algorithms

Task:
Unit Learning Outcomes
a) Evaluate the efficiency and effectiveness of data structures and algorithms;
b) Demonstrate reasoning about efficiency of algorithms;
c) Assess and apply suitable recursive data structures and algorithms to IT systems and applications. 
Case Study:
You are …

View Answer

OOPS (Programming)

OOP (Programming)(1*2 = 2)1.    Instance variables and local variables are one and the same.2.    Static method’s body can use “this” reference of calling object.3.    If the default constructor is not available in a class, then the obje …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Still in Two Minds? The Proof is in Numbers!

38983 Genuine Reviews With a Rating of 4.9/5.

Business Law

Assignment: 1 Page, Deadline:
20 days

Good work but there missing w6 answer. moreover i think few questions required explanation i think can explain little more.

User ID: 8***63 Australia

Civil Law

Home Work: 6 Pages, Deadline:
7 days

Assignment delivered before the deadline. Great work by the team and appreciate the support.

User ID: 8***13 Canberra, Australia

Economics

Assignment: 3.2 Pages, Deadline:
3 days

The assisgnment was properly written with great content and structure. Thank You for the assistance.

User ID: 1***22 Canberra, Singapore

Management

Home Work: 2 Pages, Deadline:
9 days

I am glad to use assignment help. I get nice assignment help from the different trainers.

User ID: 4***45 Canberra, Australia

Psychology

Thesis: 1 Page, Deadline:
6 days

I am very satisfied the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 8***47 Canberra, Singapore

Management

Essay: 4.4 Pages, Deadline:
18 hours

Thank you for the effort of both the author and the expert. Thank you for the effort. The topic is excellent, and I hope to continue at this high leve …

User ID: 9***3 Canberra, Kuwait

HRM

Assignment: 3 Pages, Deadline:
4 days

very good paper, all aspects covered by the author, which was not easy given the scope

User ID: 3***61 Budapest, Hungary

Management

Home Work: 2 Pages, Deadline:
15 days

The information provided is very clear and used good examples and references. There are no grammatical mistakes at all and the standard of writing is …

User ID: 7***15 Berlin, Germany

Nursing

Assignment: 1 Page, Deadline:
5 days

Thank you for the quality assignment , I always trust and get good mark from assignment help . Thank you for helping .

User ID: 4***73 Berlin, Australia

Healthcare

Assignment: 8 Pages, Deadline:
3 days

I have passed my assignment. I got my assignment back on time. Thank you very much.

User ID: 6***42 Berlin, Australia

Psychology

Essay: 8 Pages, Deadline:
10 days

Good work. I will do business again. Great customer service. Greta expert…….

User ID: 8***51 Berlin, United Arab Emirates

Assignment

Home Work: 3 Pages, Deadline:
5 days

I love the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 5***00 Berlin, United States

Healthcare

Assignment: 4 Pages, Deadline:
5 days

I got a good grade on this paper thank you for help and I will order more papers

User ID: 7***29 Garden City, United States

Accounting

Programming: 2.8 Pages, Deadline:
3 days

like the work and the way of writing and the marks was good as i got 79 marks and i like the formate of the writing.

User ID: 6***31 Leichhardt, Australia

Management

Assignment: 7 Pages, Deadline:
5 days

the paper was well written and I passed thank you for your service I would pay again

User ID: 7***29 Garden City, United States

Economics

Assignment: 2 Pages, Deadline:
20 hours

The assignment was received on time and I have to check the assignment and will get back for the feedback thank you

User ID: 8***40 Vancouver, Canada

Accounting

Course Work: 0 Pages, Deadline:
11 hours

Everything was met and done perfectly! It hasn’t been graded but through the explanations, I was able to understand the assignment and how the expe …

User ID: 8***57 Vancouver, Canada

HRM

Assignment: 9 Pages, Deadline:
2 days

Got the great and satisfied result. Thank you the expert team. But the expert team need to write more real and work life example for each assignment i …

User ID: 4***0 Central District, Hong Kong

Management

Home Work: 9 Pages, Deadline:
2 days

Got the great and satisfied result for this assignment. Thank you the expert team, but give little suggest to the team, the assignment need to more re …

User ID: 4***0 Central District, Hong Kong

Management

Assignment: 8 Pages, Deadline:
8 hours

Really impressed by your work. the report really good. all the points are detailly explained and the report format looks great.

User ID: 4***87 Melbourne, Australia

Business Law

Assignment: 1 Page, Deadline:
20 days

Good work but there missing w6 answer. moreover i think few questions required explanation i think can explain little more.

User ID: 8***63 Australia

Civil Law

Home Work: 6 Pages, Deadline:
7 days

Assignment delivered before the deadline. Great work by the team and appreciate the support.

User ID: 8***13 Canberra, Australia

Economics

Assignment: 3.2 Pages, Deadline:
3 days

The assisgnment was properly written with great content and structure. Thank You for the assistance.

User ID: 1***22 Canberra, Singapore

Management

Home Work: 2 Pages, Deadline:
9 days

I am glad to use assignment help. I get nice assignment help from the different trainers.

User ID: 4***45 Canberra, Australia

Psychology

Thesis: 1 Page, Deadline:
6 days

I am very satisfied the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 8***47 Canberra, Singapore

Management

Essay: 4.4 Pages, Deadline:
18 hours

Thank you for the effort of both the author and the expert. Thank you for the effort. The topic is excellent, and I hope to continue at this high leve …

User ID: 9***3 Canberra, Kuwait

HRM

Assignment: 3 Pages, Deadline:
4 days

very good paper, all aspects covered by the author, which was not easy given the scope

User ID: 3***61 Budapest, Hungary

Management

Home Work: 2 Pages, Deadline:
15 days

The information provided is very clear and used good examples and references. There are no grammatical mistakes at all and the standard of writing is …

User ID: 7***15 Berlin, Germany

Nursing

Assignment: 1 Page, Deadline:
5 days

Thank you for the quality assignment , I always trust and get good mark from assignment help . Thank you for helping .

User ID: 4***73 Berlin, Australia

Healthcare

Assignment: 8 Pages, Deadline:
3 days

I have passed my assignment. I got my assignment back on time. Thank you very much.

User ID: 6***42 Berlin, Australia

Psychology

Essay: 8 Pages, Deadline:
10 days

Good work. I will do business again. Great customer service. Greta expert…….

User ID: 8***51 Berlin, United Arab Emirates

Assignment

Home Work: 3 Pages, Deadline:
5 days

I love the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 5***00 Berlin, United States

Healthcare

Assignment: 4 Pages, Deadline:
5 days

I got a good grade on this paper thank you for help and I will order more papers

User ID: 7***29 Garden City, United States

Accounting

Programming: 2.8 Pages, Deadline:
3 days

like the work and the way of writing and the marks was good as i got 79 marks and i like the formate of the writing.

User ID: 6***31 Leichhardt, Australia

Management

Assignment: 7 Pages, Deadline:
5 days

the paper was well written and I passed thank you for your service I would pay again

User ID: 7***29 Garden City, United States

Economics

Assignment: 2 Pages, Deadline:
20 hours

The assignment was received on time and I have to check the assignment and will get back for the feedback thank you

User ID: 8***40 Vancouver, Canada

Accounting

Course Work: 0 Pages, Deadline:
11 hours

Everything was met and done perfectly! It hasn’t been graded but through the explanations, I was able to understand the assignment and how the expe …

User ID: 8***57 Vancouver, Canada

HRM

Assignment: 9 Pages, Deadline:
2 days

Got the great and satisfied result. Thank you the expert team. But the expert team need to write more real and work life example for each assignment i …

User ID: 4***0 Central District, Hong Kong

Management

Home Work: 9 Pages, Deadline:
2 days

Got the great and satisfied result for this assignment. Thank you the expert team, but give little suggest to the team, the assignment need to more re …

User ID: 4***0 Central District, Hong Kong

Management

Assignment: 8 Pages, Deadline:
8 hours

Really impressed by your work. the report really good. all the points are detailly explained and the report format looks great.

User ID: 4***87 Melbourne, Australia

Have any Query?

Get Homework Help Online From Expert Tutors

X
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?