Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS171 Classroom class in Course Registration Project Create an Eclipse project called CourseRegistration. Create a POJO for Classroom. Important note: DO NOT ADD YOUR LAST

CIS171 Classroom class in Course Registration Project Create an Eclipse project called CourseRegistration. Create a POJO for Classroom. Important note: DO NOT ADD YOUR LAST NAME Create the following private attributes: o building - String o room Number - String o campus - String o type - String o capacity - int Create the getters & setters. Create a toString( ) method. Create a default, no-arg constructor. Create a non-default constructor that takes in all the attributes. Create a ClassroomTesterYourLastName with a main( ) method. Create the following classrooms and print them out using the toString( )

Object Name CompSciLab BioLab LitRoom Building 8 3 2 Room Number 17 28a 12 Campus Ankeny Ankeny Urban Type Computer Lab Science Lab Classroom Capacity 25 22 18

Below is what code I have so far, don't understand how to write my toString method as well as the rest;/

public class Classroom {

// Ashby Creighton Crum

private String Building;

private String RoomNumber;

private String Campus;

private String Type;

private int Capacity;

public Classroom(String B, String RN, String C, String T, int Cap) {

setBuilding(Building);

setRoomNumber(RoomNumber);

setCampus(Campus);

setType(Type);

setCapacity(Capacity);

}

public String getBuilding() {

return Building;

}

public void setBuilding(String Building) {

this.Building = Building;

}

public String getRoomNumber() {

return RoomNumber;

}

public void setRoomNumber(String RoomNumber) {

this.RoomNumber = RoomNumber;

}

public String getCampus() {

return Campus;

}

public void setCampus(String Campus) {

this.Campus = Campus;

}

public String getType() {

return Type;

}

public void setType(String Type) {

this.Type = Type;

}

public int getCapacity() {

return Capacity;

}

public void setCapacity(int Capacity) {

this.Capacity = Capacity;

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

Students also viewed these Databases questions