Use the .net framework class calculate the value of pi

Assignment Help Basic Computer Science
Reference no: EM13952854

The selection of which calculation to make should be made from a ComboBox Control. The application should include four input fields that allows a user to enter numbers with two decimal places; each input field also should indicate that the input value is measured in feet. Label the four input fields as: Length, Width, Height, and Radius. When the user clicks a button to perform the calculation, the button's event procedure should first determine that a selection for the calculation type was made. Next, the event procedure should ensure that non-zero, positive values have been entered only for the measurements needed for the particular formula being used. Finally, the calculation should be performed and a message box displayed to indicate the inputs and output in the following format:

The volume of a box with a length of 1.00 feet, a width of 2.00 feet, and a height of 3.00 feet has a volume of 6.00 cubic feet.

Use the following formulas to determine the volumes of various shapes:

1. Volume of a box: V = L x W x H where L is the Length, W is the width, and H is the height of the box

2. Volume of a cylinder: V = pi x R x R x H, where R is the radius, and H is the height of the cylinder

3. Volume of a cone: V = (pi x R x R H)/3, where R is the radius of the base, and H is the height of the cone

4. Volume of a sphere: V = 4 x pi x R * R x R/3, where R is the radius of the sphere

In all of the above formulas, use the .NET framework class linrary constant, Math.PI, for the calue of pi.

Reference no: EM13952854

Questions Cloud

Explain basic role information technology plays in business : Explain the basic role information technology plays in a business environment. What are some of the ways that financial information will be changed in the way the information is processed.
Prepare a magazine advertisement : Using the information provided in the creative brief, prepare a magazine advertisement. Which magazines might match the target audience
How do the two distributions differ based on the box plots : For each player, determine the minimum, the first quartile, the median, the third quartile, and the maximum of their home run totals. Use these results to construct comparative box-and-whisker plots. These five numbers that highlight a box plot ar..
Who approves and reject changes to the scope of the project : What type of system should be in place to manage change request and why you are choosing this technique?
Use the .net framework class calculate the value of pi : Volume of a cone: V = (pi x R x R H)/3, where R is the radius of the base, and H is the height of the cone
Paper on communicating about corporate responsibility : Communicating about Corporate Responsibility which includes three parts of an Annotated Bibliography, an Outline and a research Paper on Communicating about Corporate Responsibility.
Construct a pie chart to describe this data : The FBI gathers data on violent crimes. For 20,000 murders committed over the past few years, the following fictitious data set represents the classifica- tion of the weapon used to commit the crime. Construct a pie chart to describe this data.
Solve the test problem manually : Calculate Planned Order Releases for materials A-XXX, B-XXX, C-XXX, D-XXX, and E-XXX . Relevant data on independent requirements (forecast), BOM, and material master data are given below.
Determine the sales potential of the product : In one paragraph describe in detail the marketing research that you determine the sales potential of the product or service you have chosen. Your presentation will be at least ten (10) minutes in duration.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd