Program That Fills A 2D Array With Quiz Scores?
Jan 27, 2011
I want to write a quick program that fills a 2D array with quiz scores. Consider there is 5 Students and each have completed 3 Quizes. I want the program to display a class average as well as a student average.
I've gotten as far as a nested for/next loop but I am stumbling over the language for accumulating and displaying the average.[code]...
View 2 Replies
ADVERTISEMENT
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
Feb 4, 2012
I'm working with referenced VB6 DLL's. The problem is that the results of a method/function call are not the same. Below the code examples:
First VB.Net Dim Validations() As String myErr = myEntry.ValidateLine(Validations)
When validation fails, the string array Validations is filled with the error description string. I've tried to accomplish the same in C#:
private string[] valArray = null;
sdkError = sdkEntry.ValidateLine(valArray);
Does anyone have an idea why I can't get C# to fill the string array? Additionally, the function in VB is called with ref to a System.Array ValidateLine(ref System.Array ValErrors), perhaps it has something to do with this?
View 2 Replies
Nov 17, 2009
I'm making a program where the user fills out info, then they click one button and the program takes a screenshot of the form, then they click another button and the screenshot gets saved. I'm having a couple problems with my code though. For one, I'm trying to make the screenshot go to an invisible picturebox to make saving easier, but I cant figure out how to make the image go to the picturebox. The other problem is that I want it to automatically save without showing the dialog, but so far, it won't save.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TakeShotOfScreens()
Picturebox1.image=allscreenscapture
CODE:...........................
View 4 Replies
Mar 19, 2009
I'm trying to make a quiz application with Visual Basic at the moment. I want to write a routine that asks five questions to which the answer must be either Yes or No. It must add up the number of Nos and if the number of Ns is less than two then print out "pessimist", otherwise print out "optimist". So far this is the design of what I've done. [URL]. However, I have no code which I've produced on my own.
Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class
I really don't know how I can kind of add up all the results from each individual question, seeing as radio buttons are used.
View 2 Replies
Apr 3, 2009
I'm trying to make a quiz application with Visual Basic at the moment. I want to write a routine that asks five questions to which the answer must be either Yes or No. It must add up the number of Nos and if the number of Ns is less than two then print out �pessimist�, otherwise print out �optimist�.I'm only at the very beginning stage of the program, I've created the design of it but I'm not too sure whether the code concept for the radio buttons is right. How can I expand on this?
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numberOfNos As Integer = 0
[code]....
View 8 Replies
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
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
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
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
Apr 17, 2011
i'm making an twitter app. but i'm having a problem..In my listbox there is a list of username's i have to sent a tweet.this is the code i'm using:
For i As Integer = 0 To ListBox1.Items.Count - 1
ListBox1.SelectedIndex = i
Dim value1 As String = ListBox1.SelectedItem.ToString
Dim value2 As String = value1.Replace("http://twitter.com/", "")
[code]....
but it doesn't work..it goes super fast and only fills in the last listboxitem.i want now that every 10 secs a new listbox item is filled in in the status box on twitter and posts the tweet.
View 2 Replies
Apr 16, 2009
I want to change the color of the progress that fills the progressbar, its default is green but i would like to change it to red or any other color if possible.
View 9 Replies
Dec 28, 2009
I want to auto fill a range like this:
In Sheet1!A1 i have the formula "='Sheet2'!D1"
In Sheet1!A2 i have the formula "='Sheet2'!H1"
In Sheet1!A3 i have the formula "='Sheet2'!L1"
Now the Sheet1!Ax increments with +1 value; The Sheet2!D repeats again with D, H, L but only with a +4 to all 3 of them
[Code]...
View 2 Replies
Feb 23, 2010
Im trying to make an application that fills out personal information.
Such as Name, Birth of year, etc
View 2 Replies
Jan 19, 2010
I have one table from where two comboboxes get their drop down lists, showing info that has been entered into the table (boxes are bound to the table columns I.E City (Box1) and Country (Box2). what I would like to do is if a city is selected in box1 then box2 will autofill with the country name.
View 3 Replies
Dec 7, 2011
how do you make a richtextbox scroll down automatically when text fills the screen so that the new line can be seen,
View 2 Replies
May 31, 2010
I've created a polygon shape and filled which fills blue on startup.Upon toggling a check box it should be filled yellow.It doesn't go yellow (unless i step through in debugging).
[Code]...
View 7 Replies
May 18, 2009
I am developing an application, for a university project, which is using GDI to draw a flag, my application is also equiped with an undo stack, which is, essensially, where the problem is, so what happens is: I push the draw button to draw a box, when I do that, the solution normally creates the box and stores the object to the undo stack; however, when I ask it to undo the box, and refresh the panel, it randomly adds, endless threads to the undo stack, additionally, everytime that I set the panel to refresh in the undo procedure, it affects the draw procedure; therefore, when I tell it to draw a box, it fills the undo stach with five threads at a time, sometimes, it fills it with much more than five, and sometimes it keeps filling up the undo stack, untill I stop the debugging proccess. This is my code:
[Code]...
View 9 Replies
Jun 21, 2010
I would like to create a quiz and wonder what is the best way.
1. Using a textfile to read in the questions/answer
2. Using radio buttons
3. Or something else you suggest?
View 2 Replies
Mar 25, 2010
I have a VB .NET (VS 2008) application which allows the user to drag and drop a xls file onto the form and a DataGridView fills with the xls sheet data. The user than can apply changes to the data or add entries. Data integrity is checked during the load into the DataGridView (duplicates are removed and invalid entries are filtered out). After doing all this the user can click a button and the data is uploaded to a SQL server (2008) DB. I have a primary key set up (row number) and I have a compound key in the SQL table.
It is all working beautifully. Now here is my question:
I want to check for duplicate entries (between SQL server and DataGridView data) before the data is uploaded and commited to the table. What would be the most efficient way to that?
View 2 Replies
Mar 31, 2011
I make a 2 questions and then 4 choices for each question..and the 4 choices is made up with radiobutton.. and 1 of the 4 choices is only the right answer..Computing of right answer in each question is the thing that I want to know, how to do..
View 1 Replies
Aug 11, 2009
I have created my own quiz for my aplication, but, a lot of people asked me , why can't the programe count right or wrong answers and one of them told me can you make a quiz that randomly selects questions?ok, I told them its all posible to make , but I actually coulndt make it working.So, usualy for a classic quiz I got the code to make a button go red if the answer is wrong, but I need the code line for the random question selection and the counting.I found some code but it didn't work,
View 3 Replies
Mar 11, 2011
I want to make a quiz that generates score and save in access 2007.
View 4 Replies
Sep 23, 2010
I am building a quiz application in .net just like on flash mini games, is this possible in .net? and what is the easiest way to create this? make moving objects, cartoon interface and etc. also, it is supposed to be a standalone application.
View 1 Replies
Mar 31, 2009
The Quiz is timed. Its result is in "m:s" format. How to make this result permanent, i.e. when the game is restarted the results would still be there?[cod]e...
View 5 Replies
Apr 2, 2009
Make a Quiz result sortable? Option Strict On[code]...
View 2 Replies
May 10, 2009
I need a multiple choice quiz but I've ran into some problems. So far i have 5 arrays: one for the questions and four for the answers. The question is displayed in a label and the answers on radio buttons. Problem one: I am using a random number generator to pull them but this allows them to be reused. How do I stop repeats. Problem two, my grading isn't always working.
View 3 Replies
Jul 13, 2011
I'm trying to create a quiz system and I have 200 question stored in question table.I have two quizID which is 1 and 2. Each quizID have about 100 questions. I trying to randomly select 50 question from the 100 question.
SELECT [QuestionID], [Title], [Answer1], [Answer2], [Answer3], [Answer4], [CorrectAnswer]
FROM [Question]
WHERE ([QuizID] = @QuizID)
ORDER BY NEWID()
View 1 Replies
Jul 14, 2009
i am begginer to vb.net can i know what procedures to be followed to create a online quiz in vb.net. i have to create a project.
View 1 Replies
Dec 9, 2009
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].....
View 3 Replies