Adam Favel

Greenhorn
+ Follow
since Feb 09, 2005
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 Adam Favel

i think i just figured out my problem now...thank you for all of your help



Thanks
13 years ago
alright, thanks for all your help, i think i can figure this out now

thank you
13 years ago
Hi again.

Thank you for all the help and suggestions you guys are giving me. You guys here are a lifesaver!

to answer a few questions that have risen:

- I am supposed to use Static Methods, Arguments/parameters, looping constructs, and "checking inputs" whatever that means.

- The Main method is supposed to ask for the Name, Student Number, and a set of marks in % form.
- The marktoGrade method is supposed to convert each mark from main to a letter grade according to a scale seen in my code.
- the gradetoGradePoint method is supposed to convert each mark from marktoGrade to a GPA according to a scale, also seen in my code.
- the printTranscript is supposed to display all the information asked for including name, student number, all letter grades in a string format, and an average GPA, done in this method.
13 years ago
hi

Thank you for all the help you've given me...

the triangle part of the program is supposed to print out a triangle made up of random chars created in the ch variable. it uses the height in the getValidInt() to create a triangle of that height of that random char.

Thank you again
13 years ago
it will compile, and shows the first input box, asking what shape do you want to draw, but after that the screen is blank, and does not do anything.
13 years ago
alright...here goes...

I am supposed to create a program that will collect and process student grade info. It has to be done with static methods, and 4 methods, including main. The main method asks for five marks in %. The markToGrade method should convert these to a Letter Grade and put into a string. Then the gradeToGradePoint is supposed to convert the Letter to GPA, and store that number for a later method. In the final method, its supposed to display all of this info, including the average, and display a message if over 3.0 or if below 2.0.
13 years ago
my program here complies, but it will not run...can someone by chance take a look at it for me...it supposed to take in numbers, draw a parallelogram with (*) and a triangle with a random char. Can someone help me out?

13 years ago
oh yeah, i forgot to add that i haven't added in brackets in the if-else statements, and if i did, some of them are in the wrong places i think.

thanks
13 years ago
I have another program to write as well. It is a program that converts grades to letter grades, to GPA, and then prints it all out. it consists of four methods, and i only have the bare essentials of the program down at the moment, but i cannot figure out where to go from here.

here is my code if you are interested...


13 years ago
another question...were the methods for the parallelogram and triangle actually draw the shapes they are said to draw? i'm still figuring out the problem with running it, so i currently don't know. Can someone check that out for me.

Thanks
13 years ago
i would do it this way (also because its the only way i know how)

int len;
string ip_address;
int i;

len = ip_address.length();

for (i=0; i<=str.length(); i++){
if (ip_address.charAt(i) == "."){
System.out.print(" ");
}
}

or something like that...i think you get the idea, its just a for loop
13 years ago
Sorry to bother you again, and thank you for the help, but i don't really understand what you mean by "breaking into smaller pieces". Do you mean that i should just test each static method by themselves first, and then put them back together, or am i missing the point?
13 years ago
see the thread called "Static Methods Problem"
13 years ago
there, my name is changed...but still, can anyone please look over my code, and guide me in the right direction...i'm drawing a blank.
13 years ago
Alright...I've been working on this some more, and this is what I've come up with now...but I haven't been able to get any farther yet...can anyone help me out?

13 years ago