Search:

Type: Posts; User: aw20

Page 1 of 3 1 2 3

Search: Search took 0.17 seconds.

  1. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    i know but my assignment say addTextbok(String id)
  2. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    -jGRASP exec: javac -g Bookstore.java

    Bookstore.java:17: error: variable apparel is already defined in class Bookstore
    private Apparel apparel;
    ^
    Bookstore.java:64: error: no...
  3. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    import java.util.List;
    import java.util.ArrayList;

    public class Bookstore
    {
    //Instance field
    /**
    *@param name
    *@param textbooks
    *@param apparel
  4. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    ----jGRASP exec: javac -g Bookstore.java

    Bookstore.java:62: error: <identifier> expected
    public void addTextbook(textbook)
    ^
    1 error

    ----jGRASP wedge2:...
  5. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    public void addTextboox(textbook)
    {
    textbooks.add(textbook);
    }
  6. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    i know how but i dont know how to write myself
  7. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    yes i do. how to write add method and fuction for that? My assignment due tonight
  8. How to write addTextbook(Textbook) in a method? how to write a tester class?

    addTextbook(Textbook) adds a new Textbook to the inventory of the bookstore.
    buyTextbook(String id) removes a Textbook object from the list of textbooks of the Bookstore. If the id does not match...
  9. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Re: Can you help me ?

    It didn't give me an error.
  10. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Re: Can you help me ?

    Is this code right for method computeGrade() handles the conversion of the letter grade to a numeric equivalent and saves it in the instance variable numberGrade?
  11. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Re: Can you help me ?

    public void computeGrade()
    {
    int size = letterGrade.length();
    switch(letterGrade.substring(0,1))
    {
    case "A": numberGrade = 0.4;break;
    case "B": numberGrade = 0.3;break;
    case...
  12. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Re: Can you help me ?

    ok.do you know where can I find that infrmation?
  13. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Re: Can you help me ?

    How do you use if { ... } else { ... } construction for handle the "+" and "-" modifiers?The "+" can be appended to B's, C's, and D's and increases the value of the letter grade by 0.3 points. A "-"...
  14. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Re: Can you help me ?

    My question is how can i update letterGrade and numberGrade as desricbe in instruction letter C above
  15. Thread: Can you help me ?

    by aw20
    Replies
    13
    Views
    348

    Can you help me ?

    1. Develop a simple grade transcript program. We will have two classes, a Course class representing an individual course that a student has taken and a Transcript class that will combine several...
  16. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    move just public, not public Rectangle?
  17. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    import java.util.Scanner;

    /*
    * Stacktrace.in
    * You have a exception , we have a solution
    */
    public class DrawRectange {

    public static void main(String[] args) {
  18. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    ok
  19. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    no I like to learn myself and use your help
  20. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    You can do that? write the code for someone esle?
  21. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    All i need is example of loops controls
  22. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    for (int j= 3; j <= height; j++) {
    }
    if (i%width) == 3)
    System.out.print("#####");


    or
  23. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    Ok

    --- Update ---

    What should I say in if statement for height?
  24. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    Tell me what I should do?
  25. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    505

    Re: Workshop 6

    or if (width < 1 || width >10 ?
Results 1 to 25 of 69
Page 1 of 3 1 2 3