Home Answers Viewqa Java-Beginners RECYCLING SYSTEM IN JAVA WITH BLUEJ

 
 


mikkel
RECYCLING SYSTEM IN JAVA WITH BLUEJ
0 Answer(s)      2 years and 5 months ago
Posted in : Java Beginners

Recycling System

The system, you are going to write, simulates a reverse vending machine. Such a machine is used to identify and collect used beverage containers for recycling or reuse from customers, who in return receive a monetary refund. When you use the system, you enter different cans and bottles into the machine, and when you are finished, you ?press a button? to get a refund ticket.

In the first iteration we assume that there are three different types of bottles or cans:

Deposit A: Cans and bottles less than 1 litre DKK 1,00

Deposit B: Exception. Bottles of plastics 0,5 litre DKK 1,50

Deposit C: Cans and bottles on or more than 1 litre DKK 3,00

The recycling machine has to be implemented in two classes: ReturnItem and ReturnMachine.

The cans and bottles are implemented in the class Container. Unless it is mentioned in the description below, you decide the names of the fields, parameters, variables and the methods, but it is important that the names you choose are appropriate.

The ReturnItem class should have the following characteristics:

Fields:

A character field storing the type of return item, e.g. ?A?, ?B? or ?C?

A character field storing a text describing the return item

An integer field storing the deposit value in ?øre?

An integer field storing the number of items returned for this type of item

Constructors:

A constructor having three parameters, initialising the two text fields and the deposit value field. The last field should also be initialised.

Accessor methods: Four different methods returning each of the fields

A method toString() that returns a String object as a concatenation of all the fields in a readable form

Mutator methods:

A method that increments the number of returned items when its type of return item is entered into the machine

A method setting the deposit value to the value passed as a parameter. The parameter value has to be checked, so it is positive and payable in coins (it has to be dividable by 50)

A method that resets this type of return item, e.g. the number of items returned is set to 0

View Answers









Related Pages:
RECYCLING SYSTEM IN JAVA WITH BLUEJ
RECYCLING SYSTEM IN JAVA WITH BLUEJ  Recycling System The system... is used to identify and collect used beverage containers for recycling or reuse from customers, who in return receive a monetary refund. When you use the system, you
System Time
System Time  how do i store the system time in a variable in BlueJ
Design a class named BankAccount to hold datas for a bank account in Java using Bluej Software - Java Interview Questions
Design a class named BankAccount to hold datas for a bank account in Java using Bluej Software  1)Design a class named BankAccount to hold the following data for a bank account: - Balance - Number of deposits
BlueJ (area of circle)
BlueJ (area of circle)  How does one write a program to calculate the area of a circle in BlueJ? Note that the user will have to provide the radius.   A simple program to calculate the area of a circle. radius provided
Java System class
Java System class  What is the purpose of the System class
library system
library system  hi to all..please help me how to make a library system using a java program..please response me
library system
library system  hi to all..please help me how to make a library system using a java program..please response me
operating system
operating system  write a programe in java that print system information like which process are in running state and those process used which resourses
what is the java cache system?
what is the java cache system?  To send the webapplication of java cache system
Pos System in Java
Pos System in Java  Where can I learn creating a POS system in java
the discount system.
the discount system.  hi.. im a beginner here in java. sadly i..... will someone will help me with this? please. i was asked to write a discount system...). the system shall consist of three classes: customer, discount, visit. it shall compute
the discount system.
the discount system.  hi.. im a beginner here in java. sadly i..... will someone will help me with this? please. i was asked to write a discount system...). the system shall consist of three classes: customer, discount, visit. it shall compute
on file system
on file system  how to maintains record in a file using java and how to create objects to each record.   Hi, Please read Java Write file tutorial. Regards Deepak
for management system
for management system  i need to store some data and to display the stored data and again to modify the data that have been stored and also with either java swing or java awt in format of similar to tat of form
intremailing system
intremailing system  plz send the complete project code in java and the project report...plz
JAVA SYSTEM LEVEL PROGRAMMING
JAVA SYSTEM LEVEL PROGRAMMING  Hi we all know how to create a file in our system. if we want to create a text file we can do this in this way, RIGHT... the file path immediately after creating a file in our system. After creating the file
mailing system in java - JavaMail
mailing system in java  i want to learn java mailing system can you help me out  Hi manglik, I am sending you a link. I hope that, following link will help you. Please visit for more information: http
Java get System Locale
Java get System Locale   ... are providing you an example which will obtain the locale of the system by using the System.getProperty(). This will provide all the properties of the system
system storage - Java Beginners
system storage  i want to know the systems current storage capacity.(i.e)total space available.total space occupied.total free space like in task manager using java program.can any one provide me a code for it.i need it only
reservation system - Java Beginners
reservation system  hi help me write a program on a railway reservation system that records the destination of the passengers.It should be decided by the date on which they are to arrive on their destinations and also the number
fingerprint identification system on java
fingerprint identification system on java  sir i want full "fingerprint ateendance management" project on java please send me source code i am asking so many members but nobody send answer one of my friend suggest ask question
Grading system - Java Beginners
Grading system  gud day...cn i ask for a javascript of a grading system text box input typed... that calculates quiz and assignment and a prelim + a quiz and assingment and a midterm + a quiz and assingment and a Semifinal
railway rsrvation system
railway rsrvation system   Java coding for railway reservation system
Java Hospital management system
Java Hospital management system  hospital management    <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.sql.*" %> <!DOCTYPE html> <html> <body>
bird feeder system code
bird feeder system code  i want to know about "bird feeder a business solution system in java" please help me for details. how can develop this system please tell me
Bank Management System
Bank Management System  I need a Bank Management System Project in Java Swing
Attendence Management system
Attendence Management system  coding for Attendance management system using java applet
Java project in online examination system
Java project in online examination system  how many and which tables are required at backend as SQL for online examination system project in jsp
student admission system project
student admission system project  College Student Admission System Project in Java Front End -JAVA Back End - MS Access Hello Sir, I want College Student Admission Project in Java with Source code, that includes Following Forms
System Properties
Java: System Properties From System Properties you can find information about the operating system, the user, and the version of Java... in a file. Getting the System Properties Typically you get one property
railway reservation system - Java Beginners
railway reservation system  help me develop a code on a railway reservation system which maintains records of passengers traveling in the different trains on different dates reaching different destinations in the system
Simple banking system using Java
Simple banking system using Java  I am trying to make a simple banking system that has only 3 interfaces which does not connect to the database... inheritance in java please help.Thank you
project for Student Admission System
project for Student Admission System  I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way
material management system
material management system  hi frnds i need a mini project based on material management system if u have the project please post to me on java beginners
Web-based system development
Web-based system development  I have a system written in java application.my lecturer asks me to do in web-base. what should i do?what should i have... it to build a gui.For server side, which 1 is better for my situation, PHP or java
Fleek Management System(FMS)
Fleek Management System(FMS)  Hi, Please anybody can reply....I wanna develop a project(FMS) in Java , which was already developed in PHP. Now what technologies should i apply for developing this project. The main aim
Java get System Properties
Java get System Properties       In this section, you will learn how to obtain the system properties. The System class provides a Properties object that describes
fingerprint attendance system - Java Beginners
fingerprint attendance system  i have project on attendance management system with a fingerprint scanner. i have my own interface but i have no experience how to begin.... please suggest me how to interface connect
System
System  What is System in System.out.println() method? Is it a Class or a Package
hospital Management System
hospital Management System  hello sir i want hospital management system Source code in java swing Back-end Oracle 9i. i want these type of model 1. Username and password 2. staff details i. Doctor details ii. nurse
pdf system
pdf system       In this example we are going to see how the data which we have in the pdf file... will be given by the java command.  The code of the program is given below
BluEclipse
BluEclipse BluEclipse is an Eclipse plug-in reproducing most of the basic functions of the popular Java tool/editor BlueJ. It implements most of its functions like generation of UML-like class diagrams, instantiation of objects
library management system jsp project
library management system jsp project  i need a project of library management system using jsp/java bean
library management system jsp project
library management system jsp project  i need a project of library management system using jsp/java bean
library management system jsp project
library management system jsp project  i need a project of library management system using jsp/java bean
dvd rental system - Java Beginners
dvd rental system  i am a young female who just got attracted by the java ptogramming and as i am now learning this, java is geting complecated evey day, now i looking for help with my java project. my project is about keeping
Cash Register System - Java Beginners
System for decision making is needed by the management of a newly opening ABC store. You are been given the task to design a system. The system starts when...(System.in); int menu = 0; System.out.println("School Registration System Main Menu

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.