Chat with us, powered by LiveChat Programming-Create a Calculator - Wridemy

Programming-Create a Calculator

Create a graphical calculator with buttons that can add, subtract, multiply, divide, +/-, Sin, Cos, Tan, clear and Modulus.

Write a method for each of these calculations that will accept the needed incoming numbers and return the calculated value.

  • Please note the call to these methods will occur when = is pressed.
  • You will only need 1 textbox to input numbers and display the results.
Key Requirements for the Unit 4 IP:
– Your program must be a Windows app (not a Console app) in C#
– There is no Word document with this app (no essay, charts, etc)
– You MUST submit the entire project in a ZIP
– You may NOT download and modify a calculator program you found elsewhere (any such attempt will produce a grade of zero)
– You may NOT base your calculator on a tutorial you found on the Web (best way: follow the general approach outlined in the video)
– You may NOT include extra functions in your calculator that are not required by the instructions
– Menus, tab controls, and multi-form apps are NOT allowed
 
Regarding Modulus in the instructions, the operator for modulus is the percent symbol (%). If I say 4%2 then I'm telling the computer to divide 4 by 2 and give us the *remainder* (if there is one).
 
Regarding the +/- requirement, this simply changes the sign on any number in the textbox (a positive number becomes negative; a negative number becomes positive). To see an example, see the Windows calculator. The easiest way to accomplish this in your program is to multiply the input times -1.
 
The Clear command should set all the variables to zero as well as the textbox.
 
Aside from these issues, probably the trickiest aspect of this program is how to trigger which math operator you want the calculator to use. The video shows how to do this using a global variable.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Wridemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order