![]() |
Grading Scale
Ok I am looking at a C++ projects right now, but I want to try and do something in vb, due to thats what my laptop I bought off my son has on it. I want to create a grading scale, but have no clue about vb. I have my grading scale here and want to go by these guidlines in C++ as closely as possible. I need to create a program with 2 arrays and at most 1 if statement. 0-299 = F, 300-349 = D, 350-399 = C.. and so on. I want to enter the number grade in a text box and have the letter grade shown. Please help or get me started, I would like to have this done so I can give my students their final grade within the next few days.
|
Re: Grading Scale
If this is not possible by these guidelines what should I do?
|
Re: Grading Scale
Umm use a calculator?? Other than following a tutorial http://www.functionx.com/cpp/index.htm
|
Re: Grading Scale
Let me guess. You're a student who hasn't done their homework, so you're pretending to be a teacher to trick us into to doing your homework for you? Fat chance Tommy. Either way, we're not a programming service. Read the rules.
Show us an attempt at your homework if you want another shot at getting help. |
Re: Grading Scale
Any college professor can do this program in c++ in about 15 minutes (or less), and I realize some newbe programmers may find it somewhat tough assignment.
First you need two arrays -- one that holds the letters and the other the maximum grade allowed for that letter. For example: :
string letters[] = {"F","D","C","B","A"};Now all you have to do is to (1) prompt for a grade, (2) get keyboard input, (3) loop through the arrays until the grade you entered is less than the grade in the grades array, and finally (4) display the letter grade or an error message that says the grade you entered was not in the array. Do the program just one item at a time and before you know it you will have it completed. Make sure you compile and test your program after finishing each of the 4 steps shown above. [edit]Oops! this is the VB board, not c++. Oh well, the same applies to VB except the arrays I posted have to be converted to VB syntax, which shouldn't be that difficult to do.[/edit] |
| All times are GMT -5. The time now is 12:44 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC