Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use visual studios language C++ to creat Form1 and Designer Form for question below 3. Form has three textboxes, two for input and one for

Use visual studios language C++ to creat Form1 and Designer Form for question below

3. Form has three textboxes, two for input and one for output. Form also has five buttons, marked, +, -, *, /, C respectively.

User enters integers into the two textboxes, and clicks one of the four buttons (+, - , *, /). The third textbox shows the result of the corresponding operation. For example, if user entered 10 into the first textbox and 2 into the second textbox, and clicked the * button, 20 will display in the third textbox.

For division, the result should display with three digits after the decimal point. (This is graded based on your code, not on the number of digits actually displayed, which may vary depending on the inputs)

The C button will get the form ready for the next set of inputs.

You can assume that the user will never enter 0 into the second textbox.

No error checking is expected.

You can assume that the user will not leave a textbox empty.

Layout of the controls - you can choose.

If the user presses Enter after typing in the two inputs, the sum should be displayed.

If the user presses Esc, the form should get ready for the next set of inputs.

Enter and Esc refer to the Enter key and Esc key on your keyboard, respectively.

You may attempt simple methods without risking any loss of points for errors in how you create and use them.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago