Using Bluej to make a pethotel program

i am new to bluej and have been given a project which i believe is over my standard but because i need it to pass my year at college i can not drop it. i recently came across this site and i thought it would be really helpful please if there is anyone out there that can help me please can you get in contact asap please. this is an outline of what the project should be.
JAVA Project 2006/2007
Program Brief
The Animal Hotel
The Animal Hotel comprises of dog kennels and a cattery where dogs and cats are looked after in palatial surroundings.
The proprietors want a computer system which keeps track of the animals that they have in the hotel.
The data to be stored is:-
Owner Data: unique-owner-id, name, address, phone.
Common Animal Data: animal-name, type-code, dob, sex, breed, weight, unique-owner-id, check-in-date, check-out-date, currently-resident-flag, days-of-stay, cost, vat, total-cost.
(The type-code is simple 1 � dog, 2 � cat.)
If a DOG
Also has fields: feed-quantity, number-feeds-day
( All dogs get the same food here )
If a CAT
Has field: cat-food-brand-code
( Each cat is given its favourite cat food )
The system will be menu driven and the main menu will comprise the following options:-
Add owners
Add animals
Search for animal
Search for owner
Display current animals.
Delete animal
Delete owner
Check-in animal
Check-out animals and produce bill
On start up the program should load the owners and pet data from file.
On shutdown the program should write to the owners and pet data files.
Program Specification
The main menu options should do the following:-
Adding owners to the system. As each owner is added a unique-owner-id is given which is simply one more than the highest one currently in use. This would allow one owner to check in more than one animal.
Adding animals to the system. As each animal is added (The check-in and check-out date is entered but the user also enters the number of days stay so that the programmer does not have to try to calculate number of days from two dates)
Search Animal � Showing all fields for animal � the search key is animal name.
Search Owner � Showing all fields for owner � the search key is owner name.
Display current animals. Showing all fields of animals who are currently checked in.
Delete animal � only done to void errors as all animals are kept on file so that the proprietors can produce reports etc.
Check-in animals - simply sets the in-residence flag to true by entering the unique-owner-id for all animals for that owner.
Check-out animals and produce a bill for all the owner�s animals and sets the in-residence flag to false for all the owners animals by entering the unique-owner-id.
The production of the owner�s bill is done by calculation the number of days stay times the room rate per night + number of days stay * food costs.
The room rate is based on the size of the animal:-
Up to 2kg �3.00 per night
2kg and < 5kg �4.50
5kg and < 10kg �5.50
10kg and < 15kg �7.00
15kg and < 20kg �8.50
20kg �10.00
The animal feed for dogs costs �1.50 per kg.
The cat-food-codes used are:-
1 - �0.45
2 - �0.50
3 - �0.65
4 - �0.75
5 - �0.90
6 - �1.05
7 - �1.20
Data Files
The system should use three data files � dogs.dat, cats.dat and owners.dat.
On start up the program should read these in to arrays in memory.
On shutdown the program should write the data from the arrays back to file.

Think java programming, only without access to what's actually going on underneath. Learning no command line syntax, but instead painting a pretty yellow square for every Object you instantiate. Being able to right click on a pretty square and click one of any number of its methods, to see what magic happens to the variables inside it.
IMHO, you should start off with the basics when first programming at uni, instead of hiding them away. Teach the students java, javac, and to use notepad++/emacs/vim/whatever and a command line.
BlueJ has its place, of course. It might be useful for high school programming courses, or perhaps as a first IDE once they've learned the basics of java. Just my opinion, of course.

Similar Messages

  • How to make a simple program in numbers that i can use on my iphone

    how can i make a touchable program in numbers that i can trasfer to my iphone and use out in the field of work? i am pretty good at excel sheets,but am still new with my macbook.

    Excel can't make an iPhone application, it can only make a spreadsheet. You would need an iPhone app capable of reading a spreadsheet produced by Excel.

  • How to use afcs, i want to make video chat program using afcs....

    hello, i want to make video chat program in android air.
    so i try to afcs(Adobe LiveCycle Collaboration Service), but it shut down that create new account..
    how to create new account??
    how to download afcs SDK??
    help.. me .. please..~~~

    Hi Cbigb,
    You can download the current LCCS SDK here..
    https://cocomo.acrobat.com/download/payload.zip
    If you are interested in talking to us here at Influxis about our new service offering please contact Wesley Daggett at 661-775-3936 or via e-mail [email protected]
    cheers,
    James

  • How to make a Java program that recognises a function of two variables...

    How to make a Java program that recognises a function of two variables to assign values to that?
    First I will give an example and then do the question.
    Ex1.
    We have any function, eg.y = x ^ 2 + 1 (read 'y' equals 'x' high to the square), a function of the second degree.
    To build the graph of this function attach values to 'x' to find the values of 'y'
    And thus mount the pair ordered (x, y) which represents a point on the Cartesian plane.
    Assigning values to 'x' 'we can build up a table that gives us the pairs ordered:
    We can use any numbers, but arfer interval [-3.3]
    X | y = x ^ 2 + 1
    -3 | Y = (-3) ^ 2 +1 = 10
    -2 | Y = (-2) ^ 2 +1 = 5
    -1 | Y = (-1) ^ 2 +1 = 2
    0 | y = (0) ^ 2 +1 = 1
    1 | y = (1) ^ 2 +1 = 2
    2 | y = (2) ^ 2 +1 = 5
    3 | y = (3) ^ 2 +1 = 10
    We then ordered the pairs:
    (-3.10), (-2.5); (-1.2), (0,1), (1,2), (2,5), (3,10)
    Tabem that can be represented by a table:
    X | y
    -3 | Y = 10
    -2 | Y = 5
    -1 | Y = 2
    0 | y = 1
    1 | y = 2
    2 | y = 5
    3 | y = 10
    Now I begin to explain my doubts.
    See this program:
    Ex2
    * To change this template, choose Tools | Templates
    * And open the template in the editor.
    Encontrando_o_valor_de_y package;
    * @ Author des Soldat Gottes
    Import javax.swing.JOptionPane;
    Public class (Main
    * @ Param args the command line arguments
    Public static void main (String [] args) (
    Int x, y;
    String x1;
    X1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',"); / / receives a value for the function y = x + 1
    X = Integer.parseInt (x1); / / tranforma String in int
    Y = x + 1; / / receives the value of 'x' and calculates' y '
    JOptionPane.showMessageDialog (null, "The value of 'y' is: \ t \ t" + y);
    / / Displays the value of 'y'
    System.exit (0);
    We see that the program receives above a value for 'x' and replaces the function contained in the program, y = x + 1, and so is the value of the variable 'y'.
    In: x1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',");
    The entry is a number and that number is assigned aa ja existing function in the (y = x + 1).
    The question is: would it be possible to come to a function?
    Ex: the program ask: DIGITE THE FUNCTION?
    The USUARIO DIGITARIA A FUNCTION ANY, TYPE: y = x ^ 2 +1
    The program would recognize the function and give numerical values to that function as Ex1, at the beginning of this text.
    And then to find the values of the x and y launch a table.
    It would be possible that?
    By invez of entering with a number so that the program sustitua a function ja existing as Ex2, seen above, entering with a function quaquer (type: y = x ^ 2 +1) for the program atribuisse values to that function and then create a table of values as Ex1.
    I hope it has been easier to understand my doubts now.
    Thank you for your attention!
    God bless!

    rafaelmenezes wrote:
    Thanks for the explanation, could understand what fly said.
    But as it applied to a program?
    How to create a program that recognizes that the entry coefficients?Are you asking about how to parse out the coefficients from the string "3x^4 + 4x^3 - 8x^2 + 5x^1 + 2x^0"? If you define the format to strictly follow that example, this should get you started:
    Strip out the spaces
    Split the String on "x^"
    That should give you [3, 4+4, 3-8, 2+5, 1+2, 0]
    Split each resulting String on "+ | -", preserving the operator as a token so you can apply the correct sign to the coeff.
    That should leave you with [3, 4, +, 4, 3, -, 8, 2, +, 5, 1, +, 2, 0]. Every other number is a coeff, the rest are the degrees.
    You can strip out the +, since those coeffs are already positive, and strip out the - after negating the following number. This is all assuming that you have to write this yourself. There is no doubt already a library or 5 out there that does this for you.

  • Hi. I am trying to use Bridge to make web galleries. There used to be something on PS for that but now I cant find it in PS so I was advised to use Bridge.  However, there is something called Output Module (AOM) that is missing from my Bridge.  I download

    Hi. I am trying to use Bridge to make web galleries. There used to be something on PS for that but now I cant find it in PS so I was advised to use Bridge.  However, there is something called Output Module (AOM) that is missing from my Bridge.  I downloaded this.  The instructions say :Copy the Adobe Output Module folder (not the AOM_Package_[OS] folder) into the Bridge CC Extensions folder in the appropriate location: 
    Windows: C:\Program Files\Common Files\Adobe\Bridge CC Extensions
    Mac OS: /Library/Application Support/Adobe/Bridge CC Extensions.  However there is noplace on my Macbook Air running Yosemetie that has this /Library/Applications SUpport/Bridge CC Extensions. Can anyone advise?

    That file could be set as a Launch Agent or Daemon in your ~/Library or /Library, You could try to look for it or Safeboot your computer and then empty the trash. Safebooting disables Launch Agents/Daemon and Third Party Kernal extensions. Here's the article to Safeboot OS X: What is Safe Boot, Safe Mode? - Apple Support

  • What do I do with this error message: To use this library, make sure its file permissions are set correctly.

    So I cannot even access the application. It was working fine yesterday and today I get this error message:
    To use this library, make sure its file permissions are set correctly.
    I have changed nothing. All the pictures are there on the computer. Help?!

    Reboot.  Close any programs which open at start-up.  Run Disk Utility (you can type this in the Spotlight search field at the right end of your Menubar).
    In Disk Utility, select your drive from the list on the left, and click "Repair Disk Permissions".  This will take a few minutes, but should be less than ten.
    Reboot.
    Try to open your Library in Aperture.  What happens?

  • Using iPhoto to make books with NetBoot on an apple server in computer la

    I teach an artist book course at NKU. We have an intel imac lab that serves up the software over a NetBoot system on the network from an xServe. We are using iPhoto to make our books. Our problem is that students cannot save their books to work on for more than one class period because they cannot write back to the server and each time the computer restarts, a pristine set of software is loaded onto each computer. I discovered there is no way to save a book. We can drag the library off and save it but we cannot do that with the book which makes is virtually impossible for my students to do their assignment. In iMovie, you can save your project onto an external drive. With Keynote, you can save your project onto an external drive, but with iPhoto, you cannot save your book onto an external drive to complete as time permits. Do you have any help for me? Barbara Houghton, Professor of Art, Northern Kentucky University [email protected]
    iMac Intel Mac OS X (10.4.8) netBoot serves programs onto lab computers over the network

    Barbara:
    Welcome to the Apple Discussions. What if the student has a USB flash drive with his library folder on it. Could he run that library with the iPhoto application that's on the server? Each student would have to import the photos from the main library to his flash library and run it from there. To get iPhoto to switch libraries you launch it with the Option key depressed and, when asked, navigate to the library you want to use and select it. As long as the libraries don't have many, many photos a 1 or 2 G flash drive would work. If a student had their own portable FW or USB hard drive they could use that also. Unfortunately that involves additional hardware. Might not be that big an issue for today's students as they are much more technologically advanced that we are in so many ways.
    Not familiar with servers that's the only way I can think of for each student to have their own library, pictures and keep it for him/herself. Good luck.
    Do you Twango?

  • Is it possible to use Aperture to make a new image from two existing ones--ie, in a new jpg? I essentially want to create a collage that I can then print as a single image, rather than in a book. Any advice will be most welcome!

    Is it possible to use Aperture to make a new jpg from two existing ones? I'd essentially like to create a photo collage (without using existing templates) that I can then print as a single image, rather than in a book. Any advice will be most welcome! Thanks.

    https://discussions.apple.com/message/15678716#15678716
    (Added)
    The main point is that Aperture is used to make digital negatives as good as they can be (for the uses you define), but it does not ADD date to your digital negatives, nor does it produce NEW combination files.  For those tasks you need a Graphics program.
    Message was edited by: Kirby Krieger

  • Illustrator CS6 crashing when using Image Trace - Make on Mac OSX

    Hi all,
    I have a user on a new mac that is just a few months old. It has all Mac updates and all Adobe updates, has passed all Mac hardware tests (and a separate memory test) and I ran the disk permissions check yesterday.
    The issue is that whenever she uses Image Trace - Make illustrator will crash completely. It doesn't give the spinning wheel of death, it just closes. This happens every time on any image file. While we haven't run every possible command on Illustrator I'm sure, this is the only command that crashes the program.
    I have tried deleting the preferences file, but it did not make any difference.
    On the crash report, it does give me a details option which gives a heck of a lot of info but I don't know what parts are relevant exactly so I'll refrain from posting the entire thing.
    Any help is appreciated.
    Thank you

    Hi,
    Have you submitted the crash log to Adobe? If yes than can you please tell me what ID you used during the submission of the crash log.
    If possible can you join the connect session:
    https://my.adobeconnect.com/rbhunwal
    Thanks and Regards,
    Raghuveer

  • Can I use iWeb to make changes to a website created in Dreamweaver?

    can I use iWeb to make changes to a website created in Dreamweaver? How would I do this? I didn't create the site and don't know Dreamweaver, but I figure I could learn iWeb quickly.

    No, iWeb cannot open or change existing sites no matter what other program created them.

  • Can we use Initilization event in module pool program?

    Hi All,
    Can we use Initialization event in module pool program? If not why?
    Thanks In Advance!!!!!!!!!

    The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    SEE THE ABOVE LINK...THINK IT WILL SOLVE ALL YOUR DOUBTS
    REGARDS
    RACHEL

  • If you buy a itunes gift card, can you use it to make in game/app purchases?

    if you buy a itunes gift card, can you use it to make in game/app purchases?

    Thank you

  • I am trying to use songs I purchased from iTunes in my video using Windows Movie Maker.   Can anyone tell me how to do that?

    I am trying to use songs I purchased from iTunes, from my library if you will, in my video (slideshow) using Windows Movie Maker.
    Does anyone know if that is possible to do?   If so, would you please tell me how to do that? 

    Hello, a1p2r3. 
    Thank you for visiting Apple Support Communities. 
    There are a couple options available to you to transfer purchased media to your computer.  Below, I have included a couple articles that outline this process.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    Please note that this feature works only for items that were purchased on the iTunes Store. Any items imported from audio CDs or acquired from other sources will not copy from your iPod to the iTunes library.
    Download past purchases
    http://support.apple.com/kb/ht2519
    Cheers,
    Jason H.

  • HT201372 used this to make a bootable copy for a new hard drive installation. copied the install find but gave error code 110 when making the disk bootable.. Any help in what this code is

    Used createinstallmedis to make a copy of the Mavericks app for use in a new hard drive install.. Copied find but gave error code 110 and failed to make the flash drive bootable.. Any help in what errror code means?

    Did you partition and format the flash drive first? See the following:
    Make Your Own Mavericks, Mountain/Lion Installer
    After downloading the installer you must first save the Install Mac OS X application. After the installer downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
       2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the leftside list. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list.
    Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    Make your own Mavericks flash drive installer using the Mavericks tool:
    Mavericks has its own built-in installer maker you use via the Terminal:
    You will need a freshly partitioned and formatted USB flash drive with at least 8GBs. Leave the name of the flash drive at the system default, "Untitled." Do not change this name. Open the Terminal in the Utilities folder. Copy this command line after the prompt in the Terminal's window:
    sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
    Press RETURN. Enter your admin password when prompted. It will not be echoed to the screen so be careful to enter it correctly. Press RETURN, again.
    Wait for the process to complete which will take quite some time.

  • How to use shared variables with native c programs

    Hello
    What is the way to use shared variables with native c programs?
    I have a c/c++ program that uses the NIDAQmx C-API to perform measurements. Now I want to communicate to a LabVIEW program via shared variables.
    Is there a C-API for shared variables as there is for the NIDAQmx functionality? Where can I find further documentation? The document "Using the LabVIEW Shared Variable" mentions that one "can read and write to shared variables in ANSI C", but there are no hints about how and where to look.
    Thanks in Advance

    Hi user42,
    with CVI 8.0, you cannot create or configure shared variables. However, you can read or write to an already configured LabVIEW 8.x shared variable from CVI using the DataSocket API.
    In order to do this you need to have and DataSocket 4.3 or higher installed.
    Here's a forum post about using the DataSocket functions a LabVIEW Shared Variables:
    http://forums.ni.com/ni/board/message?board.id=180&message.id=24569&requireLogin=False
    With CVI 8.1 and Measurement Studio 8.1 it's possible to use Shared Variables via the Network Varaiable Library (check out the end of the "Network-Published Shared Variable" section within the "Using the LabVIEW Shared Variable" documentation and the following link).
    Datasocket with LabWindows/CVI and LabVIEW Real-Time:
    http://digital.ni.com/public.nsf/allkb/CC4343488413A2F586256E6200099638?OpenDocument
    Daniel
    NIG

Maybe you are looking for

  • AOL Install Fix using CHUD Tools

    Hello, For those of you who were asking about how to fix the AOL install problem on Intel Macs, here is a tip I found at macosxhints.com: AOL seems to have a problem installing on multi-core Intel Macs. The installation hangs at "Installing Main Data

  • Is there a thunderbolt to firewire adapter?

    Hi, First of all, I know there is an apple-thunderbolt-to-firewire-adapter but i'm looking for the opposite adapter. I have a 2010 imac and I'm about to buy a MBP but the problem I see is that my imac has firewire 800 and usb 2.0 ports, whereas the n

  • Analyze table in oracle 8.1.6

    Hi, I am working in oracle 8.1.6 on unix.the optimizer used here is RBO. I need to analyze a table using the command "analyze table <tablename> compute statistics; but my team mate said that the using anlyze table will degrade the performance. how ca

  • Why is my ipod 4 always late on the alarm?

    Why is my ipod so late on my alarm. I am very very upset with apple for a faulty app.

  • Vpn connection droppes Windows 8.1 Enterprise

    Hi. I've an issue related VPN connection. I've setup PPTP connection like this: Windows 8.1 Ent. ->Wi-Fi -> Dlink DIR-300 -> Ericsson GPON -> FC -> ISP -> Ericsson GPON -> Dlink DSR 500N After few minutes i connect to the DSR 500N over VPN PPTP, the