Search:

Type: Posts; User: BITmixit

Page 1 of 2 1 2

Search: Search took 0.21 seconds.

  1. Count number of 'coin'p coins in a "machine"

    [SOLVED]

    Hello for my recent assignment I've been tasked to create a ticket machine which accepts payments in and allows you to cancel them. A recent extension to the assignment was to count how...
  2. Re: Arraylist pass/fail values problem/confused.

    SOLVED, cheers for the help :)
  3. Re: Arraylist pass/fail values problem/confused.

    Ignore that, I solved it. I accidentally left some ;'s in :(.

    Another problem tho, for some reason the method im using to get the name of the highest marking pupil isn't work and can't get my head...
  4. Arraylist pass/fail values problem/confused.

    Another day another assignment. For this assignment I need to read in values into an arraylist and then output things such as

    Students Passed: value here
    Students Failed: value here
    Top Student:...
  5. Replies
    3
    Views
    1,940

    Re: Calculator dividing by 0 problem.

    Sorry man, I was in a hurry for work and posted the wrong code. Il post my Logic and Calculator code along with the exception.

    My assignment requires that number / zero will need to return as 0....
  6. Replies
    3
    Views
    1,940

    Calculator dividing by 0 problem.

    New assignment, need to obviously make the number variables and action variables work together. All of them do apart from divide which has a major problem that I can't figure out how to solve :(

    ...
  7. Replies
    4
    Views
    1,440

    Re: 1st Assignment Sem 2 Counter + GUI

    Went out last night instead of doing thus but sat down this morning and read through all the advice here and the links, sucessfully got it working :)




    class Counter
    {
    public int count = 0;...
  8. Replies
    4
    Views
    1,440

    Re: 1st Assignment Sem 2 Counter + GUI

    Thanks for the reading material, I completely understand about not wasting time complaining about a teacher however when said teacher forces you to attend lectures/seminars and spends around 2 hours...
  9. Replies
    4
    Views
    1,440

    1st Assignment Sem 2 Counter + GUI

    Hey everyone, Semester 2 of my University course and they have decided to give us an assignment involving returning values from a method without actually teaching us how to do it...brilliant.
    ...
  10. Replies
    4
    Views
    4,292

    Java Programming revision

    I'm halfway through my first year of java programming at University. We started from scratch and I had basically no knowledge when I started. I've never done a programming exam before so i'm a little...
  11. Replies
    1
    Views
    1,524

    Re: Java formatting assignment.

    UPDATE

    Been spending about half my night on it but im still confused on where to add a loop or something. From my current progress below i understand that the if statement is finishing and then...
  12. Replies
    1
    Views
    1,076

    Adding to a string array?

    I have split my string into an array.

    Hello im awesome

    is now:

    helloimawesome

    I now want to add the spaces back into the array
  13. Replies
    1
    Views
    1,524

    Java formatting assignment.

    Hey, new assignment. This time my program needs to read in a width of a line and then format a sentence to create margins.

    For example,

    This is an example
    of text that will
    have straight...
  14. Replies
    12
    Views
    1,813

    Re: where to break array sorting?

    Finished it and it works. I basically just told the program to convert the string to lowercase before putting it in order and then just simply printed the original string so it still looked like...
  15. Replies
    12
    Views
    1,813

    Re: where to break array sorting?

    No i dont really understand it :S

    I want the order to be like i stated:

    A, a, B, b, C, c

    How do i go about changing the order?

    Is there no way i can tell the sorting process to ignore...
  16. Replies
    12
    Views
    1,813

    Re: where to break array sorting?

    I assumed it was a, A, b, B, c, C

    My friends seems to think char[] characters = input.toCharArray();

    is converting any capitals from a string into normal letters before adding to an array.
  17. Replies
    12
    Views
    1,813

    Re: where to break array sorting?

    Right, got it working it now exits upon entry of END. However when trying to submit it to the system which checks our code online, compiles it and runs examples mine doesn't work. Heres the code:

    ...
  18. Replies
    12
    Views
    1,813

    Re: where to break array sorting?

    3

    No, i intended the program to end overall. :S
  19. Replies
    12
    Views
    1,813

    where to break array sorting?

    For an assignment ive had to have a problem read in a string and then display the string and state if the letters in the string are ascending or not. I've managed to do this however i swear no matter...
  20. Replies
    6
    Views
    1,222

    Re: URgh, drawing a square

    Fixed it and its working now, took a closer look then sort of had a duh moment and realised i could reset the across variable outside of the across loop thus resetting it till the down loop was done....
  21. Replies
    6
    Views
    1,222

    Re: URgh, drawing a square

    I used the debugger and from what it showed me the while across loop is doing its job then thinking its done and letting the other loop then do its job.

    However ive tried to move the across=across...
  22. Replies
    6
    Views
    1,222

    Re: URgh, drawing a square

    public class Main
    {
    public static void main(String args[])
    {
    System.out.print("#Number Of Stars: ");
    int sizeofsquare = 5;
    int down = 1;
    int across = 2;...
  23. Replies
    6
    Views
    1,222

    URgh, drawing a square

    My current task is to draw a square and im nowhere near into it. Been working on the project now for about 4 hours and im just confused. Heres my code, atm i can't even get it to do what i want it to...
  24. Replies
    4
    Views
    3,220

    Re: How to repeat a while loop?

    My university want me to have the data be terminated when a 0 is entered.
  25. Replies
    4
    Views
    3,220

    How to repeat a while loop?

    I need my program to repeat the while loop if the student number = 0. How would you do this?

    class Main
    {
    public static void main( String args[] )
    {
    System.out.print("#Student Number:"...
Results 1 to 25 of 27
Page 1 of 2 1 2