Remember that calculator lab we just did? Guess what! We're going to refactor it!! YAY!!!
Make the following modifications to your calculator program. First, add the new Math functions we learned in this chapter (all of them) to your form. Next, put the Formatting options into a ComboBox to give the user choices about how the answer should be formatted (leave the normal option available, too).
You will also add two RadioButtons labelled "Degrees" and "Radians" that the program refers to when using one of the trig functions, and convert as necessary to stay within the expectations of the user.
Keep the TextBox for rounding answers. And as always, design a useful and proper interface, and make sure you're using good software engineering practices.