Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Project 4-1: Calculate area and perimeter . This is a C sharp2015 programming For this project, youll create a form that accepts the lengthand width

Project 4-1: Calculate area and perimeter . This is a C sharp2015 programming

For this project, you’ll create a form that accepts the lengthand width of a rectangle from the user and then calculates the areaand perimeter of the rectangle.

The design of the Area And Perimeter form

Operation

· The userenters values for the length and width of a rectangle in the twotext boxes and then clicks the Calculate button or presses theEnter key to activate that button.

· Theapplication then displays the area and perimeter of the rectanglein the two labels below the text boxes.

Specifications

· The formulafor calculating the area is width * length.

· The formulafor calculating the perimeter is 2 * width + 2 * length.

· Theapplication should accept fractional decimal entries like 10.5 and20.65.

· Assume thatthe user will enter valid numeric data for the length andwidth.

Hint

· To get thelabels that display the area and perimeter to look like the onesshown above, you’ll need to set the AutoSize property of the labelsto False and the BorderStyle property to Fixed3D.

Notes

· This projectrequires some basic arithmetic operations, assignment statements,and data type conversions.

· After youcomplete chapter 6, you can add an event handler that clears thedata that’s displayed in the area and perimeter labels if the userchanges the value in either of the text boxes.

· After youcomplete chapter 7, you can them add exception handling and datavalidation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Managerial Accounting

Authors: Ray H. Garrison, Eric W. Noreen, Peter C. Brewer

13th Edition

978-0697789938

Students also viewed these Programming questions

Question

Solve each equation. a. x = x b. x(x 8) = 4(x - 9) -

Answered: 1 week ago