Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more:
i want to make a form that contain 5 text box.
for first 4 text boxes take input. and the textbox 5 shows the result.
conditions:
the form contains 3 buttons:
1. it shows the total of marks obtain.
2. it shows the percentage of marks obtain but if the number input in any text box is less than 33 it shows fail
3. it shows the grade:
if total>=60 print a; if total>=45 print b; if total>=33 print c else fail; but it number obtain in any subject is less than 33 it also shows fail.
Posted
Updated 16-Nov-17 1:23am
Comments
Sandeep Mewara 26-Jan-11 4:04am    
No effort
merano99 31-Jul-21 6:53am    
You ask for "simple marksheet program in c#".
Why do you post this with C and C++ Tags?
Please remove the Tags that you dont mean.

First of all, you can't use C, C++ and C# in the same program. Your tags show how clueless you are. Second. this is a homework assignment. IF you cna't do it, talk to your teacher, or quit your course. Don't ask us to do it for you.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Jan-11 21:38pm    
So true.
--SA
I don't see the point of using a TextBox for the fifth item (Total). If you are not going to have input, why not use a Label.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Jan-11 21:41pm    
Henry, your note would be very valuable if anything in this question had any sanity. In this context, you try in vain.
Respectfully,
--SA
Thomas Krojer 26-Jan-11 3:39am    
@Henry: I do not agree. It makes totally sense for me to use a TextBox. If his program will not calculate correct, he still can calculate by hand (or windows calculator or excel ....) an enter the data. Then he will make a screenshot, and present it to his teacher. It´s ok, so our jobs are save *g*

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900