My first real life java project is going horribly wrong plz help

my family has a marina and i said i can make a program to help my dad keep track of the boats and rentals etc. but the problem im having trouble im relatively new i have only been doing java for 3 weeks and its hard. My dad gave me an outline for the project. this is what i have so far.
The File menu contains two items in addition to the Exit item from the JCreator template: Open and Save. The main tab will have other tabs added later.
Step 2: Design and implement the Boat class:
The Boat class describes a boat owned by the marina. Each boat has a name, a daily rental price and is moored in a slip at the marina. The marina need to keep track of each boat's status: 0 - available, 1 - reserved and 2 - rented. Slips are numbered from 1 to 6 right now, but the owners are thinking of adding more slips as their business grows. In designing this class, consider how the class will be used within the project. Try to think of all possible instance variables and methods your class might need.
Review Topics:
Creating classes: Instance variable, Get and Set Methods
Menus
Tabbed Panes
Step 3: Design and implement the Marina class
The marina class is used to hold all the Boat objects. Since there is no imaginable limit to the number of boats the marina might one day own, the Marina class should use an ArrayList object to hold all the Boat objects. Also implement the Open and Save menu items.
Review Topics:
The ArrayList class
Object Files ... writing, reading, the Serializable interface
Using the FileDialog class.
Step 4: Design and implement the Customer and CustomerList classes.
Each Customer is a Person who wants to rent a Boat. For identification purposes, each Customer is assigned a Customer number. This String value is a 6-digit number generated sequentially. That is, the first customer will be 000001, the second 000002, and so on. The Customer class must keep track of the Customer's Boat choices (past and present).
The CustomerList class is a dynamic list of Customer objects. Customers come and go, so this class must have functionality that allows for the addition of new customers, deletion of customers and the editing of customer information, including changing their Boat rental options. Create methods within the CustomerList class that will read data from and write data to a data file.
Add a new tab to the GUI allowing the user to enter a customer's first and last names, add these Customer objects to the CustomerList and save the Customer information on data files.
i would prefer if you keep the code as simple as possible cause im new and i wont understand if you get all fancy.
http://www.java-forums.org/new-java/8917-having-trouble-java-project.html you can find the attachment of the project files there.

raakesh wrote:
my family has a marina and i said i can make a program to help my dad keep track of the boats and rentals etc. but the problem im having trouble im relatively new i have only been doing java for 3 weeks and its hard.This is a real bad idea. The reason is that it's an enormous difference between a toy program and a professional product. You could get a version up and running in less than a week but it will be nowhere near what your dad envisioned. To meet even moderate expectations you'll have to put in at least 3-6 months fulltime. This is why bespoke software is so expensive. And even so there's a 90% chance the program will be dropped because your dad feels the manual system worked better. The only thing a project like this is likely to accomplish is to drive a wedge between you and your dad.
I know you're bullshitting to get schoolwork help but still I want to warn others for this kind of projects. They're doomed.

Similar Messages

  • My phone i disabled.when i connected it to the pc to restore and update it..my iphone after 5 mins goes restart? plz help me what  should i do

    my phone i disabled.when i connected it to the pc to restore and update it..my iphone after 5 mins goes restart? plz help me what  should i do

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Malvinfromny wrote:
    ... i tried to restore it but when i do the phone does half of the steps and then it turns into a blue screen and it doesnt work again what can i do?
    If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step... Be sure to make an appointment first...

  • Real life SD Project - Gurus requested to give brief feedback

    Hi,
    Please read the real life SD - FICO scenario given below and if you think you have the solution, kindly state your suggestion. Would be much appreciated.
    ===================================================
    Engineering Services Orders  (Inter-company) 
    Process Steps  (As-is)
    1.Purchase Order is received in Co. A – via EDI,  from Co. B
    2.Sales Order (services) is automatically generated in Co. A. It has item 10 as hours and item 20 as travel expenses in $ amount
    Sales accounting creates ‘settlement rule’ and ‘internal order’ number and advises the engineers who will provide the services
    3.Later on, engineers report actual hours for services rendered, by using CATS system This merely reports data in SAP system but does not make an FI posting
    They use the order number advised to them in step 2 to create an internal order
    4 Actual travel expenses are added by Payroll  -  as a direct posting to FI
    5. Periodic CATS batch job is carried out by relevant IT person, to settle costs to an ‘internal order’ (not to sales order). These costs are labor hours and travel expenses
    6. FICO personnel then do transaction K08G to settle internal order --> sales order
    7. (Manual Step) Sales Accounting then runs report KVBI to view and select data related to service orders The data is downloaded to an Excel worksheet and handed over to SD-Billing.
    8. (Manual step) The cost data in dollar figures is converted to hours by SD-Billing, dividing cost data with rate / hour given in the sales order condition record
    9. SD-Billing creates invoice. Since it is order-related invoice, it has open quantities coming in from the order. These are now manually over-written / replaced with the actual data from step 7 & 8. An invoice is thus, generated for each order individually.
    Process (To-be)
    To create an interim document (billing request?) to replace manual steps 7 and 8. This interim document needs to capture actual cost data form the system –  and also show the remaining / open quantities from the sales order
    QUESTION: what is the best route to go?
    •  Configure a Billing Request document (by modifying a standard Credit Memo   Request / Debit Memo Request)  or
    • Going via the route of resource-related billing?

    Refer to the document: J48 - Project with Intercompany Billing
    Link: http://help.sap.com/bp_blv1500/BL_India/index.htm
    This is a very good document for guidance.
    Regards,
    Rajesh Banka

  • Working on first Java project in Ecplise and need some help

    I am working on a Java project. I am working a programme to show sets of requirements to a software engineer. At the end the programme will show all consistent requirements with no conflicts between them.
    I am working on the first section. This invloves creating a class with a HashSet to insert the requirements in to the class. I am using this code at the moment
    import java.util.HashSet;
    import java.util.Set;
    public class requirements {
         public void HashSet() {
              Set<String> requirements = new HashSet<String>();
              //Declare some string items
              String item_1 = "r1";
              String item_2 = "r2";
              String item_3 = "r3";
              boolean result;
              //Add the items to the Set
              result = requirements.add(item_1);
              System.out.println(item_1 + ": " + result);
              result = requirements.add(item_2);
              System.out.println(item_2 + ": " + result);
              result = requirements.add(item_3);
              System.out.println(item_3 + ": " + result);
              //Now we try to add item_1 again
              result = requirements.add(item_1);
              System.out.println(item_1 + ": " + result);
              //Adding null
              result = requirements.add(null);
              System.out.println("null: " + result);
              //Adding null again
              result = requirements.add(null);
              System.out.println("null: " + result);
         public static void main(String[] args) {
              new requirements().HashSet();
    the class is called requirements and I get these errors
    Return type of the method is missing
    Syntax error on token class, delete this token
    Syntax error on token misplaced construct
    Syntax error insert Enum body to complete EnumheaderName
    Syntax Error insert Enum body to complete enum decleration
    The public type requirements must be defined in its own file.
    The next stage would be to send the Hashset to another class to perform operation on the set. The other class is called specification. Can anyone help me to resolve the errors and pass the set to the other class.
    Thanks

    muj wrote:
    I am working on a Java project. I am working a programme to show sets of requirements to a software engineer. At the end the programme will show all consistent requirements with no conflicts between them.
    I am working on the first section. This invloves creating a class with a HashSet to insert the requirements in to the class. I am using this code at the moment
    import java.util.HashSet;
    import java.util.Set;
    public class requirements {
         public void HashSet() {
              Set<String> requirements = new HashSet<String>();
              //Declare some string items
              String item_1 = "r1";
              String item_2 = "r2";
              String item_3 = "r3";
              boolean result;
              //Add the items to the Set
              result = requirements.add(item_1);
              System.out.println(item_1 + ": " + result);
              result = requirements.add(item_2);
              System.out.println(item_2 + ": " + result);
              result = requirements.add(item_3);
              System.out.println(item_3 + ": " + result);
              //Now we try to add item_1 again
              result = requirements.add(item_1);
              System.out.println(item_1 + ": " + result);
              //Adding null
              result = requirements.add(null);
              System.out.println("null: " + result);
              //Adding null again
              result = requirements.add(null);
              System.out.println("null: " + result);
         public static void main(String[] args) {
              new requirements().HashSet();
    the class is called requirements and I get these errors
    Return type of the method is missing
    Syntax error on token class, delete this token
    Syntax error on token misplaced construct
    Syntax error insert Enum body to complete EnumheaderName
    Syntax Error insert Enum body to complete enum decleration
    The public type requirements must be defined in its own file.
    The next stage would be to send the Hashset to another class to perform operation on the set. The other class is called specification. Can anyone help me to resolve the errors and pass the set to the other class.
    ThanksReading your code, it looks wrong... but it turns out that a lot of it was because you did not use CODE brackets like this:
    {+code}
    System.out.println("hello");
    {code+}
    becomes
       System.out.println("hello");It also seems that you code works as it is.
    though I recommend putting classes inside a package.
    Syntax error insert Enum body to complete EnumheaderNameWhere is this even in your code? Did you post the code you had a problem with?

  • Still Life project going horribly wrong.  Please help!

    First let me say that I am new to this board.  I've been reading here and searching to see if I could find my answer, but after doing this, reading booklets and searching the internet, I still can't wrap my mind around what I need to do and what I'm doing wrong.    Here goes:
    I composed a Still Life in Photoshop.  I took pictures from my digital camera, and uploaded them as jpeg's.  (The instructions said TIFF files, but I couldn't figure out how to do it, nor would it give me the option).  I  cut each item (10) and placed them each on their own layer.   The Still Life has to have a transparent background. Done...looks nice. 
    The next part is where I'm stuck.  I'm to select one image element from the Photoshop component and use it as the basis for creating vector line art in Illustrator.  I'm to embed the source image element using the Links panel.  Can someone tell me how to do this correctly?  I've tried every which way I could think of, but nothing!  I know I need to place files, but I don;t have the option when I open Illustrator, so I OPEN, which doesn't work.  Should the file be the original jpeg, or a native PSD?
    I'm on the Cloud in Windows 8.1. 
    Any help I can get on this will be/is appreciated. 
    Lala

    You need to ask in Illustrator or Photoshop General Discussion
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Bb9860 boots upto 75% and then goes white screen plz help.

    halo my BB9860 boots upto 75% and then goes white screen. i tried BBMCP by the time it detects my PIN the seek bar goes quarter unable to factory reset, BBSAK does recognize device at all. i am very helpless, please help me.

    Hi and Welcome to the Community!
    Please try this sequence...note that, throughout the entire 4h15m process, your BB must remain directly connected to a known-good wall charger (not PC USB, not a cradle):
    With the battery inside, connect your BB to the wall charger
    Leave it alone for 2 hours, no matter what the LED or the display does
    Remove the battery
    Wait 15 minutes
    Insert the battery
    Wait another 2 hours, no matter what the LED or the display does
    This has been known to "kick start" some BBs.
    It is also possible that your battery or BB has experienced a problem...to test, this sequence is needed:
    Obtain an known good and already fully charged additional battery...use it in your BB and see what happens
    Obtain access to a known good and identical BB...use your battery in it and see what happens
    The results of this will indicate if it's your BB or your battery that has the problem. Note carefully please that "new" and "know good" are not necessarily the same things. While rare, a "new" battery certainly could be defective. Rather, the simplest (and least costly, btw) method to conduct this test is to find someone with an identical BB who has no issues...trade batteries and see what happens.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • LCM migration in 11.1.1.3 goes horribly wrong

    Hi all
    We are running Planning/Budgeting 11.1.1.3.1
    We did a major migration from qa to production via LCM and ran into many issues.
    The main one I understand by reading threads out there that apparently LCM does not replace business rules when migrating.
    We also ran into the following issues
    2.     If the execution plantype for the business rules was different than the plantype for form it was attached to it didn’t keep the plantype intact for business rule.
    3.     If there was a existing task list in production it did not get updated with the QA task list post migration
    4.     The global variables were not working post migration so had to create them again
    5.     The sequences did not get migrated correctly. It had a link defaulting to a plan type in QA which was not updated during migration.
    6.     The existing webforms in the production were not overwitten during migration
    7.     Existing smart lists were not updated during migration
    8.     The exiting macros were not updated during migration
    Anyone else out there having these challenges?
    Is there a certain order that migrations need to happen in?
    or is LCM really that dysfunctional?
    any help would be greatly appreciated

    Most of the issues you mentioned seem related to Business Rules migration which has always been a pain in LCM. I always do a manual copy paste for the rules, so much tension free.
    LCM 11.1.1.3 did have quite a few issues but it sure was usable as I migrated specific components most of the time rather than complete application.
    For the points 6 & 7, I've had no issues with Forms and SmartLists using LCM. In fact I found it so much easier using LCM. I believe LCM 11.1.1.3 did have issues with composite forms but otherwise, I think it has been pretty okay.
    Did you try to migrate the components separately so that you will know the exact errors that you are getting?
    Cheers,
    Abhishek

  • First Java Project - Document Management and Workflow

    We are about to embark on our first java project around document management and workflow.
    I would be interested to know how others have approached similar projects – Open Source applications or other tools/APIs.
    It would also be good to know of any issues encountered along the way.
    Thanks,
    Steve

    Hi Husein,
    I appreciate your interest in procuring a Document Management/Workflow solution for your AP department...its a very smart move toward streamling that process!
    I sent an email today to Richard Braddock about our solutions. I would be happy to discuss them with you.
    My office phone number is 215-646-8000
    -Martin

  • Real Life Mac Mini Performance vs iMac

    Hi Guys, 
    I'm about to purchase my first Mac Mini, and I have question about Mac Mini's performance.  How is base Mac Mini compare against iMac 21.5 (i5 2400s) Base? I understand that iMac uses i5 2400s, desktop CPU, and benchmark number is obivously whole miles ahead of Mac Mini base.
    My primary use for Mac would be day to day computing with some Adobe web creative tools like Photoshop, In Design, Dreamweaver for checking web/graphic desinger's work.  I plan to study iPhone app development for fun, so some Xcode .
    I already have good 24 inch monitor,bluetooth keyboard and magic mouse from my last macbook pro setup.  Price difference between iMac and Mac Mini is about $500.
    In real life usage, with Memory upgraded 8gig, how much of difference would I notice?  Will iMac Base have significantly better performance ($500 difference)?
    Another quesiton is if I add SDD, will it void the warranty?  I understand that swapping HDD is okay, but I read somewhere saying that adding another HDD would actually void warranty....
    Thank you!

    I am an electrical engineer and do a lot of embedded firmware design
    and supporting software, mostly in Win8.1 virtual machine with Parallels.
    I also do a lot with Photoshop CS6 and some video work.
    When confronted with an upgrade decision, I ended up going with the 27" iMac
    and was glad I did.  Expanded it to the full 32GB and am using an SSD via Thunderbolt,
    I already had a Thunderbolt display, so I ended up with a very good workstation setup.
    With that 32GB of RAM, I am able to have OS X, a Win8.1 coding/debug virtual machine,
    and a Win7 software test platform all running at the same time and no noticable
    performance hit.
    Also, if developing large firmware/software, SSDs will speed the work up dramatically
    as these types of projects are quite file intensive.  The last project I was working on,
    I could build, download and start debugging an embedded app using Win8.1 on a VM
    before my coworkers were half way through building the app on their native Win laptops/desktops
    which had standard had drives.
    With that said, I still have 2 Minis in service.  My 2011 Mini Server (my former workstation) was
    repurposed to be my HTPC and my 2010 Mini has been re-assigned as my home iTunes/file server.

  • Can you give some real-life use of tables in BW?

    Hi,
    In reading links and notes from here, I took a leap to try and understand how tables are used in the BW environment, by following:
    se16
    RSZ* then  F4
    then I Double click on:
    i.
    RSZRANGE        Selection specification for an element
    If execute, I get a table with a several fields with values.
    What is this table suppose to tell me and can you give me a real-life scenario where you made use of such a research to solve a problem?
    ii.
    RSZOPRATOR       Formula Operators
    similarly, here I found fields with operators and mostly numbers.
    What is this table suppose to tell me and can you give me a real-life scenario where you made use of such a research to solve a problem?
    iii. Later I tried RSU* then
    RSUPDDAT        Update rules key figures
    Nothing recognizable here about the update rules.
    What is this table suppose to tell me and can you give me a real-life scenario where you made use of such a research to solve a problem?
    iv.
    Also, sometimes here conversations like, research on which tables have the fields you need and let’s generate reports against them. I though tin BW, reports are always generated against data targets (ODS, Cubes, etc). I didn’t know of tables.
    Can you give a real-life scenario where you had to combine fields in 2 or 3 tables and use them in project?
    Thanks

    Amanda,
    There are many scenarios where you can use the tables behind the screen. But most of the times the scenarios are sophisticated requirement. Suppose your installation has many data targets and all are getting loaded nightly, weekly or even monthly intervals. Usually in most places the person on call will go and look at all the targets in the morning whether all the loads are successful (they would have beeped if something faild during loading at nights). Instead of going thru this manual process you can write an ABAP program which will look at the infocubes and ODS and see how many records were added, transferred, updated success or failure all kinds of information.
    RSA1 is just a front end and all the information you see are all coming from tables which are stored here. go to SE80 or SE11 and search for the tables behind the screens. Every bit of detail that you see is coming from tables or available in tables. There are many tables and they are all relational. So you can pretty much do anything you like in accessing them. Please just read (SELECT) from them. Don't try to delete, insert anything unless you know what you are doing absolutely.
    Hope this helps.
    Good luck with your learning.
    Alex.

  • Help Java project.

    know its horrible... I feel horrible about it; i'm still working on it but this Java project is killing me... Just so you know i dont have to know programing after this class, i just had a choice between 3 computer classes and picked the one i guess i'm worst at... I've done four major projects before this one. I average getting about 75% correct. We code in BlueJ...The reason i'm finally breaking down for help is it was due on November 21st. o well enough of my babble if ur going to help ur going to help; if not ur not.
    Heres the assignment
    Open the project cards containing your code for class PlayingCard and create the two new
    classes in this project space:
    Part 4: Implement class CardDeck that has the following declaration:
    public class CardDeck {
    private PlayingCard[] deck;
    public static final int DECK_SIZE = 52;
    //number of cards still in the deck:
    private int numCardsLeft;
    public CardDeck(){ ? }
    private void removeCard(int index){ ? }
    public void shuffle(){ ? }
    public void wholeDeck(){ ? }
    public PlayingCard topCard(){ ? }
    public PlayingCard anyCard() { ? }
    In your implementation, you must follow these guidelines:
    1. Constructor of the class must properly initialize the CardDeck object: create the array object with number of "compartments" equal to DECK_SIZE and assign it to the field deck ; then create all 52 cards in such a way that there are no duplicate cards in the deck. You must use Java loop(s) to create the above PlayingCard objects. In addition, the constructor must assign the value DECK_SIZE to the field numCardsLeft.
    2. Method removeCard(int index) must first check that the index is between 0 and the value of numCardsLeft-1. If it is true, then the method must
    ? shift all the cards in the deck array starting with index+1 and up to
    numCardsLeft-1 position left by one "compartment"
    ? set the last value in the deck to null, like so:
    deck[numCardsLeft-1] = null;
    ? decrement value of numCardsLeft by 1
    3. Method shuffle()randomly re-arranges cards in the deck:
    a) Declare a local variable temp of the type PlayingCard
    B) Generate two random numbers i and j between 0 (inclusive) and DECK_SIZE
    (exclusive) and swap the two cards stored at these index positions in the array:
    temp = deck;
    deck[i] = deck[j];
    deck[j] = temp;
    Repeat step B) at least 50 times, to get a good shuffle!
    4. Method wholeDeck() must display descriptions of all the cards in the deck on screen. In order to do this, use an enhanced for loop to iterate through the deck array, and for each PlayingCard element of it call method describeCard() of class PlayingCard.
    5. Method topCard()calls removeCard with 0 passed as the parameter value, and
    returns a copy of PlayingCard object that was removed (that is, the card that used to be at index 0 in the array, before we removed it).
    6. Method anyCard() removes a PlayingCard object stored at a random index in the
    array: using an object of class java.util.Random, generate a random number between 0 and numCardsLeft-1, and pass this value as the parameter to the method
    removeCard. Method anyCard must return a copy of the of PlayingCard object that
    was removed.
    Part 5: Implement class CardDeckTest that contains only the method
    public static void main (String[] args) which does the following:
    ? create an object of type CardDeck
    ? call the method wholeDeck()
    ? call the method shuffle()
    ? call the method wholeDeck() again
    ? call the method topCard(), store its result in a variable, and then use this variable to call method displayCard()of class PlayingCard
    ? call the method anyCard(), store its result in a variable, and then use this variable to call method displayCard()of class PlayingCard
    demo programs:
    use proper indentations

    can someone simplify the following code so that it works with my instructions? I had a friend (took this class before) help with the coding but he didnt have to use class deck.
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.lang.Character.Subset;
    public class Blackjack extends Applet implements ActionListener {
    String suit[] = {"H","C","D","S"};
    String cardvalue[] = {"A","2","3","4","5","6","7","8","9","10","J","Q","K" };
    int deck[] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,0};
    Font suitfont = new Font("SansSerif",Font.BOLD,24);
    Font cardfont = new Font("Arial",Font.BOLD,24);     
    Font bigfont = new Font("Arial",Font.BOLD,36);     
    private Button hit = new Button(" Hit Me ");
    private Button stand = new Button(" Stand ");
    private Button deal = new Button(" Deal ");
    int clearscreen = 1;
    int card = 0;
    int housewins = 0;
    int playerwins = 0;
    int housepoints = 0;
    int playerpoints = 0;
    int housecards = 2;
    int playercards = 2;
    int turn = 0;
         public void init() {          
              add(hit);
         hit.addActionListener(this);
         add(stand);
         stand.addActionListener(this);     
         add(deal);
         deal.addActionListener(this);
         shuffle();
         card = 0;
         public void shuffle() {
         for(int i=0;i<1000;++i)
              int a = (int)(Math.random()*52.0);
              int b = (int)(Math.random()*52.0);
              int temp = deck[a];
              deck[a] = deck;
              deck[b] = temp;
         public void paint(Graphics g) {
    Image temp1 = getImage(getDocumentBase(),"s1.gif");
    Image temp2 = getImage(getDocumentBase(),"s2.gif");
    Image temp3 = getImage(getDocumentBase(),"s3.gif");
    Image temp4 = getImage(getDocumentBase(),"s4.gif");
    Image[] thesuit = {temp1, temp2, temp3, temp4};
              /* if(clearscreen==1) {
              g.fillRect(0,0,500,350);
              clearscreen = 0;
              setBackground(Color.green);
              g.setFont(bigfont);
              g.setColor(Color.blue);
              g.drawString("House", 50, 80 );
              g.drawString("Player", 50, 200 );
              g.drawString("Wins",370, 80);          
              g.drawString(Integer.toString(housewins),400,170);
              g.drawString(Integer.toString(playerwins),400,290);
              g.setFont(suitfont);
              if(((deck[card + 1] / 13) == 3) || ((deck[card + 1] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + 1] % 13] , 100 , 120 );
              g.drawImage(thesuit[deck[card + 1] / 13] ,130, 100 ,this);
              if(((deck[card + 2] / 13) == 3) || ((deck[card + 2] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + 2] % 13] , 20 , 240 );
              g.drawImage(thesuit[deck[card + 2] / 13] ,50, 220 ,this);
              if(((deck[card + 3] / 13) == 3) || ((deck[card + 3] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + 3] % 13] , 100 , 240 );
              g.drawImage(thesuit[deck[card + 3] / 13] ,130, 220 ,this);          
    if (playercards>2) {
    if(((deck[card + 4] / 13) == 3) || ((deck[card + 4] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + 4] % 13] , 180 , 240 );
              g.drawImage(thesuit[deck[card + 4] / 13] ,210, 220 ,this);               
    if (playercards>3) {
    if(((deck[card + 5] / 13) == 3) || ((deck[card + 5] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + 5] % 13] , 260 , 240 );
              g.drawImage(thesuit[deck[card + 5] / 13] ,290, 220 ,this);               
    if (playercards>4) {
    if(((deck[card + 6] / 13) == 3) || ((deck[card + 6] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + 6] % 13] , 340 , 240 );
              g.drawImage(thesuit[deck[card + 6] / 13] ,370, 220 ,this);               
    if (housecards>2) {
    if(((deck[card +  playercards + 2] / 13) == 3) || ((deck[card + playercards + 2] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + playercards + 2] % 13] , 180 , 120 );
              g.drawImage(thesuit[deck[card + playercards + 2] / 13] ,210, 100 ,this);               
    if (housecards>3) {
    if(((deck[card + playercards + 3] / 13) == 3) || ((deck[card + playercards + 3] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + playercards + 3] % 13] , 260 , 120 );
              g.drawImage(thesuit[deck[card + playercards + 3] / 13] ,290, 100 ,this);               
    if (housecards>4) {
    if(((deck[card + playercards + 4] / 13) == 3) || ((deck[card + playercards + 4] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card + playercards + 4] % 13] , 340 , 120 );
              g.drawImage(thesuit[deck[card + playercards + 4] / 13] ,370, 100 ,this);               
              g.setColor(Color.red);
              g.drawString("Your Points: " , 20, 290 );
              g.drawString("House Points: " , 20, 160 );     
              playerpoints = 0;
              int wasace = 0;
              for(int i=2;i<(playercards+2);++i)
                   int cardvalue = 1 + deck[card +  i] % 13;
                   if(cardvalue < 11)
                        playerpoints = playerpoints + cardvalue;
                   if(cardvalue > 10)
                        playerpoints = playerpoints + 10;
                   if((cardvalue == 1) && (playerpoints < 12))
                   {  wasace=1;
                        playerpoints = playerpoints + 10;
              if((wasace==1)&&(playerpoints>21))
                   playerpoints = playerpoints - 10;
              if(playerpoints>21) {
              turn=1;
              g.drawString("Bust" , 320, 290 );
              if((playerpoints==21)&&(playercards==2)) {
              turn=1;
              g.drawString("BlackJack" , 240, 290 );
              if(turn==0)
              g.drawString("? ?" , 20 , 120 );
              else
              if(((deck[card] / 13) == 3) || ((deck[card] / 13) == 2))
                   g.setColor(Color.red);
              else
                   g.setColor(Color.black);     
              g.drawString(cardvalue[deck[card ] % 13] , 20 , 120 );
              g.drawImage(thesuit[deck[card ] / 13] , 50, 100 ,this);
              housepoints = 0;
              wasace=0;
              for(int i=0;i<2;++i)
                   int cardvalue = 1 + deck[card +  i] % 13;
                   if(cardvalue < 11)
                        housepoints = housepoints + cardvalue;
                   if(cardvalue > 10)
                        housepoints = housepoints + 10;
                   if((cardvalue == 1) && (playerpoints < 12))
                   { wasace=1;
                        housepoints = housepoints + 10;}
              for(int i=2;i<housecards;++i)
                   int cardvalue = 1 + deck[card +  i + playercards] % 13;
                   if(cardvalue < 11)
                        housepoints = housepoints + cardvalue;
                   if(cardvalue > 10)
                        housepoints = housepoints + 10;
                   if((cardvalue == 1) && (housepoints < 12)) {
                        wasace=1;
                        housepoints = housepoints + 10;}
              if((wasace==1)&&(housepoints>21))
                   housepoints = housepoints - 10;
              if((housepoints<16) && (turn==1) &&(playerpoints<22)&& (!((playerpoints==21)&&(playercards==2))))
                   ++housecards;
                   repaint();
              g.drawString(Integer.toString(playerpoints) , 190,290 );     
              if(turn==1)
                   g.drawString(Integer.toString(housepoints) , 190,160 );     
              if(housepoints>21)           
              g.drawString("Bust" , 320, 160 );
    public void actionPerformed(ActionEvent e)
              if(e.getSource() == hit) {
                   if((turn==0)&&(playercards<5))
                   ++playercards;
                   repaint();
              if(e.getSource() == stand) {
                   if(playerpoints>13)
                   turn = 1;
                   repaint();
              if(e.getSource() == deal) {
                        card = card + playercards + housecards;
                        if(card>40)
                             shuffle();
                             card=0;
                   if(((playercards==2)&&(playerpoints==21))||(playerpoints>housepoints)||((playerpoints<22)&&(playercards==5)))
                        ++playerwins;
                   else
                        ++housewins;
                   playercards = 2;
                   housecards = 2;
                   turn = 0;
                   repaint();

  • How are Game Center "Friend Recommendations" people I know in real life? (Meetup/Facebook data?)

    This seems like a major privacy concern, but mainly I'm just very curious how this can possibly happen:
    The Game Center app suggests primarily people I have met in real life... but have had NO online interaction with!
    I life in a high-population US city, yet at least 2/3 of my Friend Recommendations (maybe more if they had photos or knew these peoples' last names) are people I have actually MET in person and know vaguely... but who I do now know well and who are NOT friends/contacts in any online service.
    I have never emailed them (with two exceptions); we don't even know each others' email addresses, and even if we did, my Apple ID email is not one I use for actual emailing purposes. Nor do we know each others' phone numbers, nor gaming nicknames; often not even last names. I didn't even know that they owned iOS devices or played games at all!
    We have certainly never played games with one another before; in fact, I have never used Game Center's friend feature and I don't have any GC friends. I only play random matches, and almost always on non-GC game services, for that matter.
    None of them has ever made a friend request to me. I've only ever gotten one GC request, long ago, and I denied it; it was not someone I knew.
    Some of them list "zero games in common" so it's not even that (and anyway, millions of people have games in common with me).
    Only one of them is in my Contacts (iOS/Mac address book), and knowing how serious they are about privacy, I doubt the email address I have is their AppleID. I know your address book can (for now) be accessed without permission, but these people just aren't listed.
    But I DO run into these recommendations in person every so often!
    These cannot be randomly selected by geography because a) they're not super close to me in miles, and b) there are millions of iOS users near me. No way that most of the suggestions would be people I've met, if this were chance alone. SOME source of data is being used by GC, and I'm baffled as to what it could be.
    The closest three theories I can come up with are all pretty implausible:
    1. Indirect Facebook connection. These people are NOT my Facebook friends (with a couple exceptions; I never actually use Facebook but I do have an account, and if someone requests, I generally accept). I double-checked that. But they MAY be "friends of friends" possibly. But how would Apple obtain my FB friend list? And if they did have it, wouldn't they just suggest my actual FB friends, not friends-of-friends? My Facebook login email address is an alumni address that I have never used for any other purpuse; it is not my Apple ID. And I have diligently set nearly every option to "hidden" on Facebook: even friends see a mostly blank profile!
    2. Meetup.com. This is a 100% correlation! I'm in several local groups that use Meetup.com to schedule meetings, and ALL of these Game Center recommendations are memebers of Meetup groups that I too am a member of. That's how I've met most of them. But Meetup has no "friends" feature, and most of these people have had no online connection with me (Meetup messages etc.) through Meetup. We've just attended the same events--which do have online RSVP lists--or else we are merely listed as members of the same group(s). (But we're talking large groups, so I haven't actually met most of the members, and I have met most of these GC recommendations.) But how would Apple obtain my Meetup info? Again my Meetup account's email address is not my Apple ID, and I have never used that email address with any Apple service (although it is on my Contacts card).
    3. Maybe Apple harvested my address book/contacts list (which does NOT contain these people), and also harvested the contacts lists of these people, AND also harvested the contacts lists of people we know in common who happen to have both of us listed. Then they put it all together. (That's a stretch: the people I know the best on Meetup--whose info I do have in Contacts--are Android users!) But again, why not recommend my actual contacts, instead of contacts-of-contacts? My actual contacts--which contain numerous iOS users and games--are notably absent from the recommendations (with one exception).
    Obivously Apple cannot, and does not, literally know who I have met. (No foil hat for me!) But they DO seem to have some data source that correlates closely with people I have met (and Meetup activity especially). I'm dying to know how that's possible.
    This is a privacy concern, for at least three reasons I can think of:
    1. GC lists these people's real names AND GC nicknames together--BEFORE I have accepted them as friends! And vice versa, I'm sure my nickname is being shown with my real name to total strangers. That means strangers, employers, stalkers, whoever, can now tie a person to their nickname (often the same one they use all over the Interner, not just GC). But we're not talking random suggestions: this is being show to people I DO know. Maybe I don't want them Googling my online nicknames! Maybe I complain about my work with that nickname Maybe I want my online friends and real-life acquaintainces kept separate. I definitely want EVERYTHING kept separate from these people I barely know but run into from time to time! One of these people is, in fact, on the sex offenders registry, and has stalked a friend of mine both online and offline. Maybe he'll learn my GC nickname--the same way it has shown me his--and can now Google that!
    2. If I have a lot of "games in common" listed, then they can peg me as a "gamer," which is sometimes a negative. Maybe I want my boss (or whoever) to think I'm more serious, even if he games too, and now he knows I have 30 games and wonders why I'm not staying late to work Maybe I just don't want to be roped into being "friends" online with my boss, or having to let him win games! Again, although this is a small issue at first glance, it's less small when things are being shared with people you really DO know in real life. What if my hypothetical stalker sees I have games in common? Sure, I can deny their friend request and cancel their 500 game attempts, but I'd rather be 100% hidden from them in the first place. I have no prior online contact, I want it to stay that way, and I've never given Apple permission, that I know of, to share my real name with people I never friended. (And even if I did, it should be with random strangers--not actual acquaintances.)
    3. The big mystery--how is Apple getting data that correlates with who I've met in the first place? I'm guessing that some people see the same pattern I do, and some don't; which might lead to an answer, but so far I'm stumped. (If this does tie to Meetup some bizarre way, that would be unnerving because Meetup ties me to real places and specific times.)
    Theories are welcome! And a basic question: what data sources DOES Game Center have available to use in making friend suggestions? I would have guessed maybe Location Services (nearby people) and people who have played a game with me (or made a friend request) in the past. But those sources are not what I'm seeing.
    (Even weirder is that nobody else seems to have posted about this happening; it may not happen to everyone, but surely some people have had this same question? I feel like I'm in a Kafka novel...)

    That's a good thought that could explain some cases, but not mine: these people definitely don't know my email address, and I'm not in their Address Book. (Some of these are people I might meet on a hike, say, and nod to in passing on other hikes once a or twice a year, and that's the extent of the "relationship"--no contact info ever exchanged. We don't even know what cities each other are from.)
    we don't even know each others' email addresses, and even if we did, my Apple ID email is not one I use for actual emailing purposes. Nor do we know each others' phone numbers, nor gaming nicknames; often not even last names.
    I should correct my first post: I said I "do now know well"... that should be "do NOT know well".

  • How to run a Java project in NWDS...

    Hi All,
    First of all , i dont know if i am writing in the right forum for this question.
    I am new in NWDS.
    My question is, how can i run my java project in NWDS without  having any portal available (we had some problems running projects in EP 2004 and so we will install a new version EP 2004s )?
    Thank you!
    Regard,
    Ari

    Hi Lohi,
    Thank you for your help.
    Yes i am creating Ear file by using the Java programs with NWDS .
    You mean to deploy mannualy with SDM inside my server?
    How can i than, utilize that into IE?
    Can i run ear without using EP.
    Sometimes i want to run my project in my house where i dont have acess in any SDM or everything else.
    Can you give me please more step by step instruction because i am new with these technologies.
    Thank you ,
    Ari

  • Real life technical and business issues--FICO--implementation

    Hello,
    Can someone please give some real-life Technical and Business issues and problems faced by FICO consultant in different-different phases of implementation (asap)? please provide from basic to critical examples? 
    Thanks,
    Amit
    Moderator: Please, respect the rules of the forum

    What you are asking is very project specific.
    Try to do the following:
    1. Ask for the detailed business requirements
    2.  Ask for the design documents. Usually, there will be bunch of documents that got documented when the project team made the design. There must be documents like conceptual / high level design, detailed / low level design, ABAP specifications, report specifications, etc.
    3. The design documents will contian other things, DATA FLOW DIAGRAM. Here in this diagram, you will see where the data comes and how it gets processed and transformed when the data reaches BW.
    4. Ask for your access to the develoment system or the sandbox ( where you can play around without affecting anybody's work).
    5. With the data fliow, you keep reviewing the objects in BW and also in the source system.
    6. Even if you dont get access to dev or sandbox, you cans till view the objects in display mode.
    7. Open the query designer and see how the variables are defined and how formulas are defined and how the restricted key figures are defined.
    8. In production system, go to SM37 and see the jobs that are scheduled.
    9. Try and co ordinate weekly calls with your team members and this is the place where ideas  and problems will be shared.
    If you have specific questions ot need some specific help, dont hesitate to send me a note. My email is [email protected]
    Best luck,
    Ravi Thothadri

  • From a CRM training course to do SAP BI life time projects

    Hi, My name is Connie. I am currently doing Master's degree in Business Information Systems. I am working as a Software Tester.  I did SAP CRM training as well but have no work experience on CRM. I recently got an opportunity to be exposed to real life projects on SAP but unfortunately it is not CRM that I did training for. I am required to do SAP BI. The question that I need advise on is that, is this a right switch? Can I take this opportunity and later divert to CRM? or must I wait for CRM projects that I don't know when will they come? Is BI a good module to go for, for a person of my background?
    Your advice's will be highly appreciated. Thank you
    Connie

    Hi Connie,
    You can answer your own question (to a great extent) by checking how desperate you are about getting a break in the SAP world.
    - If you comfortable(monetarily and mentally) and patient then you can continue to look of a CRM-related job. The future here is bright.
    - If you something real quick and you have sufficient  training provided in SAP BI/BW and you think you can handle it, then you can go ahead with BI. There's really good scope in BI. Since IT industry is all about expanding your horizon in the software world, you will eventually gather skills in SAP BO, HANA, Big Data etc. That is a good career progression in SAP.
    Both have good career prospects. I suggest you read about SAP BI (if you have not already done) and see if that interests you.
    pk

Maybe you are looking for

  • Why do my audio files constantly corrupt and slip out of sync?

    Whether using .caf or .aif (no MP3 audio), I get this strange issue were audio is randomly slipping out of sync.  If I use the slip tool to scrub the audio track, I can usually hear an audible digital hit in the file.  For example, I placed an explos

  • Safari 4 will not import bookmarks saved with Safari 3.2.3!

    Safari 4.0 (Build 530.17) for Windows DOES NOT correctly import bookmarks saved with Safari 3.2.3 for Windows!! There are no links!! But it does import the folders. For example if I open the bookmarks in Safari, it looks like an HTML file. It says th

  • Reorganization of Tables in Database

    Did anyone reorganized the tables in database to reclaim the fragmented space within the Tablespace. If so please suggest how to identify which are all the tables have more fragmentation in order to reorganize it within the tablespace. Regards, Subra

  • SM 7.0 EHP1 SR1 - solman_setup initial configuration - No execute authority

    I am performing the initial configuration step of SOLMAN_SETUP, when I receive the error below. Error: E 002 No execute authority Step: Get ABAP System Info This occurs when I click the "Start J2EE Configuration" button on the J2ee Configuration scre

  • Simple Question- WS & Custom object types

    Hi all, I'm sure I found some posts on this topic before but cannot seem to find them at the minute. I know in Web Services it is possoble to pass user defined objects, as long as they implement Serializable. But is it that simple? do you not have to