Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Visual Studio c# modularizing code with methods 1. three radiobuttons - Circle , Squre , and Rectangle . When the user selects the Circle radio

Visual Studio c# modularizing code with methods

1. three radiobuttons - Circle, Squre, and Rectangle.

When the user selects the "Circle" radio button, only "Radius" textbox is visible.

When the user selects the "Squre" radio button, only "Side" textbox is visible.

When the user selects the "Rectangle" radio button, only "Height" and "Width" textboxes is visible.

2. three buttons - Calculate, Clear, and Exit.

When the user clicks "Calculate" button, calculate the area of the selected radiobutton and display it in the "Area" textbox.

When the user clicks "Clear" button, make all TextBoxes visible, clear out all TextBoxes, and reset all RadioButtons to false.

When the user clicks "Exit" button, popup a MessageBox to ask the user if they want to exit for sure.

3. five textboxes - Radius, Side, Height, Width, and Area TextBoxes

4. Menu - File Menu with Clear and Exit MenuItem, Choice Menu with Circle, Squre, and Rectangle MenuItem.

"Clear" MenuItem should do the same as the Clear Button, clear out the TextBoxes and reset all RadioButtons to false.

"Exit" MenuItem should do the same thing as the Exit Button does, popup a MessageBox to ask the user if they want to exit for sure.

"Circle", "Squre", and "Rectangle" MenuItems should turn on the appropriate radiobutton.

5. a ComboBox - Circle, Squre, and Rectangle.

This box will be new ways to turn on the Circle, Square, and Rectangle radiobuttons. When the user selects one, it turns on the appropriate radiobutton.

6. a ListBox - Circle, Squre, and Rectangle.

This box will be new ways to turn on the Circle, Square, and Rectangle radiobuttons. When the user selects one, it turns on the appropriate radiobutton.

7. two Functions - Clear() function, Exit() function.

Clear() function should clear all the TextBoxes and reset the radiobuttons to false. Then the Clear() function can be called from both the Clear Button event and the Clear MenuItem event.

Exit() function should popup a message-box that will ask the user, "Are you sure you want to Exit?" If they select the "Yes" button, then exit the program. Otherwise do not exit the program. Then the Exit() function can be called form both the Exit Button event and the Exit MunuItem event.

8. three Functions with args - do the calculations for Circle(radius), for Square(side), and for Rectangle(height, width). The functions will take in the values indicated and return the area. You will call these Functions from within the if statements or switch statement that determine which shape to calculate.

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

Write down the three Pythagorean Identities.

Answered: 1 week ago

Question

2. How were various roles filled?

Answered: 1 week ago