| | |
Help Needed desperately! using 2005
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 5
Reputation:
Solved Threads: 0
Hey, I've never done any programming in my life and would greatly appreciate some help 
I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays the total in a label on the same application. When you click the button it also has to give a grade in another label underneath the 'totalscorelabel', such as 'High distinction' if the scores above 20 or so.... I know the second part uses an ifstatement except im not quite sure how to use them...
Thank you so much for any help!

I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays the total in a label on the same application. When you click the button it also has to give a grade in another label underneath the 'totalscorelabel', such as 'High distinction' if the scores above 20 or so.... I know the second part uses an ifstatement except im not quite sure how to use them...

Thank you so much for any help!
specify more your problem and condition :
- you didn't give a condition for the result. how the result can show "High Distinction" (<20) or other result (> 20 = "?", > 50 = "?" ).
- how far you was tried??
"We only give homework help to those who show effort"
try to write code with this pseudo code :
i know you can do this Friend
- you didn't give a condition for the result. how the result can show "High Distinction" (<20) or other result (> 20 = "?", > 50 = "?" ).
- how far you was tried??
"We only give homework help to those who show effort"
try to write code with this pseudo code :
VB.NET Syntax (Toggle Plain Text)
on button click event pseudo code : labelTotal = val(text1.text) + val(text2.text) + val(text3.text) if labelTotal.text < 20 then Result.text = "High Distinction" else if labelTotal.text > 20 and labelTotal < ??? then Result.text = "????" .... etc..etc End if end of button event
i know you can do this Friend
Last edited by Jx_Man; Mar 7th, 2008 at 7:46 am.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Mar 2008
Posts: 5
Reputation:
Solved Threads: 0
•
•
•
•
Hey, I've never done any programming in my life and would greatly appreciate some help
I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays the total in a label on the same application. When you click the button it also has to give a grade in another label underneath the 'totalscorelabel', such as 'High distinction' if the scores above 20 or so.... I know the second part uses an ifstatement except im not quite sure how to use them...
Thank you so much for any help!
Fail:
Awarded to any student who scores either
-a total score less than 15
- less than 5 in two or more assignments
o High Distinction:
Awarded to any student who has both
- A total score greater or equal to than 23
-Not scored less than 5 in any assignment
o Pass:
- Anyone who has not scored a Fail or High Distinction
Heres what i have in my disasterous If Statement:
NOTE: label6 = Total Label7 = Result
If Label6.Text >= 23 And TextBox1.Text Or TextBox2.Text Or TextBox3.Text = 5< Then Label7.Text = "High Distinction"
Else If Label6.Text 15< Or 'Less than five in two assignments --> Have no idea!!!'
Then Label7.Text = "Fail"
Else If Label7.Text = "Pass"
•
•
•
•
Fail:
Awarded to any student who scores either
-a total score less than 15
- less than 5 in two or more assignments
o High Distinction:
Awarded to any student who has both
- A total score greater or equal to than 23
- Not scored less than 5 in any assignment
o Pass:
- Anyone who has not scored a Fail or High Distinction
this a condition if not wrong :
* Fail
- TotalScore < 15
- (Ass1 + Ass2) < 5 or (Ass1 + Ass3) < 5 or (Ass2 + Ass3) < 5 or (Ass1 + Ass2 + Ass3) < 5
* High Distinction
- TotalScore > 23 --> it could be 24,70, 100 or greater
- Ass1 or Ass2 or Ass3 > 5
* Pass
- Anyone who has not scored a Fail or High Distinction???
how it could be??not scored a Fail or High Distinction??
- in condition of High Distinction, TotalScore > 23 (-> 24, 50, 70, 100 ... and greater than 23) so what a condition for pass? whether who get HighCondition is pass?
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Similar Threads
- Please Help Me!!! (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: SHA-256 in .NET
- Next Thread: Identical items vb 2005
Views: 486 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2005 2008 access account application array arrays basic bing button buttons c# center check checkbox code convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog filter ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output panel passingparameters picturebox picturebox1 port position print printing problem read remove save searchbox searchvb.net select serial server shutdown soap sorting survey syntax table tcp temperature text textbox timer timespan toolbox trim update user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio2008 web webbrowser winforms wpf year






