Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this answered by 8/1/2018. This is C# done in Visual Studios. Design of the Application UI: The name of the Solution for this

I need this answered by 8/1/2018. This is C# done in Visual Studios.

Design of the Application UI:

The name of the Solution for this exercise will be Module11Solution

The name of the Project for this exercise will be Module11Project

Change the information on the form so that the Windows Title Bar will show "My Beginning Math Class" instead of Form1

Set the background color on the form to a pleasing shade of blue, this means nice light blue

Name the form itself to frmMath

Name the class you are to create BeginningMathClass

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 frmMath.cs

Have the form start up in the center of the screen

Several buttons will need to be placed on the form

The placement of the buttons will be left up to you, here you start to design the forms look and feel yourself

Each button will need to be the same size

The buttons should have some regularity or design

Borders should align where appropriate

Do not just throw them on the form randomly

Tab stop setup so that the tabs start at a reasonable spot on the form and progress in a reasonable manner

Integer buttonsThere will 4 buttons that represent the 4 integer data types

byte, short, int, long

The buttons should share the same color background

The buttons should have reasonable wording on it to tell the user what the button is

Each button should have a hot key set up for it

Decimal Buttons The will be 3 buttons that represent the 3 decimal data types

float, double, decimal

The buttons should share the same color background but be different than any other grouping's color

The buttons should have reasonable wording on it to tell the user what the button is

Each button should have a hot key set up for it

The Clear Button

Text on the button shall say Clear

A hot key should be set up for the button

The background color of the button should be the same as the background of the Exit button

The Clear and Exit buttons represent a group of 2 buttons and should have their own group background color

The Exit Button

Text on the button shall say Clear

A hot key should be set up for the button

The background color of the button should be the same as the background of the Clear button

The Clear and Exit buttons represent a group of 2 buttons and should have their own group background color

There will need to be two text boxes with labels that will allow the user to enter a Left Operand and a Right Operand.

A series of 5 Radio Buttons will need to be added along with a Group box to allow the use to check one of the 5 math functions (+, -, *, /, %)

Set the background of the group box to match that of the form so it appears to be sitting right on the form itself

In the Center of the form, there will be a single label placed that takes up the remaining bulk of the form

The background color of the label should be a light yellow

The text color of the label should remain black and be bold faced

The text in the button should be centered both horizontally and vertically

The initial state of the text in the label should be "Click a Button"

Experimentation may be needed to get the best design sizing of the control

Operations of the Application:

When the user clicks the CLEAR button, blank out the text in the large yellow label only

When the user clicks the EXIT button, the application closes

Tie the Escape Key to the EXIT Button using the form property covered

Each of the remaining buttons will perform a mathematical operation with the data type indicated on the button For the integer and decimal buttons, the numbers are to be pulled from the Left Operand and Right Operand text boxes, checked and then placed into the object. The math operation is then to be done with results to be displayed in the big Yellow Label.

The checking should include the normal error along with data type checking. Do not allow someone to enter numbers that are too big to be in a "byte" when they click the byte button.

The numbers should be of the data type of the button. Example, the Byte button should only work with byte numbers, nothing larger and nothing of the decimal variety

Perform the math operation from the 5 math operations (+. -. *. /. %) on the Radio buttons. Only one should be checked by the user.

Create a string from the numbers but pull them from the object, not the textboxes at this point, and the operations sign to show the user the math operation done and the result

example: 2 + 3 = 5 or 7 / 2 = 3.5

Put the created string into the label

Show enough significant digits on the decimal types to illustrate the significance level of the data type

The more precise the decimal data type, the more digits should be seen

Use the string formatting commands to should significant digits when needed

Coding Specifications for the Application:

You have been given the form name itself, you are to name the buttons and the label with appropriate Self Documenting Names using the first three letters to describe the control, the remain part of the name to describe what the control does

example, frm is used for a Form

be consistent throughout the program on your naming of controls

Use a space or 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

Use single line comments in all buttons to document what the code is doing

All math operations themselves are to be performed in the object (ie the class you create) and be returned using a method call to that class.Example, BeginningMathClass.AddOperands() should be how one adds the two operands in the object from the calling code (which is your form).

You may choose to call your method something other than AddOperands, this is only given as an example, not a requirement of the number

Inside the class, you would add the two operands which are also members of the class you create.

Use the appropriate commands in the class so that the code in your form can set and get the operands as well as use the methods in the class.

Error checking and making sure the correct data types are going into the data in the class is to be done in the form, not the class.

If you are putting the code to the the math operations in the form instead of the class, then you are not using the class appropriately and thus not doing this exercise correctly.

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_2

Step: 3

blur-text-image_3

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

Find Io in the network shown using Thevenins Theorem. 12V Io

Answered: 1 week ago

Question

6. LO12-6 Explain how production charting is accomplished.

Answered: 1 week ago

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago

Question

=+from: a) a MNEs perspective? and b) the HRM managers perspective?

Answered: 1 week ago