Listbox, How To Get Grade Scores Up
Mar 10, 2010Heres my code:
Dim num1 As Integer
num1 = Val(InputBox("Subject Name:"))
[code].....
Heres my code:
Dim num1 As Integer
num1 = Val(InputBox("Subject Name:"))
[code].....
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]...
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...]
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].....
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].....
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]...
I am trying to get this code to count the scores which are the same and tell how many students had the same score. I can get it to add 1 to it but I can not get it to tell how many students had the same score.
Private Sub displayButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles displayButton.Click
Dim scores() As Integer = {88, 72, 99, 20, 66, 95, 99, 100, 72, 88, _
[code].....
I want it to increment by 1.I have this code from net but I found hard to understand the first line :
If Decimal.TryParse(TextBox1.Text, userAnswer) Then
If answer = userAnswer Then
score += 1
TextBox2.Text = score
[code]....
I am completely new to VB ( and frustrated) and I need help with my code below What I am telling VB to do is to get the number in the txtScore, store it in an array ( no clue how to do this)Sum of all scores goes to the txtTotal. Then I need vb to count how many are stored in the array after that get the average by accessing the txtTotal divide by the txtScoreCt and show it on my txtAverage.
Dim Scores(100) As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
I am trying today to write a code that enters all the scores I enter in a textbox(txtscore). I think I almost have it but it will not work properly for me. Her is the the sub I am using to list this code. the array is called arrScore.
Private Sub btnEnterScore_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterScore.Click
Dim score As Integer = 0 'counting
'check for valid input
[code]....
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] .....
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]....
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].....
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]....
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 RepliesI'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].....
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 RepliesI 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 RepliesIs there any way to have my code display the min and max grade without having to re due most of it?
View 2 Repliesim developing an vb.net application that displays live scores for soccer. Is it a must that i must get the live score from the xml feed like looping through the "nodes" to get what i want to display on vb.net form? is it more customizable with xml? Somehow i saw some website provide the web link to add to site, is the link can be used in my form in order to serve my purpose?
View 4 RepliesI 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.
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 RepliesI'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.
I dont quite understand why this wont work i was hoping someone could help, I have got a noughts and crosses game and its all finished appart from the checkdraw sub routine i forgott to write in, so I wrote it out as below:[code..]
Now ScoreX and ScoreO are two variables declaired at form level, I use a very simaler routine for CheckWin and that works a treat. My problem is that when a draw is detected the message box comes up ok but no scores are added to the label control.
I am trying to create a high scores board - currently i was experimenting with just typing a number into a textbox and having it automatically order the numbers (in labels) from largest to smallest however i cannot get them all to work. either just the first and second (label) works or the second and third display the same number or the second decreases in value even though it shouldn't[code]...
View 7 RepliesI have a datagridview with two columns; one named Names the other named Scores. This is my code so far Dim hScore As String() = New String() {strName, lblPercent.Text}
[Code]....
What I want it to do is sort the scores by greatest value to least value, but the problem I'm having is that the scores are stored as strings so they are being read and sorted from left to right. My question is, how do I store the scores in a numeric array and place them in the same row as the name, but in the second column? The names and scores only need to be stored as long as the program is running so I don't want to add anything to the registry or create new files to store them.
I'm doing a game. I have a form I want to display the game scores on and another form I have that calculates the scores. How do I make variables work from the first form on the second?
Lets just call one form frmStats and the other frmMain, do you get what I mean?
I know this is very basic stuff dealing with arrays, I have been messing this for a while and I'm not getting anywhere.I have a file with a list of 20 number 0-100. I am trying to get a text box to display the number of scores above average when a button is clicked.Using the same file I also need a list box to display the number of A's, B's, C's, D's, and F's, when another button is clicked.
View 10 RepliesI'm making a Pong game and currently when the game ends the scores are show in a lable and a message box pops up saying which of the two players won.
However the problem i am having is i want it so that the player who won has their score saved to a database so i need to know how to get the score from the Lable to save to the database but then also have a way possibly a message box ? where the player can input the desired username. so the database would have two collums username and score where score is updated automaticaly and the username is entered by the player.
I'm working on a video game in VB .NET and I was wondering if there is any way to store its high scores online.If there is any way to do this, that would be great, but otherwise, I'd like to know what would be the best method of locally storing high scores on a single computer.
View 1 Replies