Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I need the answer for this two questions pls 2) Last week, you wrote the C++ program to calculate the 50 roots of the quadratic

I need the answer for this two questions pls
image text in transcribed
image text in transcribed
2) Last week, you wrote the C++ program to calculate the 50 roots of the quadratic equation ax+bxtc-0 using the formula: 40 35 30 25 20 15 10 X1,2 2a But, if 4ac b' then the value under the square root is negative and the roots are said to be complex. This is so because the curve does not cut the x-axis. Write Ct+ program to calculate the roots only when b2 2 4ac. Otherwise, print a message saying that the roots are 43 21 0 1 2 3 4 5 complex. Run your program using the coefficient of the equation represented by the curve on the graph given above. 3) Write a program to read employee's salary, the deduct 5% tax if the salary is less than 10,000, otherwise deduct 10%, the print the net salary

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions