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


ADVERTISEMENT

Tutorial 10.12 Class Average Application In Visual Basic 2008 3rd Edition Code

Apr 5, 2012

Need code for 10.12 on page 217 it's based on toutorial 10, been looking at it to long and can't figure out how to make it work.

View 2 Replies

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

Call A Function To Calculate The Average Grade For The Class?

Apr 4, 2012

Write a program that reads in a set of grades for a class.The program takes in the number of students in the class from the user. When the Get Grades button is clicked the program then reads in a grade (0-100) for each student using an inputbox. The program should then display the percentage of students who pass and the percentage of students who fail.The program should call a function to calculate the average grade for the class. Then finally the result is then displayed.

Public Function GetPassRate(ByVal intGrade As Integer) As String
Do Until gradeCounter >= NumericUpDown1.Text
If intGrade >= 40 Then[code].......

View 7 Replies

DB/Reporting :: Include An Average In A Column Where The Average Ignores Zero Values In A Report Cell?

Jun 15, 2010

I want to include an average in a column where the average ignores zero values in a report cell where the column may have

17
19
0

[code].....

I want 16, not 11 so (17 + 19 + 12 + 13 + 19) / 5 not (17 + 19 + 0 + 0 + 12 + 13 + 19) / 7 Something like this if it would work.

=SUM(Fields!fieldname.Value) / Count(iif(Fields!count_cycle_per_hour.Value >= 0,Fields!fieldname.Value,0))

Essentially just average everything in the column NOT a zero?

View 4 Replies

Calculating Exponential Average With Out A Simple Moving Average

Sep 8, 2009

I'm working on a function to return a exponential average and there are a lot of examples of exponential moving averages but they all start with a moving average that is just the mean as a lead in to calculating the continuing moving average. I needed just a exponential average of a value set. After Googling my Bing off I still haven't seen anything so here is my attempt at a basic exponential average. Is this correct? Are there any errors? I have seen some text about adding a smoothing value to change the curve of the exponential average but not how that would be implemented.

[Code]...

View 5 Replies

Array Calculating Min, Max, And Average Output: Min, Max, And Average?

Mar 26, 2012

I put comments on the average output since I kept getting error messages about that. My out keeps saying:

Maximum value: 33
Minimum value: 33
what am I doing wrong?
Option Explicit On
Option Strict On

[Code]...

View 2 Replies

Displays The Average With An Appropriate Message Before The Average"?

May 10, 2011

I'm in a computer science class, and we are writing simple programs using Visual Basic 2008. I am really inept when it comes to this, as I have never done it before. I need to write a program that: "Asks the user for 5 numbers and computes the average. It then displays the average with an appropriate message before the average."

I have been really close with this, but I can't get the numbers to add up, then divide by 5, and display a pop up message.

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

C# - Calling A Method In A FACTORY Class When Application Is Closed / Disposed Without Using Application's Dispose() Method

Mar 28, 2012

I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:

[Code]...

View 2 Replies

IDE :: Excluding Forms To Convert A Window Forms Application To Class Library Application

Jan 16, 2012

I am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.

View 4 Replies

Using A Class In A Web Application?

Jun 8, 2009

new to classes so forgive me if this is a stupid question.I created an Employee Class. The class has all the important information about the employee. I have a Log In Page. When the user "Logs In" on the Log In page the Employee Class is used to use the UserName and PassWord entered on the Log In screen to collect all the information about the employee from the database and then it takes all that information and puts it into the Employee's Class properties. Once this is done the Application moves on to another web page. I need to be able to use the Employee Information through out the web application usages. What is the BEST WAY to use the employe class through out the applicaton?If you say that Caching is then can you give me an example of how to best Cache all the employee info so it can be used through out the application?

View 1 Replies

Using Class In Web Application

Jun 8, 2009

I created an Employee Class. The class has all the important information about the employee. I have a Log In Page. When the user "Logs In" on the Log In page the Employee Class is used to use the Username and Password entered on the Log In screen to collect all the information about the employee from the database and then it takes all that information and puts it into the Employee's Class properties. Once this is done the Application moves on to another web page. I need to be able to use the Employee Information through out the web application usages. What is the best way to use the employe class through out the application? If you say that caching is then can you give me an example of how to best Cache all the employee info so it can be used through out the application?

View 2 Replies

Create An Application For A Class?

Sep 24, 2010

I'm trying to create an application for a class buy I'm having a hard time. I have started it but I don't really know how to implement the message box or calculations

Here is the question Here is the code I have so far

Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
' declare
Dim diameter As Decimal
diameter = CDec(txtDiameter.Text)

View 5 Replies

Use C# Class In Web Application (not In Website)?

Jul 16, 2010

I have a Class file which is written in C#, I want to use this class in my Web Application which solution is in vb.netf I place this C# class file either in root folder or App_Code folder, it does not allow me to create object, show syntax error, and intellesence is not working for this object.

View 8 Replies

Build A Useful Class And Implement It In An Application?

Apr 16, 2009

I am trying to build a class. I am having a difficult time conceptualizing how a class is built and how it works. I want to be able to build a USEFUL class and implement it in an application.

View 1 Replies

C# - Call .NET 4.0 WPF Class Library From 2.0 Application

Apr 8, 2011

I have an application written in .NET 4.0 that i compile into a DLL file. I want to be able to use this DLL file in a Windows Forms .NET 2.0 application. I don't need the application to really interact much, except just passing a couple string values to the 4.0 DLL. The DLL is pretty much a bunch of Windows which i converted to UserControls and i just need to be able to reference them to display the UserControls from the 2.0 application without having to use a different exe and having to package them separately.

What is the best way to do this? Because when i try to add the reference to the DLL to the 2.0 application, it gives me and error saying the DLL is built in a newer version of .NET so i can't do it that way. Is this where a COM object would come in?

View 2 Replies

Cannot Publish Application - Class Not Registered

Sep 8, 2010

I have developed an application in VS 2010 and now need to deploy it accross 10-15 PCs. I am publishing to a server where the other PCs will download it from. Only the PC I developed it on successfully installs the application. The others install it but it will not run. As a test, I installed it from the server on to the PC I developed it on, which worked fine. What may be causing it to install but not run on the other PCs? Also, I tried copying the visual studio solution to another PC and installing it locally but when I try to debug on any other machine, I get errors with the auto-generated code that deals with the controls that appear on my form.

The Errors are:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Cannot get the file path for type library "00460180-9e5e-11d5-b7c8-b8269041dd57" version 1.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))Vb7TestApp
The referenced component 'AxDSOFramer' could not be found.
The referenced component 'DSOFramer' could not be found.
All references from the project on the other machine are present so this is not the issue. The form will also not load in design mode. instead I get the class not registered error.

View 3 Replies

Class Library Vs. Windows Application?

Sep 28, 2010

Here is code in a form that is called from the "main" form:Imports

System.Data.SqlClient
Imports
ClassObjects
Imports

[Code]...

frmOdyssey is the main form, from which frmSearch is called. After the above processing, I want to go BACK to frmOdyssey to process the FilFilterGrid sub on the Grid defined on frm Odyssey. I will be assigning a new DataSource for the Grid, which will be "selected down" by the strFilter. The above code works with no issue whatsoever in "Windows Application" mode. However, if I switch to "Class Library" mode, I get
an error on the last line of the last Sub, telling me "Reference to a non-shared member requires an object reference". If I uncomment the "Dim f As New frmOdyssey" line, and change the "frmOdyssey" to "f" on the next line, the error goes away, but then the process doesn't work, because the "select down" does not happen. I don't know why, except that "logically" I don't want a "new version" of the frmOdyssey. I want to update the existing form.

View 8 Replies

How To Create User Class For Application

Jun 22, 2010

I have a desktop application designed (VB.NET 2008 and SQL2005) which consists of user login and some access level for the users.The user class which i have classified are :

1. Administrator
2. Operator
3. Report User

This user has got a few access in my application. I have got stuck how to create a user class and give access level for this class and map those class to the users.

View 4 Replies

Integrating Java Class To Be Used In Application

Apr 13, 2012

I have been asked to create a project in vb.net which needs to integrate a java class created by Apple (Autoingestion.class) to pull sales records and so on.I found out a couple of questions here on stackoverflow but none of the answers given worked for me when trying to integrate this java class in my .net application.For example this question seemed to be what I really needed but when trying to compile this java class (I decompiled it first using Java Decompiler), it generally throws some errors.All I need is to use this class in my application to invoke a method.Does anyone know how to pull this out without much ninja-ing?

View 1 Replies

Share An Instance Of A Class Across The Application

Feb 8, 2012

I am creating a Windows application using VS 2008. This has a MDI Parent form that hosts multiple MDI children forms. I have a login form that authenticates the user and creates an instance of a user class. This has information such as UserID, Name etc. I would like this instance available to other windows. How would I implement this functionality?

View 2 Replies

'Class Not Registered' Error Comes While Debugging Application

Apr 21, 2010

i were working in Windows xp. last week I changed my OS to Windows 7.The project i have done in Vb.net(2008) . While running class not registered error comes. In another computer its works well. Why it comes.

View 1 Replies

.net - Create VB6 Application Using A Class In A DLL, Then Swap Out That DLL After Build?

Nov 17, 2011

so my question is relatively simple, can I create VB6 application that references a class in a dll, and then substitute that dll for another at runtime?Now my intial guess is... no chance in VB6.

So my thoughts turned to a VB.net interop dll. Could I do it in here, and then call the interop dll from the VB? but I'd be happy if someone knew differently.The only thing that I think would actually work would be DI in .Net, but I'm limited to .net 2, or 3.5 at a big push, so I dont know if that is possible.

I have a dll that a specific site uses, but we dont want to ship that out to everyone. Instead, we want to build a clone dll which just has the interfaces setup so that the VB6 build will complete.When it gets to the site that needs it, they want to replace the dummy dll, and drop in their version instead.

Note: We do use RegFreeCOM when its gets installed, so I do have the manifest files that I could play around with if needed.

View 2 Replies

Accesing Variable Application From Class Library

Nov 5, 2010

I'm trying to acces an application variable from my class library

i.e : my varaible contain the connection string initailized in application start method

Application("ConnectionString") = System.Configuration.ConfigurationManager.AppSettings("ConnectionString")

View 3 Replies

Class Library Getting Settings From Own App.config NOT The Application's?

Jun 2, 2009

I'm having trouble with my application settings and I'm wondering if anyone else has seen this.

I have a Librabry with a connection string. In the project for the library it has its own app.config:

<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="OBInfrastructure.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>

[Code]...

View 1 Replies

Convert Java Class To Vb 2008 Application?

Oct 29, 2009

I wrote a Java class that parses a bpel text file and then returns a count of the number of occurences of certain words. I wanted to convert it to VB2008 Forms application, so that its results are displayed in a TextBox and not on the console. The problem is that VB2008 lacks Scanner and StringTokenizer classes, which are in my current Java class. Am not sure how to get the same functionality (or better) in VB2008. Can someone out there help to convert this class.

[Code]...

View 1 Replies







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