Discount Get CIS 170A ALL WEEKS Solution ONLY $98.95 $131.93
CIS 170A Week 2 - Lab 2A - Input and Output with Variables - you ... [$15.99]
CIS 170A Week 2 - Lab 2B - You will create a program that will pr... [$15.99]
CIS 170A Week 3 - Lab 3 - Create a Windows Form application that ... [$19.99]
CIS 170A Week 4 - Lab 4 - Create a program that will calculate an... [$19.99]
CIS 170A Week 5 - Lab 5 - Hockey Player - The customer has decide... [$19.99]
CIS 170A Week 6 - Lab 6 - Create a program, using an array, which... [$19.99]
CIS 170A Week 7 - Lab 7 - Hockey Player The user shall be able to... [$19.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS 170 CIS/170 CIS170 CIS170A Visual Basic Week 2 - iLab 2 - Lab 2 B -  you will create a program that will provide the user the option of calculating the area of a square, the area of a circle, or the volume of a sphere
    CIS 170 CIS/170 CIS170 CIS170A Visual Basic Week 2 - iLab 2 - Lab 2 B -  you will create a program that will provide the user the option of calculating the area of a square, the area of a circle, or the volume of a sphere

CIS 170 CIS/170 CIS170 CIS170A Visual Basic Week 2 - iLab 2 - Lab 2 B - you will create a program that will provide the user the option of calculating the area of a square, the area of a circle, or the volume of a sphere

$15.99

Part B:  Arithmetic Operations

Step 1:  Create a New Project

Open a new project in VB.NET. Name your project CIS170A_Lab02_B

Step 2: Program Description

In this project, you will create a program that will provide the user the option of calculating the area of a square, the area of a circle, or the volume of a sphere.  The program will accept a single input from the user (length of side or length of radius) and depending on the button clicked by the user, the program will compute either the area of a square with the length as a side; the area of a circle with that value as the radius; or the volume of a sphere with that value also as a radius.

The corresponding mathematical formulas are as follows:

Area Of Square = Length x Length (or also Length raised to the power of 2)

Area of Circle = Pi x Radius squared

Volume of Sphere = 4 / 3 x Pi x Radius raised to the power of 3

(where Pi = 3.1416)

Step 3: Suggested Form Design

You are free to experiment with form design and object colors as you see fit, even though as to colors we strongly recommend using the default colors for the form and all objects – this allows each user to see your form in their chosen Windows color palette.

 

The suggested form design is as follows:

Here we show some sample data entered in the textbox, and the result of the user having then clicked on the “Square” button.

Note that in this case we display the results in a big label located in the center of the form.  Please consider the following values for two of that label’s properties:

AutoSize = False

BorderStyle = Fixed3D

Step 4: Implement the Event Handlers

. Use the following as the design for your event handlers:

Task

Object

Event

Make sure that the textbox has a valid numeric value. [Hint: use the Double.TryParse() method.]

Assign the converted input value to dblInput

Compute AreaOfSquare

Display “The area of a square with side xxx is yyy”, where “xxx” is dblInput and “yyy” is AreaOfSquare.

btnSquare

Click

Make sure that the textbox has a valid numeric value. [Hint: use the Double.TryParse() method.]

Assign the converted input value to dblInput

Compute AreaOfCircle

Display “The area of a circle with radius xxx is yyy”, where “xxx” is dblInput and “yyy” is AreaOfCircle.

btnCircle

Click

Make sure that the textbox has a valid numeric value. [Hint: use the Double.TryParse() method.]

Assign the converted input value to dblInput

Compute VolumeOfSphere

Display “The volume of a sphere with radius xxx is yyy”, where “xxx” is dblInput and “yyy” is VolumeOfSphere.

btnSphere

Click

Clear textbox and output label.

btnClear

Click

Close form

btnExit

Click

Please be sure to convert the numeric values to the appropriate data type when displaying the results.

Step 5:  Deliverables

Zip up the top-level folder with your program (the complete set of project files) into a single file (please check Doc Sharing for details.)

Rename that .zip file as CIS170A_Lab02_B_LastName_FirstInitial.zip, or similar.

Place deliverables in the Dropbox.

END OF PART B

END OF LAB 2

My solution contain Visual Basic projects.

Please using Visual Studio to open this project.

If you have more question or need help, please contact me via email support@extutorials.com. I will help you any time.

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B