Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for MrHardRock

Hey guys I had an assignment to recursively write the Towers of Hanoi then test it. I did not have too much of an issue getting the program written But I am not sure what the book means by test the efficiency do they want the number of moves my …

Member Avatar for stultuske
0
894
Member Avatar for MrHardRock

Hey guys, I recently had an assignment to write a sort algorithm we have not yet gone over in class. I had no problem getting my code written and to compile, but now that it compiles I keep getting an error that says "Exception in thread "main" java.lang.NoSuchMethodError: main" I …

Member Avatar for Ezzaral
0
225
Member Avatar for MrHardRock

Hey guys, I have the assignment of writing the Towers of Hanoi program then testing it. I already got help measuring the time of the program, but that is not what my professor wanted he wanted to count the iterations. I can't get it down, my program will run but …

Member Avatar for MrHardRock
0
2K
Member Avatar for MrHardRock

Hey I have an assignment to get a number from the user and print it as a string with commas in the correct space. For example if the number is 13904 it should read 13,904 or 1005 should read 1,005. I have to do this recursively. Working on my pseudo-code …

Member Avatar for dantinkakkar
0
2K
Member Avatar for MrHardRock

Hey everyone, I recently had the assignment to write a recursive program to calculate greatest common denominator. I barely understood recursion when our instructor explained it to us. I understood how it works and calling on itself I am just bad at implementing it. I think I almost got my …

Member Avatar for MrHardRock
0
286
Member Avatar for MrHardRock

Hey everyone, I have my code written I just have one error I am stuck on, any help is greatly appreciated, thanks in advance. My one error is on line 80 saying "illegal start of expression" pointing at the 'p' of public [CODE] import javax.swing.*; import BreezySwing.*; public class binary …

Member Avatar for cretaros
0
152
Member Avatar for MrHardRock

Hey everyone, I am writing a GUI that allows a person to enter all their own numbers into an array, then they can search the array for any number they want. I have it almost completely written except for two compile errors I can't figure out The first one is …

Member Avatar for mKorbel
0
165
Member Avatar for MrHardRock

Hey everyone, I am writing a program that needs to take 10 integers and display them, then it needs to sort them in order from lowest to highest and then display them again. I was trying to use selection sort to sort them, but I think I set it up …

Member Avatar for jon.kiparsky
0
163
Member Avatar for MrHardRock

Hey everyone, I am writing a program that requires me to use an array to find the mode of 10 numbers. I have working except I want it to just print the mode, but it keeps printing every number I enter. Any suggestions? Thanks in advance. [CODE] import TerminalIO.KeyboardReader; public …

Member Avatar for Spamj
0
2K
Member Avatar for MrHardRock

Hey everyone the program I am writing has to find the mode, max, and median from an array. I think I have everything except there is one error I cannot figure out, thanks in advance. [CODE] import TerminalIO.KeyboardReader; public class med { public static int MAX(int[] a) { int MAX …

Member Avatar for MrHardRock
0
99
Member Avatar for MrHardRock

Hey everyone I need to write a tic tac toe program vs the computer using an array. I have gotten almost all of it done but I am totally stuck on this error. Any help would be much appreciated, thanks in advance. My error being on line 221 and 222 …

Member Avatar for audiomatic
0
222
Member Avatar for MrHardRock

Hey everybody, the program I am writing takes 10 digits as a floating point as a number then displays the average of the numbers and any numbers that are greater than it after it. My program will compile but every time I run it through I get the error message …

Member Avatar for JamesCherrill
0
229
Member Avatar for MrHardRock

Hey everyone, I am working with arrays, my program needs to take a list of 10 numbers and put them in each array depending on if they are even, odd, or negative. My program compiles but it does not run correctly it only displays 0 for each list. Thanks in …

Member Avatar for MrHardRock
0
145
Member Avatar for MrHardRock

Hey, this is the first program I've tried writing using any GUI and I have gotten everything so far, except every time I click my button to try and run my program it just freezes and does not do anything. import javax.swing.*; import BreezySwing.*; public class piGUI extends GBFrame{ private …

Member Avatar for JamesCherrill
0
219