[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...
Type: Posts; User: BITmixit
[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...
SOLVED, cheers for the help :)
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...
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:...
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....
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 :(
...
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;...
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...
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.
...
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...
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...
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
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...
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...
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...
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.
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:
...
3
No, i intended the program to end overall. :S
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...
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....
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...
public class Main
{
public static void main(String args[])
{
System.out.print("#Number Of Stars: ");
int sizeofsquare = 5;
int down = 1;
int across = 2;...
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...
My university want me to have the data be terminated when a 0 is entered.
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:"...