Question: I need help with a visual c# assignment: write a program that prompts the user for a numeric value and then calculate the square root
I need help with a visual c# assignment:
write a program that prompts the user for a numeric value and then calculate the square root of this number. You will display the result.
Create the user interface. The user interface should include a TextBox, Button, and two Label controls on the main window. Place them anywhere in the window.
do not use Math.Sqrt or any square root method (or math library)
Test the application using the following data:
| Input | Expected Result |
| 25 | 5 |
| 0.00000001 | 0.0001 |
| 10 | Message box appears with the message "Please enter a positive number" |
| Name | Message box appears with the message "Please enter a double" |
| 10 | 3.16227766016838 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
