I very much doubt anyone can do this within the next 24 hours

PART 1
Overleaf is the week by week winning numbers of the National Lottery that were drawn some time ago. This is found in the latter of this assignment.
You are required to do the following:
i)     Create an array of these winning numbers so that the first array element contains 3, the second contains 5, the third contains 14 and so on. There are 180 numbers in total and this number should determine the size of your array. Write java code to read the winning numbers from your file into a suitable array. To do this you are recommended to use a �Tokenizer� . Test your code by providing output of the winning numbers from the array to the screen, including the number of numbers read from the file.
Note: The program must determine how many numbers were read from the file.
Determine how frequently (i.e. how often) each of the winning numbers occurs. For this you will need another array (i.e. a �frequency array�) to store how often each of the winning numbers occurs. For example you can see from the data file that the winning number 9 has occurred 4 times, so that the frequency of 9 is 4. In this case the frequency array element 9 will contain 4. Write java code to determine an array of frequencies.
ii)     Write java code that will draw a frequency diagram, which might look like:
Lottery number     Frequency
1           ***
2           ***
3           ***
4           ***
5           *****
6           ***
7           ***
8           **
9           ****
10           * (e.t.c.)
where for each winning number, there are printed the number of stars that correspond to how often it occurs (i.e. its frequency). We see that winning number 9 has 4 stars, one each of its occurrences.
Combine i) � iii) into a Java program.
PART 2.
iii)     Each line of the file overleaf may be regarded as forming the numbers that belong to an object of class Lottery Ticket. Define such a class in java. Modify the program that you wrote in part 1, so that as each line of numbers is read, they form the data attribute of an object of class Lottery Ticket.
Write java code, so that as each line of numbers from the file is read, they form the data attribute of an object of class Lottery Ticket. As each Lottery Ticket object is created it should be added to a linked list of Lottery Tickets. Test your code by printing the linked list.
iv)     Finally write a method to test whether a particular lottery ticket (i.e. a particular set of six numbers) is present in the linked list of Lottery Tickets. Perform set of tests to demonstrate the correctness of your code.
What to hand in for each part: (see Marking Scheme below)
3 5 14 22 30 44
6 12 15 16 31 44
11 17 21 29 30 40
26 35 38 43 47 49
3 5 9 13 14 38
2 3 27 29 39 44
9 17 32 36 42 44
2 5 21 22 25 32
7 17 23 32 38 42
6 16 20 30 31 47
4 16 25 26 31 43
1 7 37 38 42 46
15 18 29 35 38 48
16 19 21 29 36 45
5 8 10 18 31 33
11 12 17 26 32 42
2 13 22 27 29 46
9 18 19 24 31 41
4 17 41 42 44 49
22 25 30 32 41 43
14 17 22 24 42 47
1 4 6 23 26 49
8 18 20 33 36 38
9 15 22 31 34 48
5 14 17 35 43 48
7 16 25 26 28 41
15 16 17 28 32 46
12 13 25 37 44 45
1 21 29 31 32 40
12 15 26 44 46 49

As I see it, your options are three-fold:
1) Kidnap your teacher, tie them up with gaffer tape and then beat them with a rolled-up newspaper.
2) Kidnap your teacher, tie them up with gaffer tape and then beat them with a rolled-up newspaper untill they give you a pass.
3) Curl up into the foetal position and sob softly.
Don't worry, a unit always seems easier the second, third..even fourth time around.

Similar Messages

  • I want to ask something about firefox. why firefox use very much memory? can you develop to reduce memory comsume? this problem is very distrub in my PC with low memory.

    I want to ask something about firefox.
    why firefox use very much memory?
    can you develop to reduce memory comsume?
    this problem is very distrub in my PC with low memory.
    == This happened ==
    Every time Firefox opened

    How much memory is Firefox using right now?
    # Press '''CTRL+SHIFT+ESC''' to load the Task Manager window
    # Click the Processes tab at the top. (Click once near the top of the window if you don't see tab
    # Find firefox.exe, and see how many kilobytes of memory it's using.
    Showing around 80MB when Firefox first starts is normal. Right now, I have 75 tabs open and it's using 500MB - this varies a lot depending on what you have in the tabs.
    Other than high memory usage, what other problems are you experiencing? (Examples include slowness, high CPU usage, and failure to load certain sites)
    Many of these issues, including high memory usage, can be caused by misbehaving add-ons. To see if this is the case, try the steps at [[Troubleshooting extensions and themes]]. Outdated plugins are another cause of this issue - you can check for this at http://www.mozilla.com/plugincheck

  • Since downloading Mavericks last week my Mac is very slow.  Anyone else having this problem?  Any suggestion as to speeding things up?

    Since dowloading Mavericks last week my Mac is very slow.  Anyone else having this problem?  any suggestions as to what to do to speed things up?

    It will help people help you better if you post your iMac variant and Mac OSX version. Please do "About this Mac" from your Apple menu and, in the resulting window, click the "More Info" button. That will give this window:
    The model is in the line I've indicated with the red arrow. Please also post the results for "Memory" and "Processor."
    DO NOT post the serial number, however.

  • Does anyone know how many times a newly purchased product (MB Air 2014) can be exchanged within the 14 day period?

    Does anyone know how many times a newly purchased product (MB Air 2014) can be exchanged within the 14 day period? I feel like the MB Pro would be a better fit for me, so I wanted to exchange my Air for the Pro. But also, if I end up not liking the Pro and want to go back to an Air, would I be permitted to do so with another exchange? (all still within the 14 day window after purchase of course).
    Also, are there any specifics I need to know in order to return my product and get a new one?  Obvioulsy, I would be sure to remove all of my personal files, music, etc...but is there anything else I need to do?
    And lastly, and im sure this question is irritating to you Mac wiz kids out there, but are the two models im comparing really all that different?  I just cant make up my mind and would love some pointers/suggestions/tips/info to help me figure out what model is best for me (the apple employee that was helping me in the store was actually not that helpful at all, if they were I wouldnt have to ask this question on a discussion board).  I do tons of multimedia things and download and enjoy music, tv shows, movies, all that stuff..and I used to love to burn dvds and cds (obviously cant do that with the MB Air now which totally bummed me out ).  Which model does anyone think I should stick with?  Id greatly appreciate some opinions! Really tho, help me out ppls! I'd love some helpful advice! I sometimes have problems making big/important/expensive decisions lol  I just really want to make sure i am getting the best model for all of my daily tasks and all of the things i actually do regularly on my computer.
    Oh, last lastly- I cant afford anything more than a 13" STANDARD MacBook Pro at the moment...soooo the Retina display is unfortunately not an option for me.
    Which is also a big bummer.but i think i can get over it...or beg someone to loan me an extra $200 lol
    Someone....Annnnyyyone....Pleeeeease....Heeelllllllp....
    Thanks

    Just play with each and figure out which one you want. I believe they only allow 1 exchange unless it is a defect issue. You can always return the exchanged item and rebuy what you want if they will not allow you to do multiple exchanges.
    But again, you need to really figure out which one you want.

  • How much storage units can be added in the single bin.

    Hi all,
    Can anybody tell me how much storage units can be added in the single bin.
    Dev

    Hi Dev,
    AS Prashant & Abhijit mentioned above the maximum storage units in a single bin is based on various factors such the putaway strategy & capacity check you have set for your storage type as well as palletization data.
    Now in case of Bulk Storage which you have mentioned above, please go through the below F1 help for the block structure.
    In bulk storage, you need to define for each block (or row) how many
    storage units fit into the block.  For this purpose, you must define
    both the number of columns as well as the maximum stack height.  *The*
    product of these factors usually gives the maximum number of storage
    +units and is determined automatically by the system.  However, it is+
    possible to change the maximum number of storage units to a lower number
    if the storage bin or the material features require this.                                                                               
    Hope it helps.
    Thanks & Regards,

  • I want to remove the header and footer when printing from my mac, i can do this in the Page Setup on my PC but not on the Mac. I can do it each time I print but then it resets. How do I make a universal change?

    I want to remove the header and footer when printing from my mac, I can do this in the Page Setup on my PC but not on the Mac. I can do it each time I print but then it resets. How do I make a universal change?
    == This happened ==
    Every time Firefox opened

    Go to the "File" menu, then "Print." The window that appears will have three drop-down menus at the top.
    The first is labeled "Printer",
    The second is "Presets".
    The third is unlabeled but has "Copies & Pages" selected by default.
    Click on that third menu and select "Firefox" near the bottom of the list.

  • In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE!

    In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE! Thank god Pages 09 is still there.

    …and the other 98 missing features.
    Just use Pages '09, which should be in your Applications/iWork folder.
    Rate/review Pages 5 in the App Store.
    Peter

  • I have an ipad 2 the game center it know is telling me that game center is currently disabled,you can change this in the settings menu. I do not know were in the settings to look, to fix the settings

    i am getting a message on my ipad2,  i was playing frogger pinball and and the front says  story, challenge, add and store next to store it has a leaf with 3 people icons i clicked on that, and i am getting a message that says i hit game center on the bottom the message reads game center is currently disabled. you can change this in the settings menu I have gone to the settings menu but I am not clear as to were to fix the program.

    i got your response and i went to the restrictions, and I have gone to game center on the bottom it says multiplayer game on adding friends on, i have tried to turn it off and it wont let me, first shoul i try to shut it off and 2nd do you know why it might not be letting me do so it i should be

  • TS4391 Does anyone know if this affects the Nik software plugins?

    Apple says Aperture 3.4 is not compatible with some third-party plug ins. Does anyone know if this affects the Nik plugins?

    I had the same question and asked NIK software support. Their reply was they are seeing no problems with Aperture 3.4. I subsequently upgraded to 3.4 without any problems and verified the NIK plug-ins work as they did before.
    Note that NIK updated all their plugins on 13 Sept. I do not know whether you need the updates to avoid problems. I updated my plug-ins prior to upgrading to 3.4.

  • Does anyone can tell me if the only way to buy the "iCloud subscription" is through VISA card?

    Hi,
    does anyone can tell me if the only way to buy the " iCloud Subscription" is through VISA Card ?
    Tank you,
    Lúcio Marques
    <Email Edited by Host>

    Hi Carolyn Samit...
    tanks for the replay but i have to tell you that i see no change of buying the iCloud without Credit Card, i whish i had...
    But tanks for your anwser
    See you soon...
    Lúcio Marques
    <Email Edited By Host>

  • Possible to have 2 lines on mac or windows jabber client? I can do this on the iPhone client.

    Possible to have 2 lines on mac or windows jabber client?  I can do this on the iPhone client.

    No, they can only have 1 line.

  • When click the email icon on my iphone, it opens on one email only.  I can not go to the next or previous email, a different email or anything.  It only gives me the option to move that email!  How can I stop this.  Its been working perfectly well before!

    When click the email icon on my iphone, it opens on one email only.  I can not go to the next or previous email, a different email or anything.  It only gives me the option to move that email!  How can I stop this.  Its been working perfectly well before!

    Now as you may know there is some icons at the bottom of the mail app, at the top left conner you should have the inbox button and on the upper right conner you should have two arrows to shift between emails. If any of those options works try :
    Settings>General>Reset>Reset all Settings
    If that does not work try to re add the account
    Last but not least, restore as new.
    Hope that helps.

  • Every time I log onto my iMac profile it starts Safari immediately trying to load a blank page...is anyone else having this problem the last day or two?

    Every time I log onto my iMac profile it starts Safari immediately trying to load a blank page...is anyone else having this problem the last day or two?

    Go to: Safari Preferences... and select the General tab.
    1. Check to make sure that "New windows open with: Homepage"
    2. Then if it still opens blank...? Select the Homepage page that you want Safari to open on and click the "Set to Current Page" button.

  • I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."

    I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."  It hasn't, what should I do? Thanks Shawn (Irish Se7en) .

    Can you try to rename (not delete!) the folder named "YOUR_CATALOG_NAME Previews.lrdata" and restart Lightroom?

  • In Lightroom mobile how can move photos within the collection????

    In Lightroom mobile how can move photos within the collection????

    What you can do is to move (or copy) a photo form one collection to another. This can be triggered via the top right app menu item from grid view. Same menu is available when you open up an image for editing. Hope that helps. -Guido

Maybe you are looking for

  • IPod shuffle recognized in windows, but not in iTunes? Anybody please help!

    I need help... my BRAND NEW shuffle (4th gen) will not come up in the devices list... iTunes will not recognize anything is plugged in even though it shows on the H drive in windows....

  • How to fetch data from Mysql with SSL.

    I am using jdk1.5 and mysql 5.0. How to fetch data from Mysql with SSL I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true. It shows error. how to fetch

  • All Applications and Finder Crashing after Leopard Update!!

    I've tried everything. See previous question... http://discussions.apple.com/thread.jspa?threadID=1378080&tstart=0 Now the same problems keep arising... 2/5/08 1:09:36 AM [0x0-0xf00f].com.apple.Safari[213] Safari(213,0xa04da074) malloc: * error for o

  • Scroll 2 ListView in one page xaml

    I have 2 Listview represent 2 list type diffrent. i can not scroll them when set them in one page. Hey there, can you help me?

  • Windows 8 and android

    I have skype on windows 8 which is logged in as my full name with a gmail address, this is the one i use mainly.  i tried adding it to android but it always wants me to login with skype name or microsoft account. neither of these are part of the wind