Purchase Solution

Do not understand concepts of variables, classes, strings, and especially how to save data for later use when creating a program in java.

Not what you're looking for?

Ask Custom Question

The attached file is the assignment I have been given to do. I can understand certain things, which I have attached in another file. But I don't understand some things and think i'm leaving something out, mybe some variables? somehow. As much help as you can give me with how to make the program work, especially the admit button, and hints for using java would be great.
Basically, what do I need to do to make it work?

Purchase this Solution

Solution Preview

First, life will be much easier if you can give some specific questions, i.e., which parts you do not understand? But, anyhow, I will try to guess your true needs and deliver what i can.
<br>
<br>In the driver class, say ProgAsgn2 class, you need to have a circular array or a linked list to keep the occupied bed for convenience of implementing NextPatient and PreviousPatient. Implementing a circular array may involve some tricky things, but can make NextPatient and PreviousPatient much easier. If you use linked list, then you have to do some extra work in tracing previous and next patient. Both way will work. You also need to maitain a "current" patient pointer in the patient data structure.
<br>
<br>You also need another array or linked list to keep track of the available beds with their id numbers. For each new patient created, you need to check if there are available beds. If so, then you can admit the patient and take the bed from the list or array and put the patient with the bed number to the patient list or ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Javscript Basics

Quiz on basics of javascript programming language.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.