Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Submit your answers using only one file as Your Name.pdf (Hint: you can add your answers two charts to a word document then save as

image text in transcribed

Submit your answers using only one file as Your Name.pdf (Hint: you can add your answers "two charts" to a word document then save as pdf) Question 1: (5 points) Draw a flow chart to find all the roots of a quadratic equation a x +bx+c= 0 (where a , b, c are real numbers and a can't be 0 ) A quadratic equation with real numbers as coefficients can have the following: 1. Two different real roots if the discriminant b2 - 4 xa xc is a positive number. -b - Vb2 - 4ac x1 = -b + b2 - 4ac 2a x2 = 2a 2. One real root if the discriminant b2 - 4 xa xc is equal to 0. x = za 3. No real root if the discriminant b2 - 4 xa xc is a negative number. Question 2: (5 points) Draw a flow chart to check if the given number is a perfect number or not (i.e. A Perfect number is a positive integer that is equal to the sum of its proper divisors). For example: The smallest perfect number is 6, which is the sum of 1, 2, and 3. Other perfect numbers are 28, 496, and 8,128

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions