Program to find real and complex roots of quadratic equation

Assignment Help Programming Languages
Reference no: EM13702335

Write a VBA program to find the real and complex roots of the quadratic equation. 

Note that VBA will give an error message if you try to take the square root of a negative number or divide by zero.  

For this reason, you will need to verify the sign of the term within the square root (called the "determinant") and whether the denominator in the formula is zero before using the quadratic equation.

Note that the output when the denominator is less than zero should include "i", the imaginary number equal to the square root of -1 (i.e. 4+3i).

Reference no: EM13702335

Questions Cloud

The relationship between the partial pressures of components : If the container has a pinhole leak, which describes the relationship between the partial pressures of the individual components in the containtainer after 3 hours? (A.) PSO2 > PCH4>PH2. (B.) PSO2 PH2. (D) PSO2= PCH4 = PH2.
Create a script file that generates a row vector : Create a script file that generates a row vector of 10 random numbers from 5 to 15 - Call your function using your array of random numbers and the scalar value of 22.
Create a function that will accept a scalar value : Create a function that will accept a scalar value for the radius of the cylinder and end caps and will accept an array for the height of the cylinder.
What mass of na2co3 is required to produce a solution : Question- What mass of Na2CO3 is required to produce 250.0 mL of a solution that is 500 ppm in Na+? Assume a solution density of 1.00 g/mL).
Program to find real and complex roots of quadratic equation : Write a VBA program to find the real and complex roots of the quadratic equation.
What is the molarity of the diluted hcl : Question- If 25.00 mL of 6.00 M HCl is transferred by pipet into a volumetric flask and diluted by 5.00 L, what is the molarity of the diluted HCl
Program to check a social security number is valid or not : Write a program that prompts the user to enter a social security number in the format DDD-DD-DDDD, where D is a digit. The program displays "Valid SSN" for a correct social security number and "Invalid SSN" otherwise.
Describe how you would prepare a potassium nitrate solution : Question- Describe how you would prepare 465 ml of a .3550 M potassium nitrate solution starting with a) solid potassium nitrate b) 0.750 M potassium nitrate solution
Write a function to calculate tax : write a function to calculate tax, the sample output is : Filing Status (1) Single (2) Married (3) Head of Household (0)

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a function to circulate a list

Write a function to circulate a list. The function takes two paramaters, the first defines how many elements of the list to circulate, and the second is the list. The output should be the circulated list.

  Program that computes the average and standard deviation

Write a program that computes the average and standard deviation of a set of double values read from a file.

  Write statement that calls add to compute sum of sales

Add is a method that accepts two int arguments and returns their sum. Write a statement that calls add to compute the sum of euroSales and asiaSales and that stores this value in eurasiaSales .

  Write program to bounce blue ball inside jpanel

Write a program which bounces the blue ball inside JPanel. Ball must begin moving with the mousePressed event. When ball hits edge of JPanel, it must bounce off edge.

  Step by step procedure to solve to create record note book

Create Record note book; The Record note book should be in the follwoing order. Procedure: Write down step by step procedure to solve problem.

  Program to compute person earns in a month

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day.

  Desigh program that enters first and second number

Desigh a program which enters first and a second number. First and second number which will be entered should be computed in halves, quarter, double, and square using JoptionPane input dialog.

  Create classes for account and savingsaccount

Create and write three classes - Account, CheckingAccount, and SavingsAccount. Have CheckingAccount and SavingsAccount inherit from Account.

  Create program for hollywood movie rating guide

Create a program for the Hollywood Movie Rating Guide,in which users continuously enter a value from 0 to 4 that indicates the number of stars they are awarding to the Guide's featured movie of the week.

  Create program to randomly access data on stocks

A small mutual company wishes you to create program to randomly access data on stocks it holds. Presently, data are stored in a text file, each line of which contains following: a stock code.

  Design program which models worms behavior

Design a program that models the worms behavior in the following scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple.

  You are an analyst for a large public pension fund and you

you are an analyst for a large public pension fund and you have been assigned the task of evaluating 2 different

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