Question: table [ [ StudentID , Name,Age,Gender,ProgramID ] , [ 7 9 1 , table [ [ Stephanie ] , [ Brown ] ]
tableStudentIDName,Age,Gender,ProgramIDtableStephanieBrownFemale,BCSShannon Dawn,Female,BAGeoff Berg,Male,ARETAndrew Schilling,Male,BSCGary Sang,Male,DAAD
Time left ::
Note: There is a StudentDataSet with a Student table, a StudentTableAdapter, a StudentBindingSource, and a StudentDataGridView control on the form.
Note: There is an Average query, named Average, that returns the average age of the student from the Student table.
Note: There is also Max query, named Highest, that returns the highest age of the student from the Student table.
Write the code you would place in the AverageButton click event on your form to call the Average query and the Highest query and display in a DifferenceLabel, the difference between the highest age of a student and the average age.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
