How could i store this

I am doing a university assignment for a fictional car company. Anyway, the scenario says there are 3 categories of viechles, with a number of cars in each.
small car: 3 renault clio's
family saloon: 3 vauxhall vectras
light van: 2 Renault traffic's.
I have to be able to print a report of these cars, and also hire them oiut to customers. So my question is, how do i track this information. I was at first, going to just define them as arrays with literal values, just to demonstrate how to do it. It is only our first assignment.
But i thought, maybe i could use a file. However, i would have to track the car, the type of car it is, and if it is hired out or not, and also, it's mileage.
Any suggestions how this could be done. Remember, it is only our first assignment, so nothing too crazy!
Thank you,
Gary.

Some friendly advice.
Normally, "I have some homework, how do I do it" does not fly here. You need to get started, and post when you have some specific problem that is hanging you up.
In this case, I suggest that you may want to first consider how you are going to encapsulate the data and behavior for each Car object in your program. This is done during the design phase of any project, simple or complex. Then, once you know how to represent a Car, then you can think about storing Car objects, perhaps in a Fleet object. MORE DESIGN! What is a Fleet? What can it do?
You are not just learning a programming language. You are learning how to design applications to solve problems. You have to start NOW.
You have one saving grace. You did not say URGENT in your question. However, your teacher, your book, and the online Java Tutorial are where you need to start. You have to do some up front work.
� {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • HT1926 when trying to setup itunes on my pc i get the following message: there is a problem with this Windows installer package. A program required for this install to complete could not be run. How could I solve this problem?

    when trying to setup itunes on my pc i get the following message: there is a problem with this Windows installer package. A program required for this install to complete could not be run. How could I solve this problem?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START/CONTROL PANEL/Programs n Features/highlight ASU and click REPAIR,

  • Hi, I upgraded my iphone 4 to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tels that this device is not registered as part of the iphone developer programme. How could I fix this problem? Please..?

    Hi, I upgraded my iphone 4 (4.3.3) to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tells that "this device is not registered as part of the iphone developer programme." How could I fix this problem? Please help me...,

    I had a similar occurrence with my just activated iPhone 4.
    I had been using the phone for three days when an odd occurrence with voice mail caused me to call tech support. After some discussion they decided to push the activation to my phone (even though I had been using it for three days). When I went to power it back up again I repeatedly got the "no service" notification. I got tech support on a land line and we tried hard reboots and so on. No joy. They told me to take it in to the point of sale and either the SIM card or the phone needed (or both) needed replacing.
    I tried one last hard reboot after dinner and the phone came up with service, but I took it in to the point of sale in the morning and they swapped the SIM card out and I went to a Genius Bar appointment to get the phone checked out. It is supposedly OK, but I am still having some problems when syncing it so I will have to visit the Genius Bar again tomorrow about that. At least I have not experienced the "no service" problem in the roughly 24 hours since the SIM card was replaced. (Fingers crossed)

  • How could I fix this code

    Hii 2 all
    How could I change this statement for parameters list,, so the client_name can contain spaces ??
    add_parameter(p_id,'p_client_name',TEXT_PARAMETER, '''' || :cntrl.client_name || '''');
    cause it couldn't print and give syntax error when the :cntrl.client_name contains any spaces !!!!
    please help
    thanks:)

    First I must apologize, I asked you to test something that was not needed... for a moment I thought we were talking about web.show_document, that's why I asked you to test with double-quotes..
    Regarding your problem, Manu is right, there is not need to wrap around the parameter in quotes..
    add_parameter(p_id,'p_client_name',TEXT_PARAMETER, :cntrl.client_name);I have to ask you the same question that Manu asked you before, where are you using this parameter?
    In your Report you must be using in a piece of PL/SQL code, we need you to post that code...
    Edited by: Rodolfo Ferrari on Sep 10, 2009 4:44 PM

  • I'd like to transfer the photos from iPhone to MacBook Air. My iPhoto used to detect my iPhone automatically, but it doesn't happen anymore. How could I fox this? Thanks for helping!

    I'd like to transfer the photos from iPhone to MacBook Air. My iPhoto used to detect my iPhone automatically, but it doesn't happen anymore. How could I fox this? Thanks for helping!

    Check the iPhoto preferences:
    From the main menu bar:  iPhoto > Preferences > General:
         "Connecting camera opens"  : Set this option to  "iPhoto".
    If that does not help, disconnect your iPhone and reset your iPhone.
    To reset iPhone, press and hold the Sleep/Wake button and the Home button at the same time for at least 10 seconds, until the Apple logo appears.

  • My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    Hmm . . . comes with a Utility MPEG2 Component ML app with no explanation of what it's for?
    The utility app is an "assistant PKG installer." It allows Lion and Mountain Lion users to install the older QT MPEG-2 Playback Component installer PKG file which is not allowed to run on its own under Lion or Mountain Lion since these operating systems already have a QT X only MPEG-2 component embedded in the QT embedded structure. Without this utility you would have to either copy the component from an older system to your Lion or Mountain Lion system, use Pacifist for installation, or manually open the PKG contents and transfer the component to the appropriate component folder.
    As to your "discussion" regarding the playback of AVI file types, there are really only two strategies here:
    1) You can add component support so that QT can play the files natively or
    2) You can convert the file contents to compression formats that are natively compatible with the unmodified QT component configuration.
    Each user should decide for his or her own self which approach best suits their needs for a particular source file. In most cases, conforming the system's codec component configuration to play the source file directly results in higher video quality since no transcoding takes place but this strategy will not work if a codec which is required is not available for the user's operating system. On the other hand, converter utilities tend to support more built-in codecs and are easier to use since the user does not have to concern him or herself with the nature of the particular source compression formats but at the risk of some potential loss in visual quality. As to what converter to use, once again this is a matter of personal choice. In the case of commercial converters like iSkysoft, the codecs are built in while MPEG Streamclip accesses the host operating system's QT codec component configuration. I personally prefer the free HandBrake app for AVI, MKV, TS, MTS, and M2TS conversions since it has an exceptionally full-featured X.264 GUI with some user options that 97% of users are likely to never use.

  • How could I write this in java

    I have to use a parameter in a statement. I am trying but its giving error. I am trying to write it like ....
    fw.write("Object     dir/my.dat\n");I substitute my.dat with a variable dat & write like
    fw.write("Object     dir/+"dat"+\n");dat is a String variable.

    Sam_Fin wrote:
    thanks,welcome
    How could I remove this error.
    Unreported exception java.io.IOException; must be caught or declared to be thrown fw.write("#the number of patterns to be recognized\n");
    Its for every fw.write statement.read the Sun (Oracle?) [tutorial on exceptions,|http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html] and then either throw the exception or wrap in a try / catch block (the tutorial will explain how).

  • How could we do this without killing the system?

    If we take in a file through the PI file adapter that has 1 million lines and read it in and process each line as a single transactionu2026  How could we do this without killing the system?

    Hi,
    >>>How could we do this without killing the system?
    which system ? PI could do this if the transactions are small (only one line so very small I guess)
    but I'm not sure about the ERP...
    Regards,
    Michal Krawczyk

  • I don't know the owner I found an iPhone4 how could I use this???

    i don't know the owner how could I use this???

    If you found a phone you should take it to the police. You don't have the right to hang onto it. If it's not claimed after a period then you may be able to retain it. But in any case if it is 'Activation Locked' only the original owner can unlock it. There is no way round this, and without being able to contact him (and if you could you should return it) the phone is permanently unusable if locked in this way.

  • My speaker doesn't work... I haven't drop it or got it wet. How could I fix this??

    My speaker doesn't work... I haven't drop it or got it wet.
    How could I fix this??

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • The wifi on my macbook pro (lion) is ridiculously slow. the wifi on my pc works perfectly though. how could i fix this?

    So I recently bought my MacBook Pro, about three days ago, and the wifi connection is horrible. I can barely access anything on the internet. I tried using my PC laptop, and the wifi worked very quickly, so the problem definitely isn't my wifi connection and has to do something with the MacBook Pro. What would be the problem? And how would I be able to resolve this problem?
    By the way, I am using the OS X Lion and this is my first Mac ever.

    I think the other devices are fine.  I'm not sure.  It usually only happens like a couple days out of the week.  I do know that the network I'm using when I click on the wifi symbol at the top of my screen doesn't have a padlock on it.  It IS MY network that is at my house, but maybe that has something to do with it.

  • How could i make this effect ?!

    Hello A.M.,
    Is there any chance to find a lesson how to make this effect ?!
    http://img253.imageshack.us/img253/2035/effecta.jpg
    Best Regards,
    SB4

    AlMostabed wrote:
    Hello A.M.,
    Is there any chance to find a lesson how to make this effect ?!
    http://img253.imageshack.us/img253/2035/effecta.jpg
    Best Regards,
    SB4
    Looks similar to a smoke effect.  But you can use a paint brush and paint your colored lines then use the Liquify tool on multiple layers (Filter / Liquify).
    A Comprehensive Guide to Photoshop Liquify.

  • I'm developing a test system that reqiures that I run a TCP/IP session in the background while running TestStand. How could I incorporate this TCPIP vi into the TestStand Operator Interface ?

    Test Engineering
    Empower RF Systems Inc.

    Mal,
    If you have the LabVIEW Operator Interace, you can place your TCP/IP Vi anywhere you want. Either at the beginning of the execution, when a particular sequence is running, when a user logs in, etc. Since you have the LV code, you can just add your TCP/IP as a subVI in the right place. You could also place a button in the front panel that will allow you to CONNECT/DISCONNECT by calling your VIs.
    Does this help?
    Azucena

  • How could I write this code?

    I am trying to create a shared object that will host a chat
    room environment. I will have many of these rooms and I know what I
    want to do, just not how to write it in actionscript or if it is
    even possible. the underlined portion is what i just don't know how
    to code (
    (room + roomNumber + _so) ) as it should throught usage
    equate to something like
    room1_so,
    room2_so,
    room3_so, and so on. any help would be greatly appreciated.
    thanks in advance.
    function doJoin(roomNumber) {
    (room + roomNumber + _so) = SharedObject.getRemote(
    (room + roomNumber + _so) ,_root.clientroom_nc.uri,true);
    if(
    (room + roomNumber + _so) ).data.seat1 = occupied) {
    do this;
    }

    its actually connecting to flash media server remote shared
    object as opposed to the local shared object. The code in question
    was actually taken nearly word for word from the macromedia sample
    file so I know that that portion is correct.
    If I replace the shared object name from
    tl["room"+roomNumber+"_so"].connect(_root.clientroom_nc);
    and change it to
    room1_so.connect(_root.clientroom_nc);
    everything works fine and the connection is succesful,
    however since I hope to have many many rooms that is just not a
    feasible way to write it. I have racked my brain trying to think of
    an alternative way of writing it but have come up with nothing. I
    am well versed in Basic, PHP, and some C, but this damn
    actionscript stuff is throwing me for a loop since it is incredibly
    different in a lot of ways.

  • How could u write this application?

    write an application to read an unknown number of integer pairs representing binary numbers from a file redirected input from the command line. do not use sentinel value or prompt.
    1. Echo print in colums 1 and 2 the numbers that were read.
    2. Convert each number to decimal for columns 3 and 4.
    3. Count the number of 1's in the numbers for columns 5 and 6.
    4. Find the larger of the decimal versions of the first and second number of each integer pair, and print that number in column 7.
    5. Keep separate cumulative sum of the decimal versions of the first and second number of each integer pair, and print that number below the appropriate column after all numbers have been read.
    Sample output:
    10 11 101 1111 111 10000 101011 0
    thanks for your interest

    > hey young fella, its not a HW or something!! everyone
    talks alot here like they know everthing(which they
    aint gotta clue), i decided to put an easy
    application to c how many people are going to be able
    to write this application??
    That's a little tough to believe. It's far more likely that you need some help on figuring out how to go about writing such an application. There's nothing wrong with that; just know that most folks who volunteer to help here aren't particularly interested in "proving their skills" by way of programming "challenges". They typically get far more satisfaction by helping others learn Java.
    i guess u r one those fellas who dont have a clue about java!!! b/c if u
    were not, this would take ur 5-6 mins of time..
    So, do you have a specific question regarding those requirements? If you do, please ask. If, on the off chance you've got some special insight regarding an implementation, post your idea and get some feedback from the community.
    Also, please make the extra effort to write out words such as "see", "you", "are", "your", and "because". The extra keystrokes won't cost much in the way of time, and the enhanced clarity will be appreciated by those communicating on a forum with international readership. Also, it will give the appearance that you take your question seriously, which will in turn make your question look more interesting to answer.
    Thanks!
    ~

Maybe you are looking for

  • Some links look clickable but don't work - Word 2010 with Acrobat PDF creation

    Windows 7 Latest Acrobat subscription Word - Office home and student 2010 I can create PDFs via Acrobat and Word on Windows 7,  but after editing the PDF with Acrobat on Mavericks OS X, only in-document links remain clickable. External web hyperlinks

  • Video transfer not working

    I have ipad mini and I do my update to ios8, then after updated  I cannot  transfer  video files to the ipad

  • How to override hashcode() in String

    I need to override the hashcode() method in java.lang.String with a cyclic shift hash code. how do I do this? String is final so I cannot extend it. I've looked at all the postings regarding the logic of why hashcode() must be overwritten with equals

  • Problem in invoice printing smartform

    Sir,         I am encoutring a problem in smartform of invoice printing,         the customer and invoice details are taken in secondary windows,        and the item details are taken in mainwindow.        the main is repeating if that invoice has mo

  • Problem opening CC and downloading Photoshop

    I just got a brand new iMac, and installed the Creative Cloud. At the first go it opened a window at the top right corner but then didn't do anything else (page was blank). Since then I've been trying everything from uninstalling, to installing again