Robert Mabrey

Greenhorn
+ Follow
since Apr 02, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Mabrey

Thank you i did find the bracket and that fixed it however I did not notice the (0<d&&d<=31) Program works fine now

again thank you
15 years ago
I fixed my original problem but now this code only works up to a certain point. I had it working fine but then i changed some variable names and i messed up something and im not sure what. It stops where the ***** are and wont doing anything below.Hopefully you more experienced programmers out there can tell me what is wrong. thanks


[ April 29, 2008: Message edited by: Robert Mabrey ]
[ April 29, 2008: Message edited by: Robert Mabrey ]
15 years ago
OK scratch needing a counter I think I might have it but im not sure.


And my output it
15 years ago
I need that. That is why i was asking if my array is being filled with the characters of if it was just the other code I had that was putting them there but now from the file. MOre like incrementing the array I guess? All in all i still dont think the letters from the text file are being indexed to teh arrray properly. I have some code that better explains my problem.


This code was looked at by my professor and he said i was on the right track but this is the output i get right now


so i'm guessing i need some sort of coutner to increment the value of C but i'm not sure how?
15 years ago
OK ill look. As far as putting them into the array I pieced this together searching through forums but I think that it is actually taking the letters from the file. I was hoping for your input on that.
15 years ago
OK here is the contents of my input file


The coded message has 49 letter in it. I want to basically pully the letters out of the input a store them alphabetically into the array. From there I need to determine the largest element and creat a shift(unknown) the print the new decoded message. I can do the rest of it but just getting the input into the array has been my downfall.
15 years ago
Five was an exaggerationbut I have tried using the following ways


Aso using
that was nothing but errors and I even compiled a completed example from my book straight off the cd and it kept saying cannot find symbol for IntClass

And this here is the closest I have come. This code puts the first 26 letters from the text file into the array. its not alphabetically like i wanted but it was the closest i got.
15 years ago
Five was an exaggerationbut I have tried using the following ways


Aso using
that was nothing but errors and I even compiled a completed example from my book straight off the cd and it kept saying cannot find symbol for IntClass

And this here is the closest I have come. This code puts the first 26 letters from the text file into the array. its not alphabetically like i wanted but it was the closest i got.
15 years ago
Im trying to take a read a text fille containing a coded message and put the letter into an array(alphabetically). I have spent two weeks and 5 different ways of approaching the problem but no luck. I was hoping someone could help. my text book is only good for using console.next but since it is from a file that is useless and im out of ideas. Any help would be greatly appreciated. Thanks. here is what i have so far just pretty basic.
15 years ago