# Answer to Question #13907 in C# for Sifsilva

Question #13907

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.

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.

Expert's answer

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.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment