How To Create Form That Calculates QB Ratings

Sep 19, 2009

I am creating a form that calculates QB Ratings but its not coming out right. The formula is found here

My code:
Dim a, b, c, d As Integer
a = (Comp.Text / Att.Text * 100 - 30) / 20
b = (Yards.Text / Att.Text - 3) * 0.25
c = Tds.Text / Att.Text * 20
d = 2.375 - (Int.Text / Att.Text * 25)
Rating.Text = "QB Rating:" & ((a + b + c + d) / 6) * 100

Number set 1:
22 complete
36 Attempt
2 touchdowns
0 Interceptions
229 yards
It should come out 98.0 but comes out 100

Number set 2:
16 complete
37 Attempt
0 touchdowns
3 Interceptions
205 yards
It should come out 27.4 but comes out 33.3

View 6 Replies


ADVERTISEMENT

Create A Program That Calculates The Amount Of Quarters?

Oct 28, 2010

VISUAL BASIC 2008. Program Description: Create a program that calculates the amount of quarters, dimes, nickels, and pennies are needed from an amount of change (entered in pennies). The program should use the largest coins possible (for example, fifty cents should use two quarters, not five dimes, fifty pennies, etc.)

I don't want the code already written out, I need somebody to walk me through making a code. Also, this is my first class dealing with computer programming so all we've learned so far is declaring variables and how to label objects, the simple stuff. I'm at a loss at how to start because a quarter is worth 25 but the program is supposed to show how many quarters once a user enters the amount in cents.

View 5 Replies

Create An Application That Calculates The Total Cost?

Apr 26, 2011

Create an application that calculates the total cost of a stay in a hotel in the North Carolina mountains. The application should accept the following in terms of input:Month of Check in Length of Stay (in Nights) Number of Persons Room Service Charges Phone Charges Other Charges If the check in occurs in November-March the rate is $89/night. April-August is $99/night and September-October is $109/night. $10/night should be added if more than 2 people are in the room. More than 4 people are not allowed in the room, and a traveler can only request 1 room. A 15% tax should be added to the room rate and 10% tax added to all room service and other charges. No tax will be added for phone charges.

The program should use a function to calculate the total charges for the visitor's stay and output it to a label. There should be buttons or menus to calculate the total, clear the form, and exit the application.At least one of the button should call a sub procedure which performs its function. I don't understand how to set this program up and I'm not sure what it means.

View 4 Replies

Create An Application That Calculates And Displays A Customers Bill?

Apr 21, 2010

Using VB2008 I need to create an application that calculates and displays a customers bill.Business customers must have one connection.

Heres the data

Residential customers:
Processing fee: $4.50
Basic service fee: $30
Premium channels: $5 per channel

[code]....

View 8 Replies

Create An Application That Calculates Body Mass Index?

Nov 10, 2009

I am working in Visual Basic 2008 and am trying to create an application that calculates body mass index. I have the entire form complete as well as much of the source code, but I am having trouble creating the code for input validation. On the form I have a text box for entering weight and a text box for entering height, which are both used to calculate the body mass index. Therefore, both text boxes input information cannot be negative or an illegal character ( $, @, !...) The input validation is supposed to present a Message Box that displays something along the lines of "Please enter numeric values" when input values are illegal characters "Please enter a positive number" when input values are negative "Invalid Entry" when input values equal 0

Here is my code:

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
' Declare local variables

[Code].....

View 3 Replies

Create An Application That Calculates Registration Fees For A Conference

Apr 24, 2009

create an application that calculates the registration fees for a conference. The general conference registration fee is $895 per person. The is also an optional opening night dinner with a keynote address for $30 per person. additionally, the optional preconference workshops listed in table 7-16 are available. [code] When the user clicks the select conference options button, it should display the conference option form the conference options allows the user to select the regular conference registration, the optional opening night dinner, and an optional preconference workshop.(the user cannot register for the optional events, however, without selecting the conference registration of $895.) when the close button is clicked the conference form should be removed form the screen and the total should apper on the main form. [code]

View 1 Replies

Create An Application That Calculates The Occupancy Rate For Each Floor?

Oct 29, 2009

The hotel has 8 floors and 30 rooms on each floor. Create an application that calculates the occupancy rate for each floor, and the overall occupancy rate for the hotel. The occupancy rate is the percentage of rooms occupied, and may be calculated by dividing the number of rooms occupied by the number of rooms.When the user clicks the "Complete Report" button, a loop should execute and iterate 8 times. Each time the loop iterates, it should display an input box for one of the hotel's floors. The input box should ask the user to enter the number of rooms occupied on that floor. As the user enters a value for each floor, the loop should calculate the occupancy rate for that floor, and display the information for that floor in the list box. When the number of occupied rooms has been entered for all the floors, the application should display the total number of rooms occupied and the overall occupnacy rate of the hotel.I have some of the code but I'm not sure which way to go now!

[Code]...

View 14 Replies

Create Application That Calculates The Occupancy Rate For The Hotel?

Jul 6, 2011

The program is a hotel occupancy form The Hotel has eight floors and 30 rooms oneach floor. I'm supposed to create aapplication that calculates the occupancy rate for the hotel. Theoccupancy rate is the percentage of rooms occupied, and may becalculated by dividing the number of rooms occupied by the number ofrooms. For example, if 18 rooms on the first floor are occupied, the occupancyrate is: 18/30 = .6 or 60%. The form has two out labels called totalrooms occupied and overall occupancy rate that holds two output text boxes todisplay the numbers
its only three buttons Calculate report,close, and exit Its obvious what the exit buttons issupposed to do the clear button should clear all the controls on the floor

Now the complete report button is supposedto loop and iterate eight times. Each time the loop iterates, it should displaya input box for one of the hotel floor. The input box should ask the user asksthe user the user to enter the number of rooms occupied on each floor. As theuser enters a value for each floor, the loop should calculate the occupancyrate for that floor and display the information for that floor in a list box.When the number of occupied rooms has been entered for all floors theapplication should display total number of rooms occupied an overall occupancyrate for the hotel. (the hotel has a total of 240 rooms total)

[code]...

View 6 Replies

VS 2010 - Evaluation With Star Ratings

Feb 13, 2011

I have a system created last year called the "Faculty Performance Evaluation System" in which the students will evaluate their instructors according to their performance. Now I'm trying to change that and the questions are to be loaded from the database. Here are my options for displaying the questions and the rating stars:

1. Using lots of labels placed in the form as well as images(stars)But this will consume lots and lots of codes and the number of questions is limited. Also, I can't do a control array in vb.net unlike in vb6 so it will be very long...
2. Using listview/datagrid?- is it possible to create this project with a listview containing the stars in the 2nd-6th column?, If so, how?

(It's ok to lose my background but the stars can't. Since using this kind of control will make my number of questions unlimited)- then, if I'm to choose this option, how would I save the results into my database? (fields: studnum, category, quesnum, rating)

View 2 Replies

VS 2008 Scrape Movie Ratings From Imdb From A Movie Title Name?

Nov 2, 2010

imdb scraper for my movie organiser. Ok so how do you scrape movie ratings from imdb from a movie title name.

View 22 Replies

Make A Program That Calculates The X's?

Dec 25, 2010

I'm trying to make a program that calculates the x's for you using the abc formula. Now i have made it, it gives a value of "NaN" as output. I don't know where i went wrong, so I hoped one of you could help me with it.

Here is the code I made:

[Code]...

View 7 Replies

When Does The Computer Calculates Enumeration

Nov 30, 2009

when does the computer calculates Enum?in other words wiill this 2 be Exactly the same?

dim a = 1
dim a = myenum.value_equates_to_1

i've got a feeling its faster when we do not use enum, just wanted to make sure

View 15 Replies

Programm Which Calculates KiloGramm Price In VB6

Aug 26, 2009

I have programm what calculates KiloGramm price.It works so that if I enter the amount(in KG) and price then it calculates the Kg Price.
But it calculates wrong when I insert "," not "." . My programm code is so:

[code]...

View 8 Replies

Forms :: Calculates The Registration Fees For A Conference

Apr 24, 2009

how can i calculate the registration fees for a conference?

the general conference registration fe is $895 per person. There is also an optional open night dinner with a key note address for $30

fee
introducion to E-Commerce $295
The future of the web $295
Advance Visual Basic $395
Network Security $395

the application should have to forms...which i ready made...

when the user clicks the select conferece button the form shown which i made should apper<<<i got that part done =)

. the user cannot register for the optional events, however without selectiing a conference registration of $895 ..when the close button is clicked this form should be removed from the screen and the total registration fee should apper on the main form<<<<<<< this one is the one i need to do

[Code].....

View 2 Replies

MDI Parent Client Size Calculates Incorrectly?

May 4, 2010

[URL]...The link above is a thread showing the application I'm working on. (2008 Pro)I have since created an MDI Parent form which holds my 16 camera forms. What I am having trouble with is dividing the MDIParent's Width and Height by 4, to display 4 equal height/width camera forms within it.

I've tried all the available properties (Rectangle, ClientArea, etc) and none seem to calculate correctly.Using Me.Width and Me.Height ALMOST worked, but again, it was about an inch too skinny and short.

What do I need to do in order to retrieve the exact size of the MDIParent's Client Area?

View 6 Replies

Building A Program That Calculates The Number Of Books By Points?

Oct 16, 2011

I am building a program that calculates the number of books by points.Ex: 1-3 books read are worth 10 points, 4-6 are worth 15 and > 6 are worth 20. The issue I'm having is getting it to calculate the the first 3 books, the 2nd 3 books and then the > 6.Ex: User inputs 8 books read. It should display 115 in the label.

1. I'm using an If statement (should I be)
2. Could I use a decimal for the > 6?
Ex: intTotalNumberOfBooks = (intTotalNumberOfBooks * intFirst3Books) *#D

I know this is something simple and it's out of VB 101, but it is my very first programming class and my professor uses a copy paste method during class.

View 10 Replies

Created An Application That Calculates And Displays The Quarterly Payment?

Sep 27, 2009

I have created an application that calculates and displays the quarterly payment on a loan but when i run the application the paymnet amount is showing with () around the amount I can't figure it out.

[Code]...

View 3 Replies

Creating An Application That Calculates Render Times For Maya?

Sep 21, 2010

I'm creating an application that calculates render times for Maya. I kinda got bored of coding all the technical stuff so I started to mess around with the interface. I'm trying to create a combobox color picker.

View 5 Replies

VS 2008 Design A Program That Calculates Hashes Of Files?

Apr 16, 2009

Okay, that's not a big deal... I'll implement FileStreams and read bytes performing operations on them. The problem is that if I do this, the program will hang until the hashes have all been calculated. I want the program to show the hashes calculated so far and a progress bar. I know I need to implement this using threads and interrupts, but how, P.S. Any example code, simply for showing the progress of any operation, and involving a thread,

View 1 Replies

Write A Program That Calculates A Bill For Pizza Shop?

Oct 12, 2009

I am trying to write a program that compute the bill for a pizza shop and I cannot figure out what I am doing wrong when I build it there are no errors but when I debug it it will not run [code]...

View 4 Replies

Write A Program That Calculates Amount Due And Provides A Summary Or Rentals?

Nov 16, 2009

I have to write a program that calculates amount due and provides a summary or rentals.Members get 10% off. The program is to calculate the Total rental price then how much the discount is and then the total amount due. Inside a Group box called summary I need the program to display the number of customers (captured each time a member number is enentered) and the total rental income after the discount. I have the follwoing Text Boxes:

In Group Box 2:
memberNumberBox
moviesRentedBox

[code].....

View 1 Replies

Application Function To Calculates The Total Cost Of A Stay In A Hotel

Nov 29, 2010

Create an application that calculates the total cost of a stay in a hotel If the check in occurs in November-March the rate is $89/night. April-August is $99/night and September-October is $109/night. $10/night should be added if more than 2 people are in the room. More than 4 people are not allowed in the room, and a traveler can only request 1 room. A 15% tax should be added to the room rate and 10% tax added to all room service and other charges. No tax will be added for phone charges.

The program should use a function to calculate the total charges for the visitor's stay and output it to a label. There should be buttons or menus to calculate the total, clear the form, and exit the application. At least one of the button should call a sub procedure which performs its function. [Code]

View 1 Replies

VS 2010 : DataColumn.Expression Which Calculates Difference Between Two DateTime Values?

Jan 13, 2011

I have a DataTable with two DateTime columns: "start_time" and "end_time".Now, I want to add a third column that calculates the difference between the two DateTimes. But I can't seem to figure out how. I've tried to set the .Expression-value to "start_time - end_time", but it says that "-"-operator is not allowed on DateTime.

View 4 Replies

Creating A Program For My Workplace Which Stores Hours Worked, Calculates Pay And All That Stuff?

Jun 21, 2010

I'm creating a program for my workplace which stores hours worked, calculates pay and all that stuff.Problem being, the database will be accessed through the network and i want to be able to select the database from an openfile dialog on first use to locate the database. On every program start up it then would have the database location stored within the program itself.

View 1 Replies

Exiting Sub - Program Calculate Fibonacci Sequence Which Calculates Numbers Correctly

Feb 2, 2010

I'm trying to create a program which will calculate the Fibonacci Sequence which calculates the numbers correctly however, there are a few problems.

1. When using a Do While...Loop the program becomes non responsive.

2. Kind of dealing with the program becoming non responsive; I am unable to stop the process by forcing the sub to Exit.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Operation.Text = "Calculating...."
EStop = False

[CODE]...

View 3 Replies

Program Which Calculates Cost Of Spent Electric Energy For A Number Of Days

May 12, 2010

I am making a program which calculates the cost of (Let's say) Spent Electric Energy for a number of days,defined by the user..I have 2 Date Time Picker and x (The average energy spent in a day) where x must be an integer and it is defined by the user x * (DateTimePicker2.Value - DateTime Picker1.Value) = y (The value to be paid for a number of days)

View 4 Replies

Visual Basic Console Output - Calculates The Monthy Mortgage Payment

Jan 19, 2009

I have already posted this assignment . The assignment is to create a VB.NET program that calculates the monthy mortgage payment for a $200,000 mortgage with an interest rate of 5.75% for 30 yrs. The program compiles and the interface window comes up but when you click the payment button nothing happens. fix this program because my other 4 assignments are based on this progam. The Visual Studio project file is attached.

Public Class Form1

Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click

[code]...

View 6 Replies

VS 2010 : Write A Program That Calculates And Displays The Depreciation Of A Businesses Assets?

Apr 14, 2011

I need to write a program that calculates and displays the depreciation of a businesses assets.I need the program to read a comma-delimited input file containing the names of multiple assets, their purchase prices, the years of their purchase and the number of years that the assets are expected to be useful.I need to use this straight line depreciation formula- (purchase price / number of years of usefulness) * (current year �purchase year)

View 7 Replies

Generate A Category Report That Calculates The Percentage Of The Tickets Whereby The Ticketstatus Are Closed And Opened?

Apr 14, 2009

i need to generate a category report that calculates the percentage of the tickets whereby the ticketstatus are closed and opened.I have to get the percentage of opened tickets by:(number of open tickets/total number of tickets) * 100 with that, i came up with a function in the class

below is the code:

Public Function DBSelect_TicketCategoryOpen() As DataTable
Dim local_dbConn As New SqlConnection
Dim local_sqlCommand As New SqlCommand

[code]....

View 4 Replies

VB Coding - Program That Calculates Minutes Worked Times Pay Rate Equals Amount Of Weekly Pay

Mar 16, 2011

I am trying to build a program that calculates the minutes worked times pay rate equals amount of weekly pay this is what I got but it doesn't calculate

CODE:

View 3 Replies







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