Re : I need help..thanks u all :)

Write a program to simulate the process of cars waiting in line and being served at a highway toll plaza UPM. Assume there are 4 toll booths and ONLY one line of cars that feed into them. Time is measured in second and can be declared as int. The time between car arrivals and the time that it takes for car to be served at toll both are random variables. Assume that the average time between arrivals to be 2 seconds and the average service time to be 16 seconds. Test your program for a different type of inputs (i.e., arrival time, service time, and simulation time), and the output of the application must record the following statistics:
Customer     Waiting Time (sec)     Service Time (sec)     Queue No.
1               
2               
3               
4               
�               
Number of queue:
Enter arrival time:
Service time (seconds):
Duration to run simulation (minutes):
XX customers are served by YY with average waiting time: Z.
thanks a lot lo :):)

im jz a new programming student of java, but i do not
know how to write the source code of this program..
seemed so complicated...Any program is complicated when you're starting out. You have to accept that and find a way to deal with it. In this case, this isn't the right way to deal with it.
If you're at the level of really not knowing how to get started, your best bet is to go back to your tutor and/or work with your peers on the course.
Asking for someone to do the program for you or just leaving it out there for someone here to write a step-by-step is not going to help you at all.

Similar Messages

  • Lost all email gmail deleted by mistake need help thank you

    lost all email gmail messages deleted by mistake need help thank you.

    Mail 2.x doesn’t store mail in standard mbox format. The only way you might find Mail messages in a “recovered” mbox file is if it was a Mail 1.x file that Mail 2.x left there after the conversion to the new *.emlx format when you upgraded from Mac OS X 10.3 or earlier to Mac OS X 10.4.
    If you’re running Mac OS X 10.4 (Tiger) and don’t have a backup, what you should have tried to recover are as many *.emlx files as possible. Data Rescue II may be able to do that, but the documentation doesn’t say so. The only data recovery utility that I know for sure can currently recover deleted *.emlx files is FileSalvage.
    That said, you may still try to import those mbox files as Other (not as Mail for Mac OS X), and hope that they don’t contain garbage that causes Mail to crash — you may look at their contents with a text editor first to check whether there are actually any emails there.
    Beware, however, that anything you do with the computer may cause the deleted *.emlx files to be overwritten if you don’t try to recover them first.

  • I accidently hit the restoe button! Is there anyway i can get my apps and music back? I need help thanks

    I accidently hit the restoe button! Is there anyway i can get my apps and music back! I need help thanks:)

    Try restoring the iPod from backup. See the restoring section of the following:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software
    If the apps and music are in your itunes library just sync them back to the iPod if necessary.  If the apps and music are not in your iTunes library see the following.  Not all options are available if you are outside the USA and do not have the latest iOS and iTunes.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.

    hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.

    Yes, under the Settings for the store, you can turn off the auto download for purchases, that way if you purchase an app on another device it will not automatically download on that device.  You would need to do this on both your iPad and iPhone.

  • I need help in finding all the new fontsin iPad 2 using iOS  5

    I need help in finding all the new fonts in ipad 2 using ios 5

    You cannot change the email font. You can make it bold, italics and underline the type, but Helvetica is your only choice in the mail app.
    In the notes app you have 3 choice Noteworthy, Helvetica and Marker Felt. The font can be changed in Settings>Notes>Font.
    You can only use fonts that are built into the app that you are using at the time. You cannot pick and choose fonts from a list of all of the fonts that may be on the iPad but only from the list of fonts that the app allows.

  • Hey! so i was do a AHT on my macbook pro retina and their was a error 4SNS/1/40000001:1DOR-0.000 need help thanks!

    hey! so i was do a AHT on my macbook pro retina and their was a error 4SNS/1/40000001:1DOR-0.000 need help thanks!

    Welcome to Apple Support Communities
    It looks like you ran Apple Hardware Test without plugging the MacBook to the charger. It's normal to see an error if you run Apple Hardware Test without your Mac plugged.
    Plug the MacBook Pro to its charger and run Apple Hardware Test again

  • I have a Steinberg MI4 and a Roland Fantom X7, and am trying to use my Fantom in Logic to record audio. Need help setting it all up using MIDI cables. Please help !

    I have a Steinberg MI4 and a Roland Fantom X7, and am trying to use my Fantom in Logic to record audio. Need help setting it all up using MIDI cables. Please help !

    Encryption wouldn't matter except for Wifi.
    While 10.2 might help, there's not much you can do on the Internet these days with less than 10.4.11
    Tiger Requirements...
    To use Mac OS X 10.4 Tiger, your Macintosh needs:
        * A PowerPC G3, G4, or G5 processor
        * Built-in FireWire
        * At least 256 MB of RAM (I recommend 1GB minimum)
        * DVD drive (DVD-ROM), Combo (CD-RW/DVD-ROM) or SuperDrive (DVD-R) for installation
        * At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools  (I recommend 20GB minimum)
    http://support.apple.com/kb/HT1514
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+tiger+retail+10.4
    See Tom's, (Texas Mac Man), great info on where/how to find/get Tiger...
    https://discussions.apple.com/message/15305521#15305521
    Or Ali Brown's great info on where/how to find/get Tiger...
    http://discussions.apple.com/thread.jspa?messageID=10381710#10381710
    As far as Memory, that's sort of easy, find your eMac here...
    http://eshop.macsales.com/MyOWC/Models.cfm?Family=emac&sType=Memory
    As far as Hard Drive, it's not easy to replace the Internal drive, I'd maybe suggest an external Firewire drive to boot from...
    http://eshop.macsales.com/item/Other%20World%20Computing/MAU4S7500G16/

  • When I open thunderbird ... all the accounts that I had downloaded from different gmail accounts have disappeared I need help thank you

    A while back I downloaded about 15 gmail accounts so that i could cancel the gmail accounts ...
    all was working fine ... but recently when I started thunderbird ... there was only 1 of the downloaded accounts remaining ... and even it was empty ..
    I need some help in finding all the lost accounts and emails
    Thank you

    Assuming you are talking about imap accounts.
    This is the process you would use:
    You synchronised those accounts to download a copy to your computer.
    Then you stopped the synchronising, so that the accounts did not keep updated to be the same as the server.
    Then in Offline mode you would move all of those accounts emails into Local Folders, so that you would be able to delete the imap email accounts and keep all emails on your computer.
    One possibility:
    If the imap email accounts were still able to synch with the server and you had stopped the mail account, it may have done a final synch with an empty server, thus deleting all the emails to match the server. Synchronised imap accounts keep updated to match what the server folders contain.
    First check to see if there are any emails in your Profile folder.
    make hidden files and folders visible.
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    In Thunderbird:
    * Help > Troubleshooting information
    * click on 'show folder' button
    A new window opens showing your profile folder.
    * click on 'ImapMail' folder
    Do you see a list of your imap mail accounts?
    If yes. click on an imap account name
    Can you see eg: Inbox (not Inbox.msf) or any other folders you created which show as files with no extension - not *.msf?
    If yes, do they have a decent size?
    you can open these files using eg: Notepad to see if emails are listed.
    If you can see only one imap mail account, check to see if there are any emails as previously described.
    Then check to see if there is more than one Profile.
    Click on the 'Profiles' in address line...see image below.
    In my example I only have one xxxxxxxx.default account and it is open on that Profile.
    If there is more than one, select the other Profile and check again for the imap mail accounts as previously described.
    Please report back:
    Did you stop synchronising those imap mail accounts?
    Did you move a copy of all emails into Local Folders?
    Did you stop/remove the mail accounts on the server?
    Do you have one or more Profiles?
    Do you see the imap mail accounts in the Profile folder?
    Do you see any files containing the emails?
    Additional:
    After synchronising, downloading, stop synchronising.
    Did you create a backup of the Profile folder?

  • I lost my iphone some time ago. is there any way to recover my lost iphone? I really need help.thanks, I lost my iphone some time ago. is there any way to recover my lost iphone? I really need help.thanks

    i lost my iphone some time ago, is there any way to recover my lost iphone?i really need help..thanks before

    Don't know what you mean by "some time ago", but unless you activated Find My Phone and the phone is still on, the answer is no. (Even if you ask 3 times).

  • Need help. thank you

    How to using ovi store connect via wifi for my nokia n8?
    the ovi store kept connect automatically using mobile network? 
    need help thnak you

    ohh. Thanks for the suggestion. 
    I already set my wifi to priority 1, but it still won't work.
    it kept using my mobile network. i think there is no problem with my wifi connection

  • Just got certified so need to thank you all.

    Yes thank you all to helping me over the past year to get me to where I am. Just passed the SCJP exam and will dive right in to the SCJD as soon as I can. For those that are yet to take the exam, study hard.
    Regards Yucca

    hardly study? that is how I fail it first time.

  • I can not connect to the internet while using my ipad I get a message saying Safari could not open the page because the server stopped responding need help thank you

    I CAN NOT CONNECT TO THE INTERNET WHILE USING MY IPAD I KEEP GETTING A MESSAGE SAYING SAFARI COULD NOT OPEN THE PAGE BECAUSE THE SERVER STOPPED RESPONDING PLEASE HELP THANK YOU

    Try the following:
    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings
    3. Reset iPad; hold the Sleep and Home button down until you see the Apple Logo

  • My Iphone 4 goes off after tried to instul ios 7.0. I 'm onlu seeing the sing of iTune and USB plug right on the phon's  screen. I really need help because I all i got

    My Iphone 4 shuted down after tried to instul ios 7.0. I 'm only seeing the sing of iTune and USB plug right on the phon's screen
    I really need help because that's only phone i got.

    Just back from Genius Bar and two other people at my table had the same problem. Their 4Ss aren't charging either. One of them had a fried board according to the tech. At least my HW checked out OK. It just won't charge.
    The tech tried to tell me that it was because my connector was corroded, which I told him was kind of a weak argument since evidence points to that the update has something to do with it.
    They're seeing a lot of these and it looks like they already have a script.
    Luckily I had enough juice left to recycle it for like $180, so I picked up a 5S with a new 2 year.
    It looked to me like this is going to blow up pretty big. Like class action lawsuit big.
    If you have an iPhone 4 or 4S, and you haven't updated it to iOS 7, don't for now. See if a patch comes out that doesn't brick your phone. Or get an induction charger maybe? Don't just update and expect absolutely no problems because too many people are having problems right now.

  • Mail sending error need help, thanks a lot.

    Dear experts,
    I have such kind of trouble several days when I send email via Apple's mail program.
    Meantime my email recieving is fine. The email configuration just one, so I wonder why recieving is OK but sending of email could Not work.
    My OSX version is 10.9.1, and Email server is based on MS exchange 2010.
    Much appreciated if anybody could help me on this issue. Any clue and troubleshooting progress could be shared with me. Thanks in advance.

    Likely you have the sending confirguration wrong.
    Note: i dont use Mail for Ecchange - i run outlook.
    But in any event, exchange is a modified IMAP protocol, and i believe Mail uses activ sync.
    You have independent send and receive cpnfigurations it is perfectly possible to receive fine adn not be able to send.
    Go to mail --> preferneces --> accounts
    Open the exchange account.
    Ender "accpunt information" click on "outgoing SMTP server" (SMTP is the protocol for outgoing mail - where your problem is).
    Pull don the list and reveal "edit server list"
    Now, find your Echange outgoing server and make sure that every single paramater - address, port, security, login, pasword etc is as needed. Ask you admin if needed.
    Alternatively, delete your preferences file and start all over. You should nto lose exhcnage or IMAP mail nt he process.  Thatis in users/you/library/preferences.  To reveal the users/you/library folder requires that you go to "go" int he finder's menu bar at the top of the screen and press option. Magically, Library will appear.
    Grant

  • Need help on implementing all types of footers in one xmlp report

    Hi,
    I'm working on a XMLP report where i've requirement to print different footers as below.
    Footer1 -- First page only footer
    Footer2 -- Last page only footer
    Footer3 -- Regular footer which should be printed on all pages EXCEPT first and last
    Footer4 -- Different from all above and needs to be printed only when it is single page.
    Example#1 : If the output is of single page
    ---> Page starts
    Header
    body
    Footer4 (footer for single page output)
    Example: If the output is of multi page say 3 pages
    ---> Page 1 (first page)
    Header
    body
    Footer1 (first page only footer)
    ---> Page 2
    Header
    body
    Footer3 (regular footer for all pages EXCEPT first and last pages)
    ---> Page 3 (last page)
    Header
    body
    Footer2 (last page only footer)
    Is it possible to implement all these footers in one XMLP report? if yes, it would be a great help if someone shares the logic.
    Thanks,
    Venky

    Hi,
    my suggestion is to check the standard documentation of the interface IF_EX_ME_GUI_PO_CUST.
    After that you can check the method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP in the example implementation class CL_EXM_IM_ME_GUI_PO_CUST.
    Usefull links:
    [Re: Implementing badi ME_GUI_PO_CUST;
    [Re: ME21N - PO Enhancement using BADI;
    Kind Regards.
    Andrea

  • Need help with calc all command..

    Hi All,
    I have a situation where I need some of the members in accounts dim not be aggregated but some to be aggregated..
    so i used.............. calc all except mbr(mbmr_name)
    but still i see that the values for this member roll up
    can any one help me this
    thanks in advance

    With knowing all the details, I would suggest maybe creating an alternate hierarchy to provide you another look at aggregate data minus the accounts you are not wanting to aggregate. Just a thought, there are several ways to work this issue......but this is the first I would suggest looking into. If it gets more complicated, then I would explore creating calc script logic utilizing UDA's. Hope this helps.
    JC

Maybe you are looking for

  • Recovery Partition mandatory for File Vault and unencrypted TM Backup?

    I recently had to setup my Macbook Pro from scratch meaning erasing the whole disk and start from there. The update to Lion took already place a while ago and I had File Vault active. After making a last backup using TM I erased the disk and all part

  • With the new Firefox 10.0 cannot connect to my office https portal (with a self-signed certificate)

    The connexion is not possible from any computer (tested on different Windows Platform) . Firefox try to connect without apparent error. Same problem with firefox 10.0.1 . No problem with Firefox 9 (or previous version). But I've used the debugger Fid

  • HELP!  iTunes error and wipes out iPod

    My husband just bought an iPod nano and when he is trying to move songs from iTunes an error comes up and deletes the songs already on the iPod. The error comes up at various times too. At first we thought it was a song, but I have no idea now. The e

  • Problem with SM30

    Hi forum, in my report i am calling table maintanence using function module VIEW_MAINTENANCE_CALL for a Z table which is having 2 primary keys and rest Non key fields. Now while showing it on a screen i  want to hide first column which is one of mine

  • Question re data loss on hard drive

    A hard drive with lots of data on it somehow has gone into a mode where when I plug it in it says 'the disc you have inserted is unreadable by this computer: 'Initialise, Eject,' etc - strange thing is I didn't do anything to this disc, but to anothe