Posted by Lee on Saturday, November 13, 2010 at 11:05pm.
This is a visual basics project.
I suppose the table shows the minimum weight in oz. for each grade (A,B,C,.. etc.)
This is what I suggest:
1. Read the grade (as string) and minimum weight (as float) into two arrays. Call the number of entries maxGrade.
2. make a third array called gradeCount, with maxGrade as the maximum subscript.
3. Read in the weight of each egg from eggs.txt, and compare with the weight array using a for-loop. If the weight weight exceeds the array value, increment the gradeCount and exit the for-loop.
4. repeat until the entries of eggs.txt is exhausted.
5. output the gradeCount array with the corresponding grades.
Post you code if you have problems.
Thank you I was able to create my program with your suggestions.
Related Questions
Finance - Describe a work-related situation you feel could be improved. For ...
business - Describe a work-related situation you feel could be improved. For ...
Programming Logic - I need to create a flowchart/psuedocode for a dice game that...
Computer science - As a member of the Information Security team at a small ...
Computer science - As a member of the Information Security team at a small ...
analysis and design - My project is upgrading a bathroom and this is what I need...
science - I need an optometric project that will get me to state! last year i ...
project planning - i need help this is late work and i have until friday night ...
Questions - Okay, so I'm doing this project on careers and I need pictures. ...
Science Project - I have to do a project on how smoking effects the environment...
For Further Reading