Question: IST331, Spring 2022, Penn State-Abington Lab: Create a C#/WPF Windows App - Calculate the quadratic formula Our first C# WPF app will be about calculating
IST331, Spring 2022, Penn State-Abington Lab: Create a C#/WPF Windows App - Calculate the quadratic formula Our first C# WPF app will be about calculating the Quadratic formula. What we did together in class. o Created 3 input textboxes. o Create 2 output textboxes to display the results. o Have two buttons:, Exit and Calculate. o We gave all of the controls, Names (i.e. btnExit) Learned how to create Event Handlers (functions that handle events). o Button Click() event o Text_Changed() event. Requirement for student to finish this lab. 1. Create 3 _TextChanged() event handlers to validate the 3 input textboxes. a. Each one will call the private function, talked about below. 2. Create a Button_Click() event handler for the Calculate button. a. This is where you will do all of the calculations. b. Check for invalid data (divide by 0 and a negative value under the radical). 3. Write a private function to validate the 3 input text boxes. a. Validate if field is empty (display error msg if empty). b. Validate if field has invalid data. (display error msgs if invalid) c. Do this for all three input fields. d. If data is invalid, disable the Calculate button, otherwise enable it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
