![]() |
Any C# PRO can help me 3 simple coding?
^_^The code is very short one that I remember I teacher show me before but I cannot remember. This may be long to read but the code is really simple plz here me Im new to C#. There are 3 steps needing to change the program.
1)*Never disabling the add grade button* :cool: remove the code from the btnAdd_click event handler so that the Add Grade Button is not disabled after entering 10 grades. 2)*Summing the grades in the ListBox.* :eek: modify code in the btnAverage_Click event handler so that inGradeCounter is incremented until it is equal to the number of grades entered. Use lstGrades.Items.Count to determine the number of items in the Listbox. The number returned by the Count property will be zero if there are no grades entered. Use an if selection statement to avoid division by zero and display a message dialog to the user if there are no grades entered when the user clicks the Average button. 3)*Calcualting the class average* :confused: Modify the code in the btnAverage_Click event handler so that dblAverage is computed by using intGradeCounter rather than the Value 10. I had the statment in short for some of the main code Code: C#
|
Re: Any C# PRO can help me 3 simple coding?
Quote:
Quote:
Quote:
You cannot ask for the code solution as thats against the TOS of G4EF. Thanks Shabbir |
Re: Any C# PRO can help me 3 simple coding?
Quote:
I also need to know how the intGradeCounter works to be able to count the variable number? Im new to this software so I may need to know more. Thanks for your understanding. |
Re: Any C# PRO can help me 3 simple coding?
Quote:
Quote:
|
| All times are GMT +5.5. The time now is 06:20. |