By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,038 Members | 1,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,038 IT Pros & Developers. It's quick & easy.

Help

P: 8
I am a beginning student in java and really need some help. I am totally lost and don't know where to begin. This is my last assignment and I just need to submit something. I have decided computer science isn't for me after all. I am looking for someone to do the assignment for me really. Just so i can pass the class. Any Takers? I would really appreciate it and it should be easy for an expert user. Hey I know when I am beat. Thanks for your time.

Goals: To put together all the statements leaned so far.


This assignment is designed to put together all the statements leaned so far. In this assignment, you are going to use multi-worker classes to implement the solution.

The problem statement:
Write a program that reads in a classroom number, its capacity, and the size of the class enrolled so far and displays the classroom number, capacity, number of seats filled, number of seats available, and a message indicating whether the class is filled. You are going to write a GUI java application that has three classes. Each of these classes may have multiple methods. One method may call another method within the same class. The program will keep reading user inputs until user inputs a no to the question of “Have more inputs?” It should compute for the right message of whether the class is filled. You can use JOptionPane’s methods to read user inputs, and use System.out.println method to do the outputs.


inputs:
Room Capacity Enrollment
426 25 25
327 18 14
420 20 15



The design:

After analysis, we decide to use three classes to do the job. The three classes include two worker classes and one application class. The worker classes are problem specific and the application class is generic. The application class will take care of the setup overhead and manage the interface with users. Finally, the application class will create an instance of one of the worker classes (FillClassRoom), initialize it and run it. You need to figure out the relationships among three classes. We name the worker classes “ClassRoom” and “FillClassRoom”; and the application class “RunFillClassRoom”. Using UML notation,
Draw the class diagram below:




Paste source code below:






There will be difficulties and errors in your program when you first write the program. You can use the debugging methods learned in the previous lessons to make the final program work.


Insert screen captures of the program’s runs below this line:





Grading Criteria:

Program: 30
Apr 13 '07 #1
Share this Question
Share on Google+
6 Replies


Expert 10K+
P: 11,448
I am looking for someone to do the assignment for me really. Just so i can pass the class. Any Takers?
You don't want to cheat do you? Show us what you have done so far and
we can possibly help you; but most important is that *you* do the assignment,
not us.

kind regards,

Jos
Apr 13 '07 #2

10K+
P: 13,264
Please read the guidelines.
Apr 13 '07 #3

P: 8
Disregard this post; I posted this in a moment of desperation. I am currently trying to figure out how to delete this.
Apr 13 '07 #4

10K+
P: 13,264
Disregard this post; I posted this in a moment of desperation. I am currently trying to figure out how to delete this.
There is no need to delete it. You can continue to get help on the same question in this thread once you've done some work on it yourself first.
Apr 13 '07 #5

P: 8
Understood Thanks.
Apr 13 '07 #6

P: 8
Well I am still lost on this one. Could anyone give me a good example code that I could follow. Maybe the code for a similar problem, this is how I learn best. Thanks
Apr 19 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.