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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started