VS 2008 Grade Averager Program

Nov 9, 2009

I am trying to make a simple program that utilizes lists, loops, arrays, and multiple forms. I started the program in which I have incorporated lists and loops already.A summary of my program; I am trying to be able to add a name to a combobox list, and assign a grade to that particular person (grade of A = 4, b = 3, ect ect). I am assuming I should utilize the array concept at this point when assigning the grade to the name, but I am not exactly sure what to do. I have attached a screen shot of my form, and I will post what code I do have so far.Also, when all the grades are entered with their corresponding names, I want to also have a summary screen pop-up with the names and which grades they received, plus the average.[code]

View 13 Replies


ADVERTISEMENT

Grade Program With List Boxes?

Jul 4, 2009

I'm trying to code a program that averages a grade from a list box, but the numbers in the second list box could change, so not sure how to code that. It should list the letter grade and the average, then if they don't enter a grade, should tell you to enter a grade first before hitting the average button.

Public Class MainForm
Dim ErrorMsg As String
Dim intNum As Object

[Code].....

View 5 Replies

Create A Program To Calculate Math Grade?

Feb 19, 2010

I ma trying to create a program to calculate my math grade. The way my math teacher explained the grading scale was each test is worth 1 point and each quiz is worth .2 points.

So as an example (add both sides up then divide by both sides)

100 =1
80 = 1
15 = .2
18 = .2

213 divide by 2.4 which equals your grade of 88.75

There are more quizs and tests in the semester and I want the numbers to change with the number of quizs and tests entered. The only problem is I am not sure how to code it. I though I would use IF AND statements but I am not sure where to start.

View 8 Replies

Write A Program Using 2 Parallel Arrays Representing Grade Point And Grades?

Jan 31, 2010

I have to write a program using 2 parallel arrays representing grade point and grades. The grade points range from 0 to 500, however, we are only to use the minimum points per each letter grade in " points " array. This is shown in the code below. You then enter a number from 1 to 500, representing the grade points, and in turn it spits out your letter grade.My problem is this. When I enter a number, say 200, I get a letter " D " grade instead of an " F " grade. It appears that every number range I enter gives me one letter grade less than what it is supposed to be. Also, any number 450 to 500, representing an " A " grade does not even register in my Grades Label.

[Code]...

View 7 Replies

VS 2008 Grade - Pardon Improper Format - 11 VB

May 18, 2009

I'm trying to design a hangman game, but I'm having difficulty. Pardon my improper format as well.

[Code]...

Is there any way to do that without that big line? I tried doing lstExample.Items.Add(row, column) inside the column loop but it kept starting a new line.

View 10 Replies

Array (parallel) - Allow User To Enter A Score And The Program Returns A Grade Based On The Score Entered

Apr 14, 2012

Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......

[Code]...

View 1 Replies

Carver-parallel (range Code) - Allow User To Enter A Score And The Program Returns A Grade Based On The Score Entered

Apr 14, 2012

Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......

[Code]....

View 2 Replies

Calculating Average And Grade?

Jun 21, 2010

Using VB.NET write a program that can calculate the grade of a student based on his or her marks in five subjects as input according to the following rules:

Grade A: For average between 100 and 80 (inclusive)
Grade B: For average between 79 and 65 (inclusive)
Grade C: For average between 64 and 40 (inclusive)

[code].....

View 2 Replies

Course Average To Letter Grade?

Mar 3, 2010

It works up to this point but when I try to add so that 70-79 is a C, 60-69 is a D, and 60 and less is a F I run in to problems.

Module Module1
Dim Average As Integer = 0
Dim Response As String = ""

[code].....

View 3 Replies

Dropping The Lowest Grade?

Sep 22, 2009

I am in a visual basics 2008 class for my MIS degree. This is the beginners class. We were instructed to build a program that calculates a score average. However, we get extra credit if we figure out how to drop the lowest test score. I do not know how to do this. The teacher won't help with the extra credit. I will post my code.

[Code]...

View 10 Replies

Listbox, How To Get Grade Scores Up

Mar 10, 2010

Heres my code:

Dim num1 As Integer
num1 = Val(InputBox("Subject Name:"))

[code].....

View 1 Replies

Calculate And Display Letter Grade

Nov 21, 2010

I have coded this not sure how to get it to display correctly to the lblGrade box. I have set it up for. Supposed to take the average of three grades and display the letter grade for the average of the three grades.

Here is the code
Public Class frmMain
Private Function CalculateGrade _
(ByVal txtTest1 As Decimal, ByVal txtTest2 As Decimal, _
ByVal txtTest3 As Decimal) As String
Dim AverageScore As Double
[Code] .....

View 8 Replies

Display Grade Based On Points?

Mar 1, 2010

I have a homework assignment to code an application that allows the Prof to display a grade based on the numnber of points he enter. The grading scale is : 0-299 -F; 300-349- D; 350-399- C; 400-449- B; 450-500- A. We are to store the minimum points in a 5 element one dimensional Integer array name intPonts and store the grades in a 5 element one dimensional String array name strGrades. The arrays should be parallel arrays. The procedure should search the intPoints array for the number of points entered by the user and then display the corresponding grade from the strGrades array.

I have stored the minimum points and grades in a one dimensional integer and string array respectively. I have coded the program, and when I put in random points, it gives me the letter grade. For example, if I put in 376 it will display a "C"; if I put in 200, it will display an "F". However, if I put in anything over 449, it will NOT display an "A", it just leaves the lbl blank. I am stumped on how to get the code to read pass 449 points.

here is my code:

' Name: Carver Project
' Purpose: Displays a grade based on the number of points the user enters
' Programmer: <Paul J. Williams> on <February 27, 2010>

[code]....

View 6 Replies

Forms :: An Assignment For A Grade Book?

Apr 11, 2011

Suppose a teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores.

Test Score Letter Grade
90-100 A
80-89 B

[code].....

View 1 Replies

Getting A Letter Grade Using Select Case?

Dec 14, 2009

I made an application that calculates course grades. The program runs perfectly except for the last part

The the final grade number comes from the label "lblCoursePts" and i want to put the letter grade in the label "lblFInalGrade" Here is what i have.

'Determine the final letter grade
Select Case lblCoursePts.Text
Case 90 To 100 : lblFinalGrade.Text = "A"

[Code]....

View 5 Replies

Grade Analysis And Curve Calculator?

Dec 19, 2011

Write a program to analyze a list of grades to determine the number of A's, B's, C's, etc. after applying a curve percentage selected by the user. When the form loads it should contain all the grades and available curves in the list boxes on the left. The user selects a curve and clicks the "Apply Curve" button. The program should display the curved grades (based upon the selected curve) and the grade distribution in the list boxes on the right?

View 1 Replies

Is Microsoft Degrading VB To A Second Grade Language

Oct 6, 2009

Microsoft is trying to assure that it loves VB and VB programmers and wants them but in reality the opposite is happening. All code samples either from Microsoft or third party developrs portrait C# code. For the same reason C# programmers are challenging VB Programmers in every field.

View 5 Replies

VS 2010 Have The Code To Display The Min And Max Grade?

Feb 1, 2010

Is there any way to have my code display the min and max grade without having to re due most of it?

View 2 Replies

Enter In A Code For An Overall Letter Grade From A Percentage Given?

Feb 23, 2010

How do you enter in a code for an overall letter grade from a percentage given? I have a seperate box for the letter grade and a seperate one for a the percentage grade . I have it setup when an overall grade and possible grade is entered into boxes it will give me a grade percent but not a letter grade. How is that added? I am doing this for my course project but dont undersatnd the coding very well. I am just trying to pass the class.

View 1 Replies

Letter Grade Based On Test Scores?

Nov 19, 2010

I need someone with patience and can go through a solution with me from the Clearly Visual Basic book. I'm good with computers and can usually learn things relatively fast on my own time and in my own way, but I'm going to school for computer programming and, with certain things, I learn better with things explained to me rather than reading from a book. If someone has the time to go over this solution I'm doing and explain it to me in a way I'd have a better chance of understanding, I'd be truly grateful. I need a tutor, for lack of a better word. The lab I'm doing is from the Clearly Visual Basic book and the instructions are:

Code an application that displays a letter grade based on the averages of three test scores. Code the application using a function to determine and return the letter grade. If the average is at least 90, the grade is A. If the average is at least 80 but less than 90, the grade is B. If the average is at least 70 but less than 80 the grade is C. If the average is at least 60 but less than 70, the grade is D. If the average is below 60, the grade is F.

[Code]...

View 17 Replies

Call A Function To Calculate The Average Grade For The Class?

Apr 4, 2012

Write a program that reads in a set of grades for a class.The program takes in the number of students in the class from the user. When the Get Grades button is clicked the program then reads in a grade (0-100) for each student using an inputbox. The program should then display the percentage of students who pass and the percentage of students who fail.The program should call a function to calculate the average grade for the class. Then finally the result is then displayed.

Public Function GetPassRate(ByVal intGrade As Integer) As String
Do Until gradeCounter >= NumericUpDown1.Text
If intGrade >= 40 Then[code].......

View 7 Replies

Application,using A Function To Determine And Return The Letter Grade?

Jun 3, 2011

I have been struggling with my programming class from day one. I still can't seem to grasp the complete logic on how to write code. Anyhow, I have an assignment due that I am stuck on. Here is the assignment:

In this exercise, you code an application that displays a letter grade based on the average of three test scores. Open the Grade Solution (Grade Solution.sln) file, which is contained in the ClearlyVB Chapl8Grade Solution folder. Code the application,using a function to determine and return the letter grade. If the average is at least 90, the grade is A. If the average is at least 80 but less than 90, the grade is B.If the average is at least 70 but less than 80, the grade is C. Tf the average is at least
60 but less than 70, the grade is D. If the average is below 60, the grade is F.

You will be developing the code for the function on your own. Below the Public Class frmMain line, insert this function header:Private Function CalculateGrade(ByVal testScore1 As Decimal, ByVal testScore2 As Decimal, ByVal testscore3 As Decimal) As String

In the function, declare variables for the average score and the letter grade. Calculate the average, use IF/Elself statements to determine the letter grade, and return the letter grade. Create a subprocedure for the Click event for the btnDisplay button. It should call the CalculateGrade function with three arguments ( the three test scores from the text boxes), and display the returned value in the lblGrade box.

[Code]...

View 3 Replies

Declare Variables For The Average Score And The Letter Grade?

Apr 18, 2011

I am taking an online class and I am having trouble getting my solution to work. My assignment is as follows: In the function, declare variables for the average score and the letter grade. Calculate the average, use If/ElseIf statements to determine the letter grade, and return the letter grade.

Create a subprocedure for the Click event for the btnDisplay button. It should call the CalculateGrade function with three arguments (the three test scores from the text boxes), and display the returned value in the lblGrade box.I have looked all over the internet and have had no luck finding an example to look at I am taking an online class and I am having trouble getting my solution to work. My assignment is as follows:

In the function, declare variables for the average score and the letter grade. Calculate the average, use If/ElseIf statements to determine the letter grade, and return the letter grade.

[Code]...

View 7 Replies

Letter Grade - Stack Over Flow Exception Was Unhandled

Nov 11, 2009

Private Sub btnExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExit.Click
Me.Close()
End Sub

[CODE]...

My code will only let me typ one number into the text box and then it brings me back to the code and says "stack over flow exception was unhandled.

View 5 Replies

Using Parallel One-dimensional Arrays To Calculate A Letter Grade?

Jul 27, 2011

The exercise prior to this one had us use two parallel arrays that store a letter grade (A, B, C, D, F) and the minimum points needed for each grade. The user input the points earned by the student and the program shows their letter grade. It took a minute, but I got that one done, and it does what it's supposed to do.This exercise has us modify that exercise to ask for the (via InputBox in MainForm Load event) total points possible. The grade is then determined by percentage of the total points possible. For instance, if x is the user input, an "A" would be 90% of x.

View 4 Replies

VS 2005 Display Only The Students Records With A Grade 85 And Above In All Subjects??

Jul 30, 2011

I have the following fields in my table:

English
Math
Science
Computer

[code].....

How do I get to display only the students records with a grade 85 and above in all subjects?

View 14 Replies

Averaging 15 User-input Grades And Then Telling The Letter Grade

Jun 5, 2011

It is meant to average 15 user-input grades and then from there I have to provide the letter grade that corresponds with the average percent. I understand how to provide the corresponding letter grade, but I don't understand how to get the average. I've tried putting it into arraylist format

View 4 Replies

VS 2010 Display A Grade Based On The Number Of Points Entered?

Nov 1, 2011

I need to display a grade based on the number of points entered. store the min and grade in a 2d array here's my code that I have currently:

Dim strGrade(,) As String = {{"0", "F"},
{"300", "D"},
{"350", "C"},

[code]....

View 12 Replies

VS 2010 Storing Grades Into An Array & Output Average / Letter Grade

May 13, 2011

"I need to create a program that will allow the user to enter in 10 test grades from a class. I need to store these grades into an array, and use a loop to add up the total. Then I'll need to output the average, and the letter grade for the average using:

90 - 100 A
80 - 89 B
70 - 79 C
60 - 69 D

Below 60 F"

That's all it needs to do. Here is some code that shows you that the only thing I know how to do is (allow the user to enter in 10 test grades from a class.) The rest I'm so lost on and have a crappy instructor. This assignment is due tomorrow, but the instructor is not available over the weekend.

Here is my This is all I have:

Dim MyNumbers(9) As Integer
Dim Total As Integer
Dim i As Integer

[Code]....

View 9 Replies

VS 2010 Roster Listbox Into The Grade Listbox?

Mar 15, 2012

I have this code which lets you choose a class, then enter 3 names into the roster listbox...the problem im having is with the btn grades...im using a nested loop but cant figure out how to get all 3 names into 3 seperate inputbox prompts to input the grades...right now its only showing the first name entered...how do you get the code to loop and go through whatever amount of students entered in the roster listbox into the grade listbox.

[code...]

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved