Write an application that will accept two decimal values in textboxes and calculate the sum, the difference, the product, and the quotient .Must have two buttons.
When button Calculate1 is clicked
• The two numbers are stored in variables
• Call four methods Add,Subtract, Multiply and Divide to perform the calculations
• Display the results on labels
When button Calculate2 is clicked
• The two numbers are stored in variables
• Call one method Calculate to perform calculations
• Display results on labels
Methods Add, Subtract, Multiply and Divide use call-by-value parameters and return a double value
Method Calculator uses call-by-value and call-by-reference(Ref) parameters to return thevalues.
1
Expert's answer
2012-08-30T08:26:31-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment