Creating "Class" CRC Cards

Hi everyone,
To study how a mortgage operates we are creating a program in Java that will imitate a bank loan. We need to create CRC cards for the first part of our project which is basically a table in word that lists the class/ methods/ Collaboration.
For example, we have a class called LoanAccount, it does NOT collaborate with any other classes, and we have attributes and methods such as:
*//Attributes*
String accNumber;  // Account Number Identifier
String custName;
*//Methods*
Constructor that creates a new object whose data has values specified by these four arguments. activeStatus is set to true.
Public LoanAccount(String accountNumber, String customerName, String address, String phoneNumber, double balance, double interestRate, double prinAmount){}
and we can say something like "Assume all getters and setters" since these are just CRC cards and not the actual program.
Now we've got some information for our LoanAccount class and LoanController class (though they may not be complete)
but we need methods, attributes for:
*Program1App = Application Class - The Systems manager[should do no work or logic]*
LoadUI = provides the view to the user, sends messages to the controller
LoadStoreAccts = responsible for getting and putting account objects from/to disk
We have been working at this (a few of us classmates) with no luck as where to go from here. Any ideas what attributes and methods go in these classes?
We were thinking the LoadUI would continue all the JOptionPane.showMessageDialog statements and LoadStoreAccts would have something to do with I/O statements but we can't seem to find the right code for it.
Any help is much appreciated!

Yes, that is also true, but the people that answer your questions after you are no longer looking are totally wasting their time. So may that can and do help others, will absolutely not post an answer for anyone who has cross-posted. I, myself, have spent quite a bit of time doing custom programming to illustrate an answer to a question posted by what seems to be a serious person, only to see they never come back, so that time and effort was a total waste.
The people here and other places do this voluntarily, usually as a way of giving back a little to the up coming generation of programmers and wannabes, but wasted volunteer time and effort is still just a waste that could have been spent on something that would have been of benefit to the volunteer or others.

Similar Messages

  • I need to create a bingo card...

    Hi I am totally clueless and started my class well behind everybody else. I am not asking for solution to my assignment is the assignment is to create the whole game, all I am asking is how to start. I am supposed to start by creating a Bingo Card. We were given some codes already, like Arraybag, BagADT etc. using General <T>. Could somone please help me get started?
    I am trying to create a bingocard class. I am supposed to use the Arraybag.
    // ArrayBag.java Author: Lewis/Chase
    // Represents an array implementation of a bag.
    import java.util.*;
    public class ArrayBag<T> implements BagADT<T>
    private static Random rand = new Random();
    private final int DEFAULT_CAPACITY = 100;
    private final int NOT_FOUND = -1;
    private int count; // the current number of elements in the bag
    private T[] contents;
    // Creates an empty bag using the default capacity.
    public ArrayBag()
    count = 0;
    contents = (T[])(new Object[DEFAULT_CAPACITY]);
    // Creates an empty bag using the specified capacity.
    public ArrayBag (int initialCapacity)
    count = 0;
    contents = (T[])(new Object[initialCapacity]);
    // Adds the specified element to the bag.
    // Expands the capacity of the bag array if necessary.
    public void add (T element)
    if (size() == contents.length)
    expandCapacity();
    contents[count] = element;
    count++;
    // Adds the contents of the parameter to this bag.
    public void addAll (BagADT<T> bag)
    Iterator<T> scan = bag.iterator();
    while (scan.hasNext())
    add (scan.next());
    // Removes a random element from the set and returns it. Throws
    // an EmptySetException if the set is empty.
    public T removeRandom() throws EmptyBagException
    if (isEmpty())
    throw new EmptyBagException();
    int choice = rand.nextInt(count);
    T result = contents[choice];
    contents[choice] = contents[count-1]; // fill the gap
    contents[count-1] = null;
    count--;
    return result;
    // Removes one occurrence of the specified element from the bag
    // and returns it.Throws an EmptyBagException if the bag is empty
    // and a NoSuchElementException if the target is not in the bag.
    public T remove (T target) throws EmptyBagException,
    NoSuchElementException
    int search = NOT_FOUND;
    if (isEmpty())
    throw new EmptyBagException();
    for (int index=0; index < count && search == NOT_FOUND; index++)
    if (contents[index].equals(target))
    search = index;
    if (search == NOT_FOUND)
    throw new NoSuchElementException();
    T result = contents[search];
    contents[search] = contents[count-1];
    contents[count-1] = null;
    count--;
    return result;
    // Returns a new bag that is the union of this bag and the
    // parameter.
    public BagADT<T> union (BagADT<T> bag)
    ArrayBag<T> both = new ArrayBag<T>();
    for (int index = 0; index < count; index++)
    both.add (contents[index]);
    Iterator<T> scan = bag.iterator();
    while (scan.hasNext())
    both.add (scan.next());
    return both;
    // Returns true if this bag contains the specified target
    // element.
    public boolean contains (T target)
    int search = NOT_FOUND;
    for (int index=0; index < count && search == NOT_FOUND; index++)
    if (contents[index].equals(target))
    search = index;
    return (search != NOT_FOUND);
    // Returns true if this bag contains exactly the same elements
    // as the parameter.
    public boolean equals (BagADT<T> bag)
    boolean result = false;
    ArrayBag<T> temp1 = new ArrayBag<T>();
    ArrayBag<T> temp2 = new ArrayBag<T>();
    T obj;
    if (size() == bag.size())
    temp1.addAll(this);
    temp2.addAll(bag);
    Iterator<T> scan = bag.iterator();
    while (scan.hasNext())
    obj = scan.next();
    if (temp1.contains(obj))
    temp1.remove(obj);
    temp2.remove(obj);
    result = (temp1.isEmpty() && temp2.isEmpty());
    return result;
    // Returns true if this bag is empty and false otherwise.
    public boolean isEmpty()
    return (count == 0);
    // Returns the number of elements currently in this bag.
    public int size()
    return count;
    // Returns an iterator for the elements currently in this bag.
    public Iterator<T> iterator()
    return new ArrayIterator<T> (contents, count);
    // Returns a string representation of this bag.
    public String toString()
    String result = "";
    for (int index=0; index < count; index++)
    result = result + contents[index].toString() + "\n";
    return result;
    // Creates a new array to store the contents of the bag with
    // twice the capacity of the old one.
    private void expandCapacity()
    T[] larger = (T[])(new Object[contents.length*2]);
    for (int index=0; index < contents.length; index++)
    larger[index] = contents[index];
    contents = larger;
    ======================================================
    I started my class like this:
    * BingoCard.java
    * Created on January 28, 2006, 9:08 PM
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    public class BingoCard {
    /** Creates a new instance of BingoCard */
    public BingoCard() {
    public static void main (String[] args)
    ArrayBag<BingoCard> bingoBag = new ArrayBag<BingoCard>();
    BingoCard Card;
    What can I do or am I doing wrong? Please help me learn.

    Hey thanks for all the help. I got figured out so thanks again. :D

  • Can somebody help me ? can't create a greeting card (photoshop element 10 on Imac)

    Hi,
    when i want to create a greeting card, i get the folloing messages :
    1 - impossible to open a work file because the disk is not available
    2 - impossible to intinalaze Photoshop element because the disk is not available
    (The messages are translated from french)
    Thanks for your help
    Philippe

    I should have pointed out, the node I am working on in the second piece of code is passed from the first class.

  • My canon t3i dslr camera automatically stops recording after about 10 sec. using a class 10 card.

    Hello,
    My canon t3i dslr camera stops recording automatically after about 10 sec. the manual said to use an SD card of class 6 or higher. I am using a class 10 and I have been able to record long videos in the past and all of a sudden the camera stops recording automatically after about 10 sec. Does anyone know why?  thanks

    Hi Rockinruby.
    We get this a lot here.  It turns out that even though the card is labeled as a Class 10 card, the most common problem when this occurs... is that it's still a defective card.
    Sandisk is a good company and they generally make solid products.  But there are two risks... (1) even Sandisk will occasionally have a bad card or a card that fails prematurely, and (2) it's exceptionally easy to create a forgery (if you peel the labels off these cards, they all look identical.)  
    When I buy cards (and I also buy Sandisk and/or Lexar cards), I'm careful to buy cards which well-exceed the specs necessary ... but I'm also careful to buy the cards only from reputable dealers.
    If you do a search, you'll find LOTS of articles about fake cards with tips on how to avoid them or how to spot them.
    But the bottom line ... at the end of the day you just want your problem solved.  If the card is bad, then there's nothing that you  would be able to do to the camera to make the problem away.  You would really need to replace that card.
    The issue that you are having is somewhat common... there are lots of threads on this.  But the majority of these are actually solved simply by replacing the card with a known good card and without making any changes to the camera.  
    It's not a guarantee that it's the card... but it's the most common cause.
    Tim Campbell
    5D II, 5D III, 60Da

  • Error while creating class

    Error while creating class java/util/LinkedHashMap$EntryIterator
    ORA-29545: badly formed class: User has attempted to load a class (java.util
    .LinkedHashMap$EntryIterator) into a restricted package. Permission can be grant
    ed using dbms_java.grant_permission(<user>, LoadClassInPackage...
    -----Any Suggestion?
    regards,
    Anjan

    Anjan,
    Pardon me for stating the obvious, but did you do what the error message suggested? In other words, did you grant the required permission?
    Good Luck,
    Avi.

  • How to create a job card and how to add waranty card in sales order

    I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
    painful area is how to create a job card and how to add waranty in sales order.
    Regards,
    Venkat

    Hi,
    Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
    Regards
    Krishna

  • How do I create a business card on my MAC?

    I used to be a Windows user and everytime I try to do something I knew how to do in windows I can't figure out how to do it in MAC. Can someone tell me how to create a business card or find a template to create one?
    I've tried to find the anwser everywhere and can't find it.
    Although I have some trouble sometimes I do love my MAC.
    Thanks

    It's not the computer platform that determines this, how you make business cards depends on what program you're using.
    I assume, that since you mention coming from Windows, you're used to doing this task in Word. You can do it in Word for Mac. You can probably find quite a few shareware or freeware programs on MacUpdate or VersionTracker. I've used AppleWorks & now Pages for years for this kind of stuff.
    This is the forum dedicated to the workings of the forums themselves, not for technical questions. A better place for this question would have been the forum for using the model of Mac you have.
    Another little FYI: Apple Macintosh computers are referred to as Mac (capital M, small a, small c), not MAC (which is an acronym for the Media Access Control address of a networking device).

  • How do I create a greeting card using PSE 9?

    I just purchased and installed PSE 9 for the express purpose of creating personalized greeting cards.  All of the promotional material indicates that I should be able to do this with PSE 9.  However, when I try to create a card, I get a message saying that this feature is only available to "Plus" members!  Is all of the promotional material (online and offline) in error or is this a new requirement that is not yet documented?

    Hi,
    Have you watched this video?
    http://tv.adobe.com/watch/learn-photoshop-elements-9/creating-greeting-cards/
    Brian

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • I dont understand creating classes they seem a waste of time and efficiency

    I dont understand why we would want to create classes with constructors and get and set statements... I know that VB and Java did not create these just to have us writing extra code so I am missing something in my thinking.
    I read about data hiding and that I understand I guess...but everytime my professors want me to create a class then create an object from that class to access it I dont really get it. I know how to do the basics of it but I can do all of it in my main or the primary class whats the benefit of creating a whole entire class such as the following?
    Everytime I get an assignment and they are like create a class and I try to rack my head for a good idea but the nearest analogy I can come up with is this... creating your own class seems like one of those old straws you drink out of with all the loops, yes you can make it go around in a big loop but why waste time? you want to get to point A to point B so create the most efficient way to get there if possible.
    I am sure the problem is I am not seeing something and there is some logic missing but I just am getting irritated as I am not seeing it and I am finding it, its like I add an extra obstacle course to my code for no other reason than to run through a bunch of extra tasks that I could perform in my main class or main.
    input is welcome to help me arrive at some type of enlightenment thanks
    Class may not be the correct wording for this as I know we have to have a class but what I mean is a non application class. The class I have below goes with another class that actually does a lot of stuff but I am forced to push data through this class that basically does nothing but run water through some different pipes if you will. To me thats a waste when I can do everything in my original class which was called menu that I am messing with and that creates an array for a user who wants to keep a list of his items and prices of those items in inventory.
    public class Item
    private String itemName;
    private double itemPrice;
              public Item()
    public Item (String item, double price)
    setName(item);
    setPrice(price);
    public String getName()
         return itemName;
    public void setName(String item)
         itemName = item;
    public double getPrice()
         return itemPrice;
    public void setPrice(double price)
         itemPrice= price;
    Edited by: Bricatw on Oct 30, 2009 10:33 PM

    What I was plugging into it and please forgive the code as its not finished... (I am still messing with it) its just for learning and I am required to have certain parts in the Item Class and Certain parts in the Menu class..... But you it pushes through the input to the java bean.... in a case like this I just dont see the need for doing it not that I can think of anyway.
    import java.util.Scanner;//my imports for scanner so can read from the screen
    import java.util.*;//imports for my array I used astrix to just import it all as the book said it does not have any negative affects.
    public class Menu //My application class Menu that contains my main
         public static void main(String[] args)//Main method
              final int NUMBER_Of_Elements = 30; //created a symbolic constant so that I only have to change the constant
              //to edit the size of the array if I should want to change it.
              Item[]inventory = new Item[NUMBER_Of_Elements];//I create a new array object with the constant as the number of elements.
              Scanner sc = new Scanner (System.in);//created object from the scanner class used to get input from the console screen.
              System.out.println("Please enter Item on first line and price on second line.");//outputted text to prompt user and give instructions.
              System.out.println("Enter STOP to exit");//instructions on how to exit the program. I would have rather used a different
              //word than stop here. If my choice I would have used "exit" as its more widely used and to promote uniformity.
              int count;//count variable used to count my loops very important as we use it to control our arrays and loops here.
              double price;//our variable that we plug in values from the user via the console.
              String item;//same as previously mentioned for the "price"
                        System.out.println("Wings Coffee Shop Menu");
              System.out.println("");
              System.out.println("Menu Item Price");
              for (count=0; count<inventory.length; ++count)//This is our for loop it uses the length method to control how many times
              //it runs. In this case inventory.length = 30 elements so would run 30 times unless it stopped early.
                   item = sc.nextLine();//reads the input from console into the item variable.
                   if(item.equalsIgnoreCase("STOP"))//if statement that states if = stop (ignores case sensitivity) then it will break out of the loop.
                   break;//the break command which is executed if the if statement is true.
                   price = Double.parseDouble(sc.nextLine());//
                   inventory[count]= new Item(item, price);
                   Item Call = new Item(item, price);
                   System.out.printf("%-13s %.2f\n", Call.getName(), Call.getPrice());
              System.out.println("Wings Coffee Shop Menu");
              System.out.println("");
              System.out.println("Menu Item Price");
    //           for(int x = 0; x < count; ++x)
    //           System.out.printf("%15s\n",inventory[x].toString());
    //                System.out.printf("%-13s %.2f\n", Call.getName(), Call.getPrice());
    //           String[] namesOfItems = {"Coffee", "Milk", "Soda", "Bagel", "Croissant", "Donut"};
    //           double[] prices = {3.99, 2.99, 2.49, 2.99, 2.49, 1.99};
    //           for(int x = 0; x < prices.length; ++x)
    //           System.out.printf("%-13s %.2f\n", namesOfItems[x], prices[x]);
    //           Item arrayPrice = new Item(); HOW COME I CANNOT CREATE THIS OBJECT?
    //           Item call = new Item ();
    //           Item Call = new Item("item", 4.9);
    Edited by: Bricatw on Oct 30, 2009 11:22 PM

  • The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • I have a 2011 macbook pro, buy yet when I connect my 16GB or 8GB Sandisk Extreme class 10 30mb card, it wont read it, however, it reads a 2GB class 2 card, is there anyway to fix this?

    I have a 2011 macbook pro, buy yet when I connect my 16GB or 8GB Sandisk Extreme class 10 30mb card, it wont read it, however, it reads a 2GB class 2 card, is there anyway to fix this? and no, there is nothing wrong with the cards, they shoot fine, my dell inspiron 15 reads these cards fine, but yet my brand new macbook pro does not.

    After many days of frustration, I try a stupid thing.... Put the SD card in the Lock Position and... Voilá!
    The way I find to access the content is put the SD card in the Lock position..
    Cheers

  • How do I create a duplicate card in Address Book?

    I have searched and found plenty of posts on how to FIND, MERGE or DELETE duplicate cards in Address Book...
    - But I want to CREATE a duplicate card. In other words, if I want to create separate cards for 2 married people with the same last name, address and home phone number, is there a fast way to create a second card without having to manually fill in all contact info?
    Also, WHERE does one post Address Book questions? This was just a guess.
    Thanks.
    Robert

    I think I understand your question and if so, this is a decently speedy workaround.
    1) Create your first card with say the husbands name
    2) Go to File > Export > Export vCard
    3) Change the name of the card that is in Address Book to the other person ie. the wifes name
    4) Go to File > Import > Import vCard (shortcut is Command+O)
    5) Now you will have the original vCard you created which is the husbands name and you will have the wife's name as well because you just changed it.
    You can import and export multiple vCards at once so you can create all of them, export them, change all the names, and then re import.
    Hope this helps!
    David

  • Creating a folded card

    As a long-time Windows user, I have in the past created many greetings cards and "brochures" using MS Publisher which has an option of a publication layout to produce book-fold publications where I can produce four pages, and then print pages 4 and 1 side by side, and then 2 and 3 on the reverse side (and then fold it like a greetings card).
    I am a fairly new Mac user and seeking an alternative to MS
    Publisher and have been testing out the trial version of Pages (v.1.0.2) on a real brochure which I have a need to produce and I just cannot get it to do this logically. I have set the document to print two pages side by side, but I have to lay it out with my back page as page 1, then my front page as page 2. If I then set the layout to be facing
    pages in order to set inside and outside margins, the pages re-arrange themselves into a different order! The Help files say that odd pages will always be on the right hand side. So - I then reset my pages back to their logical order, and sure enough page 1 is then on the right, followed by 2 and 3 side by side, followed by 4 on the left. However, there is then no way I can then print 4 and 1 side by side, followed by 2 and 3.
    I have tried this with all pages in separate sections, and with all pages in one section, and with pages 2-3 in one section, but it makes no difference. I can of course go back to calling page 4 page 1 as above, and that works fine provided I don't want my pages numbered, but it seems a very basic need for anyone trying to use a simple DTP type program. Is there any way to do this? I have read the thread headed "Newby trying to make booklet" posted on 17th January and the answer seems to be that the only way is to export the document to PDF and use a booklet program to print from. This seems crazy!
    I would be really grateful for any help, even if it's to say - stop looking - you can't do it. (And in that case is there a good simple not-too-expensive DTP program for the Mac that would do what I want?)

    Hello Sally,
    welcome to the Pages Discussions. The easyst way to
    have a "four-pager" by one fold is, to have a
    document with only two sheets. Create page 1 and page
    4 on the first sheet and the pages 2-3 on the second
    sheet of the document. You have to set the paper size
    in Pages to landscape, than you can fold the sheet
    after printing.
    But if you want to have more then a "four-pager" (and
    not a many folded flyer), you have to use the
    solution David mentioned.
    Thank you Frank. This is the solution I had ended up with, which does work, but really it is as I guessed, and there is no automatic way.

  • How to create class interface

    Hi all,
    How shud i create class interface.
    Does this have an impact with the activation of program in sicf txn.
    basically my problem is i did not create a class interface or implement it.
    when i go into sicf txn i cant my program.
    please help me out.
    Regards,
    varun

    Vadnala,
    Go to SE24 to create your class interface and take a look at the tutorials we have spread in the SAP help and SDN. Take a quick look at BSP aplications SBSPEXT_*.
    Regards,
    Alexandre

Maybe you are looking for