Search:

Type: Posts; User: mattmattmatt

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,759

    Re: Assignment help (splitting queue)

    So the LinkedQueue would need to implement the QueueADT interface then? Her instructions were: This assignment will require you to modify the LinkedQueue class and QueueADT interface, and write a...
  2. Replies
    7
    Views
    1,759

    Re: Assignment help (splitting queue)

    Is this what you're looking for?



    import java.util.Arrays;

    public class ArrayStack<T> implements StackADT<T>
    {
    private final static int DEFAULT_CAPACITY = 100;
  3. Replies
    7
    Views
    1,759

    Re: Assignment help (splitting queue)

    Well, I have a QueueADT for the LinkedQueue and StackADT for the LinkedStack. I have another for LinearNode if you happen to need it. I am going to put my entire code that the split method belongs to...
  4. Replies
    7
    Views
    1,759

    Assignment help (splitting queue)

    I have a programming assignment that is simulating a queue, such as a waiting room. It is to read a data file (our professor has it and will use it to test) that our program does what it's supposed...
  5. Re: Homework: Point me in the right direction?

    For insert and delete, is the easiest way to do it is StringBuilder?

    --- Update ---

    Here are my insert and delete methods. I commented the changes part out since that is how I was storing the...
  6. Re: Homework: Point me in the right direction?

    Any way to give me an example of this? I know how the push and pop work and how to set those up. Is insert and delete the same as those 2? If so, where do the count and pos come from? I know they...
  7. Re: Homework: Point me in the right direction?

    This is what I got so far for SmartString. I know we used "top" in the examples for class, but I'm not sure if i have the stack correct or not. I need a shove in the right direction...

    Edit: I was...
  8. Re: Homework: Point me in the right direction?

    What would the count be referring to? I understand the concepts of push and pop, but not sure what the point of this program is to do. I think if I can understand it, I might be able to do it even...
  9. Re: Homework: Point me in the right direction?

    How does the Stack part work? I think that is throwing a wrench into how I'm understanding it, and I want to make sure I have the right idea.
  10. Re: Homework: Point me in the right direction?

    I'm just completely confused on exactly what I'm supposed to be doing. My previous java teacher really didn't teach us a lot so some of us are behind with this class compared to others. I know what...
  11. Homework: Point me in the right direction?

    Hey guys!! I am taking Java and I have a programming assignment that I don't understand. We just started talking about stacks so I'm not sure how to even begin, if someone could help. I'll post the...
  12. Replies
    0
    Views
    1,019

    School Assignment help

    I have an assignment project for school, and I've gotten a lot of it done, but I know it's not correct, and needing a little guidance. I will post the assignment, and then I'll list my code below. I...
  13. Replies
    16
    Views
    1,877

    Re: Homework Assignment help..

    And that's what I'm saying. It compiles and everything correctly. Zero errors. The problem now is logic, I'm guessing within the program. No matter what, the actual printed values are the same. They...
  14. Replies
    16
    Views
    1,877

    Re: Homework Assignment help..

    Yeah it is working, but not properly. For some reason, it keeps giving me the same numbers despite the testing I do. For example, Here is the data that I start with (I changed the values around a bit...
  15. Replies
    16
    Views
    1,877

    Re: Homework Assignment help..

    I went back and moved the } to the end so that everything was in main, but the new error is :

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Syntax error on token...
  16. Replies
    16
    Views
    1,877

    Re: Homework Assignment help..

    Yeah it gave several errors starting with line 17. It says "<identifier> expected" after the println. There's a few of those errors for that line pretty much same error just different spot. It's...
  17. Replies
    16
    Views
    1,877

    Re: Homework Assignment help..

    For A) Nope that's the thing. It doesn't show me an error in eclipse. Just in the console at the bottom when I try to run it, and it gives the error I posted above. Eclipse is showing nothing wrong...
  18. Replies
    16
    Views
    1,877

    Re: Homework Assignment help..

    My fault on that, I should have specified. A couple of problems to start with...

    A) I use Eclipse, and this is the error I get when running the main:
    Exception in thread "main" java.lang.Error:...
  19. Replies
    16
    Views
    1,877

    Homework Assignment help..

    I have a programming assignment where I'm basically supposed to have a Thermostat class and a main. With the Thermostat, you set the desired temperature and heating/cooling and once it gets to that...
  20. [SOLVED] "Actual and formal argument lists differ in length" HELP!!

    I'm doing a project assignment for school. The assignment is to create a conversion program that 1) prompts the user to enter a value in meters 2) then asks which they want to convert meters to: km,...
  21. Replies
    12
    Views
    1,905

    Re: Help with Coding School Assignment

    I got the error fixed and I'm trying to put in the remainder and prompting the user for it if they pick division, but it just skips asking for the remainder and counts it correct if the answer is...
  22. Replies
    12
    Views
    1,905

    Re: Help with Coding School Assignment

    I posted my new code. The professor went over kind of an outline of how to set it up today, so this is what I've got now. The current error I'm getting when trying to compile is for the section where...
  23. Replies
    12
    Views
    1,905

    Re: Help with Coding School Assignment

    Would that fix the error that I'm currently getting? And, I just put the flush right after the nextInt segment right?

    --- Update ---

    Hopefully this screenshot will help. Even after adding that...
  24. Replies
    12
    Views
    1,905

    Re: Help with Coding School Assignment

    So the "input.nextLine();" segment would go after my code "guess = keyboard.nextInt();"? and after every input that the user gives? Just want to make sure I understand that correct. We haven't...
  25. Replies
    12
    Views
    1,905

    Re: Help with Coding School Assignment

    Thanks for the compliment! I started testing it and here's the first problem I got to. Once I enter my name, pick addition for example then get the problem. I can enter my solution, but once I do it...
Results 1 to 25 of 26
Page 1 of 2 1 2