Help me to fix plzzz i just start learn

i got the assignment to do but i tried my best but it doesn't work and i have to submit tomorrow morning can someone help me to pass it please .......................................
1.The following method is used to display the contents of an array of instances of the Book class to the Terminal Window. A decision has been made to change the code from using Arrays to using Vectors.
public void displayBooks()
//Local variables
final int NUM_BOOKS = 10;
Book[] books = books[NUM_BOOKS];
SimpleInput in = new SimpleInput();
Book aBook;
//Display heading
System.out.println("All books in library");
System.out.println("********************");
for (int i=0;i<NUM_BOOKSi++)
//Obtain the next instance from the Array
aBook = books;
//Display details of book to Terminal Window
System.out.println("Title: " + aBook.getTitle());
System.out.print("\tAuthor: " + aBook.getAuthor());
System.out.print("\t ISBN Number:" + aBook.getISBN());
System.out.print("\t Reference: " + aBook.getReference());
QUESTION
a.Three of the lines of code need to be changed. Using the line numbers provided, indicate which need to be changed.
i.............................................................
ii............................................................
iii...........................................................
b.Provide the required code for each of the lines indicated above.
i.............................................................
ii............................................................
iii...........................................................
QUESTION 2.Write the values of the variables i, j and k after each line of code has been executed. If the variable does not have a value, indicate this using �unknown�.
Code I      i I      j I     k
int i, j, k=0;               
j = 5;               
k = -j;               
i = j / 2;               
Nv k = j % 2;               
i = 8 % 3 * j / 4;               
j = 4 * 2 + 6 * 3;               
j = 4 * (2 + 6) * 3;               
QUESTION 3.The following table indicates the requirements of a class you are required to develop.
Class I State / Instance I Validation / Functionality
Name I     Variables (Type)     I
Student I     name (String) The Vector, examsStore,
id (String) is to contain objects of
telephone (String) type Exam. We do not
examsStore (Vector) necessarily know ____________________________________at compile time exactly how many laps will becompleted.
�Store an exam (represented by a Exam object) in next availablelocation in examsStore Vector (method name: addExam)
�Provide the average mark for all exams (method name: averageMark)
a.Provide a class diagram for the class Student. Use the standards used in this unit to complete the diagram.
b.Write the method storeExam to store an instance of the Exam class in the next available position in the Vector examsStore.

can someone help me to pass it please Why bother.
if you have no interest (or ability) in completing the assignment, save time,
just fail, enjoy the rest of today and tomorrow at your leisure.
Of course, if you indicate you are interested, by posting your attempt at solving
the problem, constructive help would probably come your way.

Similar Messages

  • Just started learning

    hey guys...
    I just started learning ZLM. installed ZLM72 server and agent on two SLES 10sp1 servers. then im trying to follow ZLM72 Lab Guide v1.1_0 and also zlm documentation (zlm_72_scenarios guide -- sections3).
    i created a bundle with one rpm in Zenworks control center. after that it says Bundles were successfully installed in the event log on both server and agent. I checked on servers by issuing rug bl command and i see something there.
    S | Catalog | Name | Version | Type
    --+-------------------+---------+---------+-----
    i | Mandatory Bundles | edirmon | 1 | file
    but when i check with rpm -qa command i dont see anything there. so that rpm is not actuvally installed. am i missing something.
    Thanks

    august99,
    ZLM supports two different types of bundles.
    1. RPM bundles
    This bundles contain one or more rpm packages. When you upload a rpm into a rpm bundle you need to select the target platform like sles-10-i586 for it. Once you have that bundle assigned to a device it is a mandatory bundle and therefor will be installed when the device refreshes the next time or when you initiate a refresh. Once the client refreshes, it connects to the zlm server and queries for the assigned bundles. If there is a new one, it will download the bundle information (like the bundle scripts) and will also download the rpm packages from the bundle that matches its own distribution. You can upload in a bundle packages for sles 9 and sles 10, the device will download just the one that matches its own platform. If there are bundle scripts configured, they will be executed depending on your configuration. You can add some scripts to the bundle that get executed before the rpm package download starts, after they have succeeded, before the installation and so on. Once that has happened it will install the rpm package using the normal rpm installation method. The rpm package is then added to the rpm database and you can query for the rpm package with the rpm commands.
    2. file bundles
    File bundles are just a single collection of one or more files, They are not part of a rpm package. Therefor they are not stored in the rpm database. In case of a file bundle, the zlm client is the only instance on the server that knows those bundles. File bundles can be a easy way to deploy a single file without needing all the overheads to build a rpm out of it and deploy it as a rpm bundle.
    In case of your rug bundle list output you see in the last row the type "file" which indicates it is a file bundle and therefor you do not see it in the rpm database.
    Code:
    S | Catalog | Name | Version | Type
    --+-------------------+---------+---------+-----
    i | Mandatory Bundles | edirmon | 1 | file
    Rainer

  • I can't view photos in my email all I get is a ?? What can I do to fix it this just started

    When I open my yahoo mail account any photos in the mail just display as a ?? This just recently started how can I fix this please help

    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears)

  • New iTunes search help!:  I'd like to just start typing in the upper right search and have the list update like it did in older iTunes versions. Now it has little suggestions of WHAT IM NOT LOOKING FOR!

    Remember the days when you were looking for that metallica song... you kind of knew the name... so you start typing it in the search, and that BIG WELL of music would whittle down with every character typed?  the search covered titles, artists, genres, ANYTHING  that was displaying.  I know a lot of folks HATED  this dynamic,  but let's face it, it worked, and it worked WELL.  And Apple's had us all get used to that dynamic for over a DECADE. 
    I get that times need to move foreward,  but they went WAYYYYYYY too far with how the simple search box works now(upper right one) ... The columns of Title, Album, Artist, are still there, but they drastically change the layout and presentation with everything you search for... and newsflash, NOT  EVERY SONG BELONGS  TO A GENRE OR ALBUM OR ARTIST....
    I'm the kind of guy that doesnt allow itunes to attempt to copy eveything into hundreds of folders.  I already have it all pretty well organized...Lots of my music are soundbytes that I just had in the main widow of iTunes. Sure they'd be buried in the thousands of other songs,  but with a click of a key I could get to it... now iTunes ONLY  seems to try searching things that are in albums, genres, labeled so specifically that I would have to take a month off JUST  to start catalogging my music the way iTunes wants... Even THEN  only showing me a small number of choices in the search bar .... like "Do you want these 4 songs you DIDNT  search in the invisible queue next?"  "Did you mean all this other sh*t that you DIDNT  search for?"  **** I used to be able to find almost ANY  song with like 3 keystrokes.  if I type in "Zelda"  ... (looking for that obscure live Zelda acoustic I recorded with my phone that I dont have the band name to)  It suggests EVERYTHING else BUT  that song... whereas before it would just list the 20 or so ANYTHINGS  I have loaded into itunes with that string of letters in it.
    Anyone else seem to have this issue?  Is the OLD  easy to search buried in the furthest preference trenches to TRY  to weed out old dogs such as myself, who were able to master the crappy UI  iTunes has neglected to give a **** about in the past?

    Please try the action I supplied in my post.
    If you untick the search Entire library
    Then type in your search term it will give the list of songs in the main window

  • I don't understand the way I set up my iCloud account and I'm totally confused with it. In an attempt to fix this and just start over completely I deleted my screen name but "bonjour" keeps logging me in. Is it safe to delete it? What options do I have?

    Please help!

    Hi,
    In Messages or iChat go to the App Menu > Preferences > Accounts
    On the left is the list of  Accounts that are set up.
    Everyone gets Bonjour (Although by default it is not Active).
    Highlight the Bonjour Account
    On the right there is a Box that says "Enable this Account" which probably has a tick in it.
    Select it to remove the tick.
    This will turn Off the Bonjour Account.
    The List may also contain any @me.com name you have set up.
    This can be used in Messages as the ID for iMessages
    It is also a Valid AIM screen Name.
    It would helps if we knew which version of iChat and the OS you are using as there are some changes that occur
    An iCloud @me.com name will not work in iChat 5 or earlier due to the checks Apple has in iChat 6 (and Messages) which iChat 5 does not do.
    To also work as a Valid Screen Name the password for your @Me.com name has to be 16 characters or less (AIM server limit)
    9:49 PM      Wednesday; October 17, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HELP!! My Mac Mini just started up to this-

    My Mini started up to a black screen that says,
    /ect/master.passwd: No such file or directory
    -sh-2.05b# com.apple.iokit.IOUSBHIDDriver isn't a valid mach-o
    error mapping module file com.apple.iokit. IOUSBHIDDriver
    can't map com.apple.iokit.IOUSBHIDDriver in preparation for loading
    can't determine dependencies for com.apple.iokit.IOUSBHIDDriver.
    Couldn't alloc class "IOUSBHIDDriver"

    I have tried this tutorial:
    http://docs.info.apple.com/article.html?artnum=106908
    But the Mini had not been started in OS 9
    When I type-
    mount -uw /
    I get the date and mkdir("/var/launched"): Invalid argument
    When I type:
    In -s /private/etc etc
    I get-
    -sh: In: command not found
    ???

  • TS2755 I can't send text to more than 1 person at a time on my Iphone 4.  How can I fix this, it just started doing it out of the blue?

    I can't send a text message to more than 1 person at a time.  I can send text message to one contact, then re-type and send to another contact.  It was working fine until a week ago.

    Send a group message with your iPhone, iPad, or iPod touch - Apple Support
    Send messages with your iPhone, iPad, or iPod touch - Apple Support
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support

  • I stream a lot of TV on my Mac book pro and use a small portable speaker for a few hours at a time. Then when it's removed I see a small circle with a line thru it indicating I have no sound. This has just started happening in the last week. What causes t

    I hope someone can help me with the above question about using a porable speaker for awhile and then being unable to have sound on my computer after I remove the speaker. I don't know how to recover the sound unless I turn off the computer...and this is frustrating when I'm receiving a Skype call ( we live overseas and receive callls fairly often). Thanks for any help on this problem. It just started a week or so ago though I've been streming TV with this speaker for several months without the problem.

    Have you tried a PRAM reset?
    http://support.apple.com/kb/HT1379
    Ciao.

  • Want to start learning Oracle or PL/SQL from scratch.

    Hello All,
    Please guide me as how to start learning PL/SQL and Oracle from scratch.
    Whether I should follow a particular book and go on as given in the book or should I directly take the queries and all and start solving them.
    Thanks in advance...

    Its a good track. For start you should know the PL/sql and sql very well and you can start it like ORacle developer if not directly DBa and then taking kknowledge of administrationand other modules like Backup and REcovery and Performance tuning you can shift to the DBA side.
    job prospects are very good but you need to be very confident and very alert in this job plus llittle clever as well.
    But for now stop thinking so far and just start learning it and start doing it. Doing it means perform every thing practically.
    Regards,
    Navneet

  • HT204291 my airplay from my MacBook Pro to my tv through my apple tv is fuzzy- it just started being fuzzy about 2 months ago- it used to be clear- anyone else have this problem?  How can I fix it?

    my airplay from my MacBook Pro to my tv through my apple tv is fuzzy- it just started being fuzzy about 2 months ago- it used to be clear- anyone else have this problem?  How can I fix it?

    Hi freezebri,
    The following steps may resolve your issue:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    If your TV screen appears fuzzy or black (you see no video)
    Make sure the television you are using supports the Apple TV resolution requirements. Please see the Apple TV technical specifications.
    When you connect power, check to make sure the LED turns on. If the LED is not on, then verify with a known good power outlet or connect something else to the outlet you're using for Apple TV and make sure it works (such as a lamp or clock).
    Make sure you're using the correct video cables and that they are connected firmly to Apple TV and to your TV.
    Connect the HDMI cable directly into the Apple TV and your television, remove any third party devices or adapters.
    Make sure the input setting you've selected on your TV matches the input you have your video cables connected to. See the documentation that came with your TV for more information.
    Change the Apple TV resolution by pressing and holding the Menu and Up button for six seconds. The Apple TV will automatically cycle to the next resolution at approximately 20 second intervals. Pressing the Selectbutton will immediately cycle to the next resolution.
    If you are connected via HDMI, try unplugging and replugging your HDMI cable.
    If HDMI isn't working on an Apple TV (1st generation), try component cables instead (and disconnect the HDMI cable temporarily). Read more about HDMI vs component video.
    Hope this information helps ...
    - Judy

  • Do you have a fix for the problem with Avast. Because soon I will just start using IE since Avast has worked fantastic for me. But I would rather not.

    Question
    Do you have a fix for the problem with Avast. Your upgrade process notifies me that it is not compatible with Avast so I always delete it. Soon I will just start using IE since Avast has worked fantastic for me. But I would rather not. Please help.

    Avast needs to update their Web Rep add-on for Firefox 5.0.
    You can look at the new pre-release version of Avast for Firefox 5.
    * http://forum.avast.com/index.php?topic=80362.0

  • My messaging history keeps disappearing after a day. this just started occuring after my voicemail was fixed. how do I stop this. I have plenty of storage on my Iphone 4s which is 16GB

    Why are my text messages being erased after automatically after a 24HR period. I would like to have the option back to erase the history when I choose. This just started happening when my voicemail was fixed.  How can I stop this? I have plenty of storage available on my Iphone 4S. It is 16 GB.

    http://supportforums.blackberry.com/t5/BlackBerry-​Curve/SMS-Messages-auto-deleting/td-p/15696
    This is one of the posts on here that I found in reference to this problem but it hasn't helped me hugely

  • HT1379 Guys please help? My MacBook Pro won't start up. I have tried the resetting Mac's PRAM and NVRAM procedure with no success. All I see is just the black or grey screen although I hear the drive running.

    Guys please help? My MacBook Pro won't start up. I have tried the resetting Mac's PRAM and NVRAM procedure with no success. All I see is just the black or grey screen although I hear the drive running.

    Hold shift key down while booting should get you in
    go through this list and get back with me
    Step by Step to fix your Mac

  • My airport on my mbp just started turning off randomly and wont turn back on unless i reboot - help

    this just started happening the last 2 days.... it works fine and has without issue.... i think if i pull the power cord out it starts messing up here and there.
    i use a base w a fan under.... but it does get hot as **** if not.
    but again, it works fine, no issues just this weird airport shuts off and when you click to turn back on, nothing happens... when i restart, it works fine.
    i've read all the threads for this type of issue.... tried all the suggested things.... no luck yet... did the airport update yesterday that was specifically made for this issue but its happened again.
    i REALLY don't wanna buy a new mpb.... not cuz of the money, its not the issue... i hate the new mbp's keyboard... and LOVE the 2008 ones w/ the silver keyboard.... just type faster and it feels better than the black keyboard. (strange, i know)
    any ideas on how to fix this or what to do?

    any ideas on how to fix this or what to do?
    Have a repair shop take a look at the MBP to make sure that the internal wireless card is functioning properly.
    I have a 2008 MBP as well and the wireless card needed to be replaced a few months ago when intermittent issues began.
    I had the shop add some extra memory as well at the same time. Really helped.

  • Trying to create a new movie.  It tells me to name my movie, and the only event choice is the last movie I made.  I don't want it there.  I'm lost and I'm just starting.  Not sure I like the new version.  Any help out there?

    I'm trying to create a new movie.  It tells me to name my movie, and the only event choice in the drop down menu is the last movie I made. IMovie Library is greyed out. I'm lost and I'm just starting.  Not sure I like the new version.  Any help out there?

    peggy818 wrote:
    … I'm lost and I'm just starting.  Not sure I like the new version.  …
    have a read in the Manual:
    http://help.apple.com/imovie/mac/10.0/?lang=en#mov755717b21

Maybe you are looking for

  • Screen problems - black screen and lock-up (plus HDMI issues)

    Hi, I'm not sure if these are related to the same fundamental issue, but they are both serious problems that need resolution. I have a new mid-2012 MBPretina.  I am on all the latest updates (10.8.2). The first problem is the most recent, and the mos

  • Classic showing generic document icons

    Recently had trouble whilst running Quark 4.1 under Classic in OS 10.2.8, kernal panic's meaning needed to shut computer down. since running disk and permissions repair through my start up cd things seem to be better, however now when i look for imag

  • Dynamically updating an HTML file

    hello everyone, I have recently developed a simple web server and now wish to update it so that i can include my own tags. These tags will be recognised by my server applicaion using the java.util.regex . However when the app stumbles across one of m

  • Concatenate nested XML tags

    Hello, I'm looking for a solution to concatenate duplicate tags in a xml. I need only the tags 'tag' of 'type=keyword' in one field in a table. The sql statement I use I'm getting six records and I just need one record. Hope my English writing is not

  • Path does not chain with any of the trust anchors, but included in cacerts?

    I have implemented a CA that has a self-signed certificate:<CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> I have a cert from this CA: <CN=realAnonym> With this cert, I want to make a SSL connection to some server with client authentication. <CN=ps, O