Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE THE VIRTUAL STUDIO FOR C# Design of the Application UI: Some of the aspects of the UI design criteria may already be in place.

USE THE VIRTUAL STUDIO FOR C#

Design of the Application UI:

Some of the aspects of the UI design criteria may already be in place. You should double check them though and change those that need to be changed.

The name of the Solution for this exercise will be Module6MethodsSolution

The name of the Project for this exercise will be Module6MethodsProject

Change the information on the form so that the Windows Title Bar will show "Behind The scenes Methods" instead of Form1

Set the background color on the form to a pleasing shade of light yellow

Name the form itself to frmActors

Change the name of the files for the form to match its name

For example, this means in the Solutions Explorer, the .cs File for the form should say frmActors.cs

Have the form start up in the windows default position

The Tab Order for the form should be Left Operand Text Box, Right Operand Text Box, + Button, - Button, * Button, / Button and finally the % Button.

All names of the buttons, labels, and textboxes should be changed to meaningful names. Right now they are defaults as assigned by Visual Studio when they were created.

Just a note of caution, remember that since the button click code is already there, changes need to be made so that the button click code and the buttons still communicate

Change the form background to a light blue color from the default gray color.

Operations of the Application:

The present operation should not change from the User's point of view. Buttons should act the same way as they do now.

When the user clicks the "Exit" button, the application closes

Tie the Escape Key to the "Exit" Button using the form property covered

The + Button

Adds the Right and Left Operand as it does now.

The - Button

Subtracts the Right operand from the Left operand as it does now.

The * Button

Multiplies the Right and Left Operand as it does now.

The / Button

Divides the Left Operand by the Right Operand as it does now.

The % Button

Performs the Modulus Operation by dividing the Left Operand by the Right Operand and giving the remainder back as it does now.

Coding Specifications for the Application:

None of the controls have meaningful names, Change the controls to have meaningful names.

be consistent throughout the program on your naming of controls

Use an empty string to set a text property to empty

example: textbox1.Text = "";

Remember, a label text property can be set just like a textbox property

Put a multiple line comment at the top of the code, just under all those using statements, that contains your name, the class information, and due date of the exercise on separate lines

Create a SINGLE method that each of the buttons call when clicked

The method will need to return a number back to the calling method.

The method will need to receive 3 parameters.

Two of which are the numbers (not strings) from the textboxes.

The third parameter is to represent the operation to be preformed

The operations performed values are provided for you as constants in the project and named such. Look for the comment in the code.

When you call your method, one parameter should be one of those constants.

When in the method, you will use one of the parameters that you sent into the method to determine which operation to do. This will be achieve by use of control code. Think decision diamonds from flow charting.

Have a single return point in the method. Do not return in the middle, only at the end

HINT:

Here is a hint on what to look for in the click event method.

// This is the single line that changes in each click event // Your call to the method should be here and replace the // equation. // For example: dAnswer = YourMethod(); // Your method though will have multiple parameters dAnswer = dLeft + dRight;

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 403 (b) plan?

Answered: 1 week ago

Question

Question Can a Keogh plan fund be reached by the owners creditors?

Answered: 1 week ago