Accumulated Test Score Calculator?
Oct 8, 2010i 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 Repliesi 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 RepliesI 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]...
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] .....
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 RepliesI 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]...
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].....
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]....
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]....
I need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test. The calculator can do one of two things:
1 - given an existing network and CIDR(mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.
2 - given an existing network and CIDR(mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.
I need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test.
The calculator can do one of two things:
1 - given an existing network and CIDR(mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.
2 - given an existing network and CIDR(mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.
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]...
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]....
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 RepliesHere's what I have so far. It is not incrementing in the loop as it should. Can anyone point out the wrong thinking?
Public Class frmMain
Dim lvi, lvi2 As ListViewItem
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.lstPopulation.View = View.Details
[code]....
I am a beginner of VB, I want to set up a timer to count the time when a programme is runing, but the programme has several pages.How can I make a continuous timer to count the time even though jump to another page?
View 13 RepliesI don't understand the error, Argument not specified for parameter 'test' of 'Public Shared Function TestThis(test As String)'.
Partial Public Class Form1
Shared Sub ReceiveCallback(ByVal ar As IAsyncResult)
Form1.Invoke(TestThis, New Object(){"test"}) 'error
[code].....
[code]...
and from VB6 project I reference to Test.dll but an error messege was appear A reference to Test.dll file could not be added (If I create VB NET project and reference to file Test.dll it OK )
Probably a dumb question, but can you write a unit test project in one language to test against another project in a different language?I'd like to translate one of our VB assemblies into C#, but want to build unit tests to verify the results. I've tried to set a unit test project up to do this, but I can't seem to access the VB code within a unit test... I can't figure out if I'm just missing/doing something stupid, or it really isn't allowed.
View 2 Repliesis there any way yo get the score of one player in counter strike? one of the player on the computer. not all the players. i know that when you are looking att server info, then you can see all the player and there scores. is there anyway to replicate that function?
View 14 RepliesI need to calculate the high score and am having trouble storing a value that represents the previous high score, and the comparator funcion.
Public n_sErrorTitle As String = "Entry Error"
'Count the number of entered scores
Dim intCount As Integer
[code]....
how can i save a high score in toolstrip textbox or listbox?
View 7 RepliesI've made a computer game in Visual Basic Express 2008 and my only remaining problem is to run a data table to keep a running track of the best score. To do this I've created a datatable form called BestScore.xsd. My first problem here is to recognize that it should will start off with nil values and I need to initialize it to zero. Next I need to update the score. I will need to save the score when I exit the game. (Does VBE automatically save the datatable or there a command here?). When I reopen the game program I want it to find my best score from last time.
View 2 Replies[code]I don't get how to go to the next question when the answer selected is correct, also how to load the progress bar and the score text box.
View 1 RepliesSo 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 RepliesI am having an issuse with weither i should make 15 different fourms or just make 15 text boxes three for each round plus creating something that would add the doubles and triples I do not know what to use for a code, I have just started programming. this is what i have tried to do.
CODE:
i am trying to read the score of windows Pinball but i have got a problem.When i read the score 1st time all work good but when i close down pinball and start it again it will not work i have to find the memory address again to make it work?
View 8 Repliesmy 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?
What I have is a database in a Windows Form (via tableAdapters etc., basically the default stuff VS adds). What I need to do, is add a very simple record of a name and score (the "place" is an auto-number). I have not even been able to tackle sorting the table, because I can not even figure out how to insert...
View 8 RepliesI am assistant soccer coach and my daughter is the score keeper, I am trying to create an app that makes it easier to keep track of the players score as well as the total and the kids names. So this is what I am considering...Since the numbers of kids is never the same since some miss games, I want to be able to enter in the number of players present and then ask the players names the exact amount of times my daughter previously entered as kids present. Then display the names in an array with a text box for each child to keep track of individual points scored and total points scored by each child. So in the end it would be nice to display each child with the amount of points scored, total individual points next to there name and total points for the team in a separate form. I assume I will need at least 3 forms, either a multi dimensional array for the names and the score, and possibly a user control to take in the players for the game.[code]...
View 12 RepliesI'm making a cricket project, and I'm trying to insert a bar graph that will update as I score the match, showing the total for each over. The code I have so far is below, at the moment I'm trying to draw the graph into a picture box, is this correct? Also, if the below code is ok, how do I call the sub?
Public Sub graph_paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles graph.Paint
Dim total(20), i As Integer
For i = 1 To 20
total(i) = over(i, 1) + over(i, 2) + over(i, 3) + over(i, 4) + over(i, 5) + over(i, 6)
[Code] .....