Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 30th, 2003, 10:30 AM
cvd4311 cvd4311 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Maryland
Posts: 3 cvd4311 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to cvd4311
Thumbs down Coding



Private Sub btnComputegrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnComputegrade.Click

If (txtTestscore.Text >= 100) Then

txtFinalgrade.Text = 100

ElseIf (txtTestscore.Text >= 90) Then

txtFinalgrade.Text = 90

ElseIf (txtTestscore.Text >= 80) Then

txtFinalgrade.Text = 80

ElseIf (txtTestscore.Text >= 70) Then

txtFinalgrade.Text = 70

Else

txtFinalgrade.Text = 60
End If

End Sub

This is the code that I have for my compute button. I need a code that would allow someone to put in test scores (numberic box) and then go to 2 group boxes for extra credit and choose one category for pts. none, average (3 pts), above average (5 pts). on time, 1 to 2 days late (-5 pts) 2 or more days late (automatic score of 0 to final grade). Then they would click on the compute button which the code is above and it would give final grade. Running into a problem or what to put for pts or no grade at all. Please help, have to turn this project in my saturday and also when I hit the reset button instead of resetting test scores and so on it resets the actual name of the labels. Don't know where I went wrong on that either.

Reply With Quote
  #2  
Old July 30th, 2003, 11:23 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,834 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 30 m 30 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
1) Your subject title in unacceptable. You can read the sticky thread at the top of this forum for more information on how to post a question.

2) Don't post in this forum for request on doing homework assignments. This doesn't help you, if you are stuck, then first go to your peers, then to your instructor, then if all else fails then ask a question here, but be prepared that it may not be answered because it is homework.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Coding


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway