Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Test Score Avearge and Drop the Lowest Score
Author:
Dax Modi
E-mail:
Click to e-mail author
Submitted:
2/10/2010
Version:
VB 2008
Compatibility:
VB 2008
Category:
Databases
Downloads:
3060
Button on "Calculate Average" for below: Use the following test data to determine if the application is calculating properly: Test Scores Averages Test Score 1: 90 Average: 86.60 Test Score 2: 80 Test Score 3: 70 Test Score 4: 60 Test Score 5: 50 2) Button on "Drop the Lowest Score" Figure how take out lowest score (50) Give average of 90, 80, 70, 60 (TestScore1 + TestScore2 + TestScore3 + TestScore4 + TestScore5 - m) / 4 Code: Dim m as Double = Math.Min(70, 60) m = Math.Min(TestScore1, TestScore2) m = Math.Min(m, TestScore3) m = Math.Min(m, TestScore4) m = Math.Min(m, TestScore5)
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement