Determine the roots of a quadratic function

Assignment Help Engineering Mathematics
Reference no: EM131868574

Homework: Using variables and capturing user input

Requirements for BOTH problems:

Include brief instructions to inform the user that the input values required for each problem must be entered into the corresponding spreadsheet. You are at liberty to decide where to display and how to organize and format the input values. Minimal work will get minimal grading.

Clearly show the results produced by each solution. You are at liberty to decide where to display and how to format the results. Minimal work will get minimal grading.

Assign the input values entered by the user into the spreadsheet to variables of the appropriate type.

Make sure your program does not experience any flickering when processing the input data or producing results.

Make sure to follow good programming practices. In particular, pay close attention to the following:

  • Explicitly declaring all variables;
  • Properly indenting code so that it is more readable; and
  • Adding comments to your code
  • Using the With construct where/if appropriate.

Upload your two homework files, the .xlsm file and the .pdf file.

PROBLEMS -

Open a blank Excel workbook and save it as a MACRO-ENABLED file. Your workbook must contain only two worksheets named "Prob1" and "Prob2", respectively.

1. Problem 1.

a) Add a module (i.e., Module1) in the Project Explorer and write (do NOT record) all the code for this problem inside this module. Show your results in the worksheet labeled "Prob1."

b) Write code in Excel VBA to implement an algorithm to calculate the area and volume of the curved surface of a right circular cone. The description and flowchart for this algorithm are included in page 3 of this document. Your program must implement the exact algorithm depicted by the flowchart. Note: The dimensions of the right circular cone h and r must be entered by the user into the spreadsheet "Prob1" and then assigned to variables. These variables must then be used to produce the required result(s). DO NOT USE AN INPUT BOX TO REQUEST INPUT FROM THE USER.

c) Assign the sub procedure to a shape button.

d) The results must be displayed to the user when the button is pressed

2. Problem 2.

a) Add a module (i.e., Module2) in the Project Explorer and write (do NOT record) all the code for this problem inside this module. Show your results in a worksheet labeled "Prob2."

b) Write code in Excel VBA to implement an algorithm to determine the real roots of a quadratic equation. The description and flowchart for this algorithm are included in page 4 of this document. Your program must implement the exact algorithm depicted by the flowchart. A note to the user regarding errors may be included in the instructions for when there are no x-intercepts. Note: The coefficients a, b and c must be entered by the user into the spreadsheet "Prob2" and then assigned to variables. These variables must then be used to produce the required result(s). DO NOT USE AN INPUT BOX TO REQUEST INPUT FROM THE USER.

c) Assign the sub procedure to a shape button.

d) The results must be displayed to the user when the button is pressed.

Problem 1: The area and volume of a right circular cone can be calculated with the following formulas:

Area = π * r * [r + √(r2+h2)] (in m2)

Volume = 1/3 * π * r2 * h (in m3)

1853_figure.png

Determine the area and volume based on given values for h and r.

2027_figure1.png

Problem 2: The general form of a quadratic function is f(x) = ax2 + bx + c. The real roots of a quadratic function can be determined with the quadratic formula:

x = -b±√(b2-4ac)/(2a)

Determine the roots of a quadratic function based on given values for the coefficients a, b and c.

2365_figure2.png

Verified Expert

The task of the assignment is to develop the .xlsm file that helps to calculate the area and volume of the right circular cone.The algorithm and flowchart to determine the area and volume was provided.The radius and height of the cone is obtained from the user and the area and volume is displayed.As the second part of the assignment the coefficient of a, b and c are get from the user and the roots of the equation are determined and the solution is displayed to the user.

Reference no: EM131868574

Questions Cloud

Identify the inputs and steps in providing good : First, identify the inputs and steps in providing this good or service, and briefly discuss the opportunity cost of doing it yourself relative to hiring.
What is the mathematical expression : Julie has $12 to spend on food and clothing. What is the mathematical expression for sJulie's MRS in terms of f and c?
Discuss the importance of selecting a sample : Discuss the importance of selecting a sample that may be considered representative of the entire population.
Examining two advantages of hardware vpns : Examine and explain the two advantages and two disadvantages for three types of protocols used in VPNs.
Determine the roots of a quadratic function : IE 212: Homework: Using variables and capturing user input. Determine the roots of a quadratic function based on given values for the coefficients a, b and c
What are the cash flows for the company this quarter : What are the cash flows for the company this quarter? What is Ponzi’s net working capital in the next quarter?
What is the inflation rate in the us for 2016 : What is the inflation rate in the US for 2016? Is this number high or low? Why is this important?
Identify and manage shareable resources worldwide : What are its major strengths and weaknesses? Consider a company like PPI, which has several offices, subsidiaries, and vendors around the world.
Impact of exchange rates on rate of return on projects : Analyze the impact of exchange rate systems on funding decisions Evaluate the impact of exchange rates on the rate of return on projects.

Reviews

len1868574

2/19/2018 12:58:25 AM

I need both .xlsm and PDF file. DELIVERABLE - To obtain full credit in this homework, you must: Submit a single Excel file via Canvas. Before submitting your solution file, make sure that the sample data provided for each problem is in the format it was before you tested your sub procedures. Solutions for each individual problem should be prepared in separate worksheets. Submit all your code in a .pdf file. Upload your two homework files, the .xlsm file and the .pdf file, to Canvas before the due date specified on Canvas. Late homework will not be accepted.

Write a Review

Engineering Mathematics Questions & Answers

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

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