VS 2010 Test Score Calc - Let The User Add Scores To The List

Feb 8, 2012

I'm not sure where I'm going wrong with this. it's supposed to let the user add scores to the list, then calculate the total, average, and count. However, it doesn't let me add more values to the list. Any help whatsoever would be awesome! Keep in mind, I am new to VB and programming languages, and was just playing around with code hoping for any sort of positive result, and therefore some of the code may not be necessary, or make sense. Here's what I have now:

[Code]....

View 2 Replies


ADVERTISEMENT

Test Scores / Have An Average Score?

Dec 6, 2009

I have made it so my code will print out the average score of all the test as one. but for each student i need to have an average score.

Public Class frmMain
Structure TestScores
Public decTest1 As Decimal
Public decTest2 As Decimal

[code].....

View 5 Replies

Create An Application That Allows A User To Enter Three Test Scores Each For Three Students?

Sep 30, 2009

I am a new user to VB and I am having difficulty with one of my assignments. The assignment states that to create an application that allows a user to enter three test scores each for three students. The application should calculate each student's average test score and assign a letter grade. The application should prompt the user for each student's name and three test scores.

[Code]...

View 3 Replies

Create A Program Which Promps The User To Enter An Unlimited Number Of Test Scores

Jul 7, 2011

Create a program which promps the user to enter an unlimited number of test scores. The program should show the high score and the low score. You should use a loop of your choice within this program. The program should look similar to the one below:

View 3 Replies

VS 2010 Array - Small Report Card Project - Pull 5 Students With Each Student Having 5 Test Scores A Piece

Jan 13, 2012

I'm basically trying to do a small report card project. I only need to pull 5 Students with each student having 5 Test Scores a piece. The full Code of what I have for the submit button is below. I have actually 3 questions.

1. I always seem to have trouble with them unless I initialize them when I dim them. Is there a better way than below

2. The below code works really well for Student 1 and all 5 test scores. Rather than do that code 5 times though, what is the best way for me to basically state that IF dblStudent1(intMax) = 4 Then Change dblStudent1(intMax) to dblStudent2(intMax) etc.

3. Would this be better suited towards a multidimensional array ?

Private Sub btnEnterGrades_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterGrades.Click

Dim strStudentNames() As String = {" ", " ", " ", " ", " "} ' Holds the 5 Students Names
Dim intMax As Integer = (4) ' Place Holder for Student Number

[CODE]...

View 8 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

Write A Program That Will Allow Input Of Three Test Scores

Nov 25, 2010

I am working on an assignment for my Programming Logic and Design class. I also noticed a couple other similar posts but after going through them I still have an issue. I was suppose to write a program that will allow input of three test scores, average them then display a letter grade in a box. At this point the only thing that is being displayed is "F". [code]

View 3 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

Accumulate Test Score Data?

Oct 17, 2010

I have been working on a class project for sometime now. Currently stuck and need some help. Project is due today, so I'm desperate for some help. Please see attached project file.

[Code]...

View 1 Replies

Accumulated Test Score Calculator?

Oct 8, 2010

i just got another assignment with no instruction on how to do it. I have no prior programming skill so these assignment are really hard for me, [URL]..

View 6 Replies

Calculation Program For Test Score

Feb 24, 2009

I'm new to VB and I'm doing a calculations program for test scores. I got everything setup for my clear and exit buttons but not sure what I have to put in the calculate button code for it to calculate. Here is what I have so far.

Public Class Form1
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblTestScore5.Click
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[Code] .....

View 13 Replies

How To Separate Test Score To Do Calculation

Nov 4, 2009

I have to take information that is entered in a text box such as name, test score then send it to a list box then from there I have to split the test score and calculate the grade. I have been trying to find information on how to separate the test score to do the calculation.

View 2 Replies

Test Score Accumulator Application

Nov 30, 2010

I am currently going through Murachs Beggining .net programming book. I am trying to implement an application for an exercise at the end of chapter 5. The application specification is as follows.

[Code]...

View 2 Replies

Posting Lines From A Text File (test Scores) Into An Array?

Oct 31, 2011

I need assistance with posting lines from a text file (test scores) into an array. From there, I'll have to average the test scores, find the standard deviation (without using the built in function) and assign grades based on the test scores' deviation. I have already written the code for the user to search and upload a text file. And I should be able to do the standard deviation of the array, if someone can help give me an example of how to send the text file to array and average the lines of the array without using the built in math functions.

[Code]...

View 15 Replies

User Can Supply A List Of Proxies To Test?

Feb 27, 2011

I was wondering if somone one could point me in the right direction on this.Basically I am making a proxy testing program. A user can supply a list of proxies to test. What i want to be able to do is have them be able to specify how many threads they want to run. Then have the program go through the list testing each one using the amount of threads supplied. Really not sure even where to start on this. Threadpooling?

View 2 Replies

VS 2005 - Detect The Calc.exe Running And Then Disable My Button Event To Call Calc.exe?

May 2, 2009

I have a button on vb form and its click event will call Windows to run "system32calc.exe" which is work great. My problem is I do NOT want to have multiple calculators running even if i click the button more than once. Is there any way to detect the calc.exe runing and then disable my button event to call calc.exe?

[Code]...

View 6 Replies

Find The Lowest Test Score In The Array And Display It In The Associated Label Using A DoLoop?

Jun 7, 2011

My objective is to find the lowest test score in the array and display it in the associated label using a DoLoop. However, I don't think I was to use the ForNext stmt.Could I have used the DoLoop without the ForNext? ' displays the lowest test score stored in an array

Dim testScores() As Integer = {14, 82, 94, 77, 11, 95, 38, 62}
Dim lowest As Integer = testScores(0)
Do
For subscript As Integer = 1 To testScores.Length - 1

[code]....

View 3 Replies

Adding Value To Items In Text Box From List Box In Order To Calc?

Jul 16, 2011

adding value to items in text box from list box in order to calc

View 3 Replies

Prompt User For # Of Quiz Scores To Input?

Mar 1, 2011

Am to prompt user for # of quiz scores to input, should then create an array large enough to hold those number of scores, set up loop that allows user to enter approp. # of scores, all scores will be integers, each score should be placed in the array.

[Code]...

View 1 Replies

List Box Displaying A Football Score

Jan 14, 2009

So we are just starting to learn about list boxes in vb1. In this program the user enters up to 10 scores and after each input (decInputScore) the total score so far has to be calculates (decTotalScore) and then of course when all the scores are entered, at the bottom the final score it calculated. (decFinalScore) (decFinal). I'm not exactly sure what I'm doing wrong, I can't get it to calculate the correct total scores after each input, and I'm getting 0 as the final score. Here is a visual of what the form should look like: the black square is (btnEnterScore) a pop up message box comes up in which the user enters each value when clicked.[code]

View 1 Replies

Searching For Highest Score In The List Box?

Jun 3, 2012

my list box consist the person's name and his score that get from another button.. and I wan to search for the highest score only in another button... what codes should I code in??

this code is for add the details into list box

"Dim name As String = txtname.Text.ToString
Dim total As String = lbltotal.Text.ToString
Dim x As Integer
Dim duplicate As Boolean = False

[Code]...

how can I search from the list box to find the highest number onli?

View 5 Replies

VS 2008 Score Board, Having A Sorted List Sort On Integer?

Oct 5, 2010

I keep track of a score system for all users in a sorted list;

dim Scores as new sortedlist(of string, integer)

I can easely increse points for a cirtain person by;

scores("peter").value += 1

Now I need to display a top x list of the users, if users have the same score, it should sort alphabetically on the name. Of course it's also possible that users have the same score.I've already tried to make a new sorted list with as key the score, and added to that score the username. Later when displaying the scores, I've replaced the username with nothing. The only problem in this solution is that the numbers are sorted on asci value which has this order:

0
1
10
2
3
4

Also, if you make a sorted list like this:

dim Scores as new sortedlist(of integer, string)

You can't have two people with the same score... So, there must be something possible with the iComparer to sort on integers right?

View 12 Replies

Add The Score To Label Control That Keeps Score For Character X

May 10, 2010

I am writing a noughts and crosses game and I want to be able to keep score everytime each character wins a game, I have written a sub routine to handle this but it seems to count up in 5's and 10's??I have used a global variable like this Dim i As Integer = 1 then declaired that variable in my sub like this i += 1 (I thaught that this would just add 1 everytime X won a game)then used the variable i to add the score to the label control that keeps the score for the character X.My question is, am I using the correct syntax (+=) for the variable.

View 2 Replies

VS 2010 User Control "Test Container"?

Dec 4, 2010

I remember in VS 2005 that when I was working on making user controls, if I removed the default Form1 and ran debug, that some sort of test container popped up. The window had a drop down menu to the right with some other properties so that I could choose from it the control I wanted to test. Choosing it would show the control to the left (in the main area) so I could test it, all without placing the control(s) on a form.

However, I cant find how to use this in VS 2010. I tried deleting Form1 and leaving nothing but by custom controls, but it just causes errors.What is the name of this window, and how can I get to it in VS 2010?

View 2 Replies

How To Test 1st List Box If It Has Items More Than Other List Box But By One Item

Nov 15, 2011

I want to know how to test the 1st list box if it has items more than the other list box but by one item, here is what i have: If lstInvisibleTv. Items.Count > lstInvisiblePc.Items.Count Then it works good if the lstInvisibleTv list box is greater than the other list box by one but it also works if it is greater the other one by one or more which I do not want. I want it to work just by one.

View 3 Replies

VS 2010 : List All User Profiles On A Computer?

Nov 20, 2011

I have vbscript code that enumerates user profiles from this registry path:

HKLMSOFTWAREMicrosoftWindows NTCurrentVersionProfileList.

How can this be done using Visual Basic 2010? Is there a class or method that I would use to accomplish the same thing or would I have to read the registry path into an array as you do with vbscript? My application will be ran on the local computer just so you know this information is not being gathered from across the network. I have been looking for awhile and haven't found anything that will work so far.Once I have the user profiles from the computer, I will populate this list into a drop-down combo box.

View 2 Replies

VS 2010 - How To Save High Score In Application Settings

Jan 17, 2011

I am working on a simple game and wanted to save the high score in application settings. Research upon failure has shown that user is read/write but the program doesn't store it between runs.

View 7 Replies

VS 2010 - Reset Button Not Changing Previous Score

Jan 30, 2012

I made a bowling program, it adds 5 scores from 1 player and then calculates the average. Problem is with my reset button, when i click reset it doesn't change "Enter Bowling score for game #1" to 1, how do I change it to 1?

<code>
Public Class frmLab2
'This is a program calculates the average scores of 5 bowling games using array.
Dim scoreCount As Integer = 1
Dim intcount, total As Double
Dim i As Integer = 0
Dim arrscores(4) As Double
[Code] .....

View 2 Replies

VS 2010 User To Be Able To Select A Name From A List - Use Textbox Or Combobox?

Aug 10, 2011

I have a form on which I want the user to be able to select a name from a list. The list needs to be populated from an table in my dataset. I'd like the user to begin typing and have an autocomplete append select type feature let them zero in on the person they want as they type. My question is, what type of control would work best for this?

View 2 Replies







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