Enhanced Student Poll Application?

Oct 29, 2011

I'm reviewing a midterm visual basic exam question that I got didn't code correctly and I cannot figure out what I'm doing wrong.

The problem is:"Figure 7.4 contains an array of survey responses that is hard-coded (1-5) into the program. Suppose we wish to process survey results that are stored in a file. First, create an application that enables the user to write survey responses to a file. Use StreamWriter to create a file called SurveyResponses.txt and write each response on a separate line. Modify the code in fig. 7.4 to read the survey responses from SurveyResponses.txt by using StreamReader. THe program should continue to read responses until it reaches the end of file. The results should be output to a text box."

Note:the output of figure 7.4 is as follows and the frequency is incremented when a user submits a response.

Rating Frequency
1
2
3
4
5

My issue is that I use StreamReader and StreamWriter to allow the user to select a location to save the file and to open the file. I believe VB must automatically create a file and automatically open it, which I cannot figure out how to do it.

View 1 Replies


ADVERTISEMENT

Enhanced Class Average Application?

Nov 4, 2011

Allow the user to enter a set of grades then calculate and display the total of the grades and the class average...simple enough. Create an application that enables the user to select a file in which to store grades. The application should allow the user to write any number of grades into that file and it should write one grade per line. (lost me there) Next, modify the application to allow the user to specify the location and name of a file containing grades. The application should read teh grades from the file, then display the total of the grades and the class average. My first question is on the Gui. I will have a calculate button that will display the grades entered, (how do I enter multiple grades at one time?) Or do I have the user input one grade at a time? When the calculate button is hit the number of grades entered should appear off to the side and an average score should appear. Is there a way to enter multiple grades at a time and are they entered and separated by a comma? Then there should be a button that stores this information. Should this button say save and retrieve files? Or should I have 2 buttons one to save and one to retrieve?

View 15 Replies

Add Student Average Information To Properties Of Student Records Created In Previous Sub Procedure?

Apr 19, 2010

I have created a class called Student, with five private variables: [code] My main form is divided into a number of different sub procedures. In one of them, I used a streamreader to take the first name, last name, and phone numbers of a list of records in a text file called PersonalInfo.txt. It seems to work just fine. [code] I have another, separate sub procedure in which I read a different text file containing the "averages" for the students. The first average from Averages.txt belongs with the first student in PersonalInfo.txt. The second average goes with the second student.. How do I add the student average information to the properties of the student records created in the previous sub procedure? [code] I realize why this wouldn't work, but I can't figure out how I could use my counter to reference a specific student.

View 4 Replies

ASAP VB 2010 - Randomly Select A Single Student Out Of The Student Array Based On Their Subscript Number

Mar 6, 2012

randomly select a single student out of the student array based on their subscript number. This will be accomplished by the following:

[Code]...

View 4 Replies

Designing A Student Application Form In VS2008 Project?

Mar 20, 2012

im currently designing a student application form in my VS2008 Project.Theres a lot of information that the end user needs to insert for eg, Applicants Info, Parenta Info, Medical history etc What i want is some advice on how i can design this? At the moment i have too many textboxes and comboboxes for the information that needs to be provided and im losing space on the application form. Do i split the form into different parts using tabs, ie tab for student, tab for parent etc or is there a better way?

View 1 Replies

Using Arrays To Display Poll Results ?

Nov 18, 2011

CODE:

I removed line numbers from your code, So now it is line 22. Dont put line numbers, they are auto generated frequency(responses(answer)) += 1

View 5 Replies

Writing That Polls Machines Every 40ms And Depending On The Result Of The Poll Sometype Of Action Is Taken?

Jan 13, 2012

I have an application that i am writing that polls machines every 40ms and depending on the result of the poll sometype of action is taken. i have each machine that is polled run in a separte thread. this all works fine.

what i want to add to it is to use a timer and either on a tick or elapsed time fire inside of each thread at lets say a 1 minute interval to update a file with stats about each thread and the machine it is connect to. for example below if a start polling 3 machines on com1 2 and 3 and poll them. machine 1 may have 102 copies machine 2 200 copies and machine 3 400 copies. i want a timer theat ticks every 1 minute that will fire within each thread and record those results

[Code]...

View 2 Replies

Enhanced Dental Payment?

Jan 31, 2011

IM TRYING TO MODIFY MY THREE CHECKBOXES,FLUORIDE,ROOTCANAL AND OTHER.

Public Class DentalPaymentForm
End Class
' handles Click event

[code].....

View 11 Replies

Check IE Enhanced Security Configuration Installed / Not On Server 2008 R2?

Aug 24, 2011

The code below checks whether IE enhanced security configuration installed or not on a server. this works for server 2003 but doesnt work on 2008 r2. it returns IE enhanced security configuration installed response when i know and have checked that its not.[code]...

View 8 Replies

Create An Enhanced Login Screen For A Windows Vista Computer

May 5, 2009

i want to create an enhanced login screen for a windows vista computer. On my laptop i am able to scan my finger to login instead of using a password. This fingerprint scanner is a program/process on my computer. If this program is able to detect a finger print being scanned and then act accordingly on the login screen, even when the user has not logged in yet, then what i want to do is possible.

All i want to do is create my own security/login screen, perhaps mine can replace the default windows vista one on my computer.

So here are my main questions:

1. How do i make my program/process run on the login screen, before the user signed in? (So i may use my own login program)

2. Depending on the anwser to question 1, how do i replace the default login screen?

View 4 Replies

Enhanced Time: Increasing Minute, Second And Hour On Button Click?

Nov 20, 2011

i need to add a increment hour and increment min button, here is the code :my ? is this how do i make the two new buttons work like code wise ?? this is attempt like 5 everytime ive played with the code and added buttons ive crashed the program?

Public Class TimeTest
Dim time As New Time() ' construct Time with zero arguments
' invoked when user clicks the Add 1 to Second button
Private Sub addSecondButton_Click(ByVal sender As System.Object,

[code]....

View 5 Replies

Add A Student's Name To A Combo Box?

Mar 16, 2009

My objective is to add a student's name to a combo box, in proper mixed-case, no matter how the user enters the name.

When any of the following examples are entered:

jones, carl
SMITH, IDA
bLACK, dEVIN
Johnson, Eric

[Code].....

View 3 Replies

Array Of My Student Class

May 14, 2010

I created a simple Class called Student.[code]And then I tried to create an array of Students called s. I'd like to do something simple with the names of one of the students like the following..[code]I know that I need to use the New keyword to create an instance for each s(), but I'm not sure where to put it. When I try it without the array it's easy.

View 2 Replies

Calculating Student Average Using For Next

Oct 12, 2011

The idea of this program is to calculate and find total and average for 3 Students automatically. That is when the first data is entered and click on button the total and average of first student should be displayed in listbox. And we should be able to enter second data. Bu the problem is it is just printing the first average and total thrice.

Dim a As String
Dim tot, avg, N As Single
Dim I As Integer
For I = 1 To 3
tot = Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text) + Val(TextBox5.Text) + Val(TextBox6.Text)
[Code] .....

View 1 Replies

Add Student With Multiple Information In Listbox 

Jan 5, 2010

i have to add a student to my listbox but with many informations for example i have many textboxs (textbox for the age of the student, textbox for the name of the student & ECT) how can i had one student with all these infromation(age, name, major) in the load form also when i click on the student in listbox it shows age in the textbox1, name in textbox2 & ECT add student with multiple information in listbox [form load], and when i click on the student in the listbox it shows the students infromation on each textbox like textbox1 age, textbox2 name it's all with visual basic language.

View 7 Replies

Code For Searching Through Student Records?

Jan 5, 2012

Ok I have a search Button that will search through a student table and produce the grades of all the stdents in a class room when I enter the class room number into a textbox(txtclass.Text). The results will be displayed in a DataGridView and also I have the average grade of the class displayed in another textbox(marks.Text).

My program runs fine but I would like to add more code so that If I enter a wrong classrom number into the search textbox and Search for it then I would like a messagebox to pop up and say that the classrom you have entered does not exist. .I have tried different if statements but none has worked for me so far.

[Code]...

View 5 Replies

How To Generate Student Number In VB 2008

Dec 29, 2011

how to generate student number in visual basic 2008 in this format. the year+date+in what number that the student is enrolled. example: 111201. where the year will change depend on the year that the student enrolled for the first time.

View 5 Replies

Make Student Positions In Class?

May 19, 2012

i am working on an examination system. the system has to compute the grades and position of each student per stream and per class.each class has got 4 streams. I save the studentsmarks in the database. i want the system to determine the positions of students and the position of each student to appear on the rtf.. report, for example:

Position in stream:4
Position in Class: 21

[code].....

View 3 Replies

Make Student Registration In VB 2008?

Jan 12, 2010

I'm trying to do a rigistration system using vb 2008..the system must have database in access must have search button to searh student name then whenever i click a student name it will automatically fill their name in a form...

View 2 Replies

Rank Student From Their Obtained Marks?

Jun 8, 2009

SELECT COUNT(StudentId) FROM firstterm where class='Nursery'

SELECT percentage, StudentId FROM firstterm WHERE class= 'Nursery' ORDER BY percentage DESC

this shows result like this[code]...

now in the form i put the 2 text box and and the buttoni take the number 10003 and click the buttonnow in the another text box i need to show that what is the position of the id number 100003 from the above figer it is in the third position

how can i make it through the click button so the the result comes on the front

View 9 Replies

Develop A Program Which Input A Student Details?

Jul 14, 2011

am looking to develop a simple program which inputs a students details and prints to the output,

View 3 Replies

Exercises To Advance A Student Programmer On Down Time

Aug 11, 2009

Currently on an internship from my CS degree, we have some down time and I'd like to spend it working through a series of problems (although none too large) that would advance my programming skills and allow me to dip my toes in a large breadth of different topics and areas. Unfortunately, everything I do must be done in vb.net on .net 2.0, without downloading any particular libraries.I've already worked through many of the "code-golf" tagged problems on here and the programming praxis problems posed by dailywtf.

View 7 Replies

Save Student Detailed In MS SQL SERVER Database?

Dec 4, 2010

I want to save student detailed in MS SQL SERVER database like names class..... But I have a form such that user can enter one student detailes and then press save. But I want now to allow to have like a spread shit (excel) and then enter all student detailes and when he press save all data are saved like data in name column go to the appropriate one in database>

View 1 Replies

MySQL Student Database Beginner SQL Employment Expectations

Apr 28, 2010

Student pursuing BSIT degree, employer expectations, entry level. I would like to solicit opinions from this forum as to what your professional expectations are as regards an entry level position in working in the database realm... I see many job opportunities that require a minimum of 2 or more years experience, how does one go about obtaining this experience (I have tried very hard to maintain a minimum 3.70+ GPA) but have ZERO work experience in this field... I spend non school time working in VB and SQL to try and increase my proficiency. I have considered postponing my job search until I obtain certifications from brainbench etc... Any criticism and or advise is welcomed... Again I have no experience in database other than undergrad work in class.

View 2 Replies

Priority Skills For A Newbie VB Student To Plan Training For?

Nov 2, 2009

I'm planning my road in VB training on my own at home using various books and online resources, like MSDN and book publisher support sites, etc. My initial goal is to become familiar w/the VB 2008 language but then to build upon that w/other skills like perhaps, ASP. Net, ADO .Net and so on. Maybe concentrate on WPF/XAML? My question is, where do I go next after initially learning the VB 2008 language? Not only that, what should my learning "list" look like, assuming it a good idea to "add" to the lot w/other VB skills? What's a "real world" learning plan look like in VB? Which should I consider to be "priority" core VB skills to learn after initially learning the VB language?What is a realistic VB skill portfolio look like?

View 7 Replies

Query - Table Of Student Information - Produce The Results ?

May 4, 2012

I have a table of student information. Each student has a contact date and a source of information.

I want to produce the results like this

CODE:

At the moment I am using this sql

CODE:

But my results are like this

CODE:

It is just putting the total not the seperate amounts.

View 1 Replies

VS 2010 Wage Calculator Error For New VB2010 Student?

Dec 21, 2010

I'm having an issue trying to get a wage calculator to recognize an overtime formula. The calculator has to have the overall function of figuring the gross pay, Federal Tax Withheld (15%), and the net pay based on the hourly wage and hours worked for the week. The issue I am having is the wage * 1.5 entry (underlined) where it sates it is not an array or a method and cannot have an argument list. If anyone can take a look at this for me and guide me as to why this error keeps coming up and what I can do to make sure it doesn

View 36 Replies

Any Webpage That Teaches Simple Stuffs That A Advanced To Intermediate Student

Sep 9, 2009

Btw do you know of any webpage that teaches simple stuffs that a advanced to intermediate student can learn from it like the home and learn? Cuz the home and learn is only the basic stuffs.

View 2 Replies

Create An Auto-incremented Student No.in Mysql Using Lyk 2006-141791?

Jun 25, 2010

create an auto incremented student no.in mysql using vb.net lyk 2006-141791

View 2 Replies

Specifying Student Standing Based On Their Total Mark / Respective Cours And Whole Course

Apr 11, 2011

I have a problem here, I need to specify each student standing based on their total mark, respective course, and whole course,(from datagridview) for example,[code]Eg result(output):

-studentA number two in thier course(2/3), but number fourth on the whole course(4/7)

-studentC number one in their course(1/3), but second on the whole course(2/7).

-studentE number one in thier course(1/3), and number one on the whole course(1/7)

View 11 Replies







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