The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 314 Weeks Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Hello this is usingmicrosoft visual for c#, i need help in the following work please....
Â
This project is a simple Windows application that allows the user to enter two values and then select whether the application should add, subtract, multiply, or divide the input and output values that return back to the user.
The application must contain two textboxes, three labels, and four buttons. The first textbox should have a label that identifies it as the first number. The second textbox should have a label that identifies it as the second number (i.e., "Number 1", "Number 2").
Then, add four buttons. Each button should contain the text that describes its associated operation (i.e., "Add," "Subtract," "Multiply," or "Divide").
You should also have a label that displays the result the user performed.
Add event handlers so that when the user clicks the associated button, the program performs the required calculation. This is easy to do. Click on the button control in the form designer.
For example, if a user enters 1 in the "Number 1" textbox and 2 in the "Number 2" textbox the result .5 displays in the label. (Think about what type you should use to hold the value returned back to the user.)
For simplicity, only allow integers to be input into the number textboxes. Use the int.TryParse function to read the value from the textbox and convert it to an integer. If the TryParse function returns back false, then display a message box that states, "Please enter a valid number." (Hint:Â This can be done by using the MessageBox.Show() function.)
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly