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.
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.
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.
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?
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.
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.
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?