Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
basic algorithm (arrays) help

 
Post new topic   Reply to topic    dna88 Forum Index -> Programming in Java, C, C#, VB, .NET Discussion Forum
Author Message
sarah2237
Just In
Just In


Joined: 05 Dec 2004
Posts: 1
Location: Oregon

Post Post subject: basic algorithm (arrays) help Reply with quote

I have a problem that I'm trying to solve. I'm trying to break it down into pieces, but am really having a hard time understanding it. I'm in an intro to programming class. Any help or suggestions would be appreciate. (P.S. this isn't a homework problem, but if I don't do as many of these as I can, I'm certainly not going to grasp it before finals next week.)

Here's the problem:

Design an algorithm that will read a file of student letter grades and corresponding grade points and load them into two paired arrays, as follows:

Letter Grade Grade Points
A 12
B 9
C 6
D 3
E 0

Your program is to read each record on the file (which contains a letter grade followed by a grade point), validate the letter grade (which must be A, B, C, D, or F), check that the grade point is numeric, and load the values into the parallel arrays. Your program is to stop processing when the file reaches EOF or the arrays are full. Print an error message if there are more records on the file than elements in the array.

Thank you for any help. Right now I'm trying to come up with the IPO and case structure, then right the algorithm.
_________________
Aspiring Programmer
Sun Dec 05, 04 3:49 pm
Back to top
sarah2237 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Programming in Java, C, C#, VB, .NET Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group