
October 18th, 2012, 06:52 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 2
Time spent in forums: 20 m 49 sec
Reputation Power: 0
|
|
|
GPA Program - Theoretical Formatting Question
Hi there whomever is reading this,
I was tasked with making a GPA Program. The program is supposed to be able to calculate Grade Point Average on a weighted scale. It must be able to input user data, calculate the GPA score based on a weighted scale based on ranges of values for each score, and, after doing this 7 times and taking the average of all 7 inputs, output the overall GPA. Here's where I ran into my problem. I was able to make a successful program, but it had exceeded the size requirements. My program had utilized an array along with multiple if statements to determine the un-weighted GPA value, and using some math calculations, output the weighted GPA. The program was roughly 280 lines of code, exceeding the limit of 200. So my question for you is this: How would you format this program so that it could run under the limitation? I'm not asking for somebody to do my homework for me, I'm just asking for how it should run, as in, the basic format I should use. I'm only starting Java, so it would help if your answer would be a simple one.
Thanks for your time,
Raj
|