Posts

Java Console Program

Image
Introduction to Programming Assessment item 1—Java Console Program Weighting: 20% Length: N/A Details 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 statements, methods, and various other Java commands. Your program must produce the correct results. You are only allowed to use techniques which have been covered in the first six weeks of the course , you must use the Scanner object for input and no advanced data structures like arrays will be used. Instructions for this appear in the implementation section of this specification. What to submit for this assignment The Java source code: o ...

Recycling Machine using the Python

Image
ITECH1400 - Assignment 1 – Recycling Machine 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: Recyclable Item and Recycling Machine 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 o...