Question: Having issues with this question looking for assistance ; everything was done on google coolab # First, we type Welcome to Quadratic Equation Game! Welcome

Having issues with this question looking for assistance ; everything was done on google coolab
# First, we type "Welcome to Quadratic Equation Game!"
Welcome to Quadratic Equation Game!
# Next, please show the Quadratic Equation as follows:
# "aX^2+ bX + C =0"
aX^2+ bX + C =0
# 0.2 Mark
# Then, ask the user to enter a, b, and c, respectively.
# Expain Output
Please, enter the value for a: 1
Please, enter the value for b: 5
Please, enter the value for c: 6
# 0.2 Mark
# Now, please show the quadratic equation to the user, before start solving it:
# e.g. "Your Quadratic Equation is: 1X^2+5X +6=0"
# Expain Output
Your Quadratic Equation is: 1X^2+5X +6=0
# 0.2 Mark
# Define a function, called discriminant that receives a, b, and c, and calculates the discriminant.
# Expain Output
# 1 Marks
# Use the above function in the following part:
# If Discriminant is positive, we get two Real solutions.
# So, please print "We got two real solutions, which are X1, and X2"
# Sure, you calculate the value of X1, and X2.
# If Discriminant is zero we get just ONE real solution (both answers are the same).
# So, please print "We got one real solution, which is X1"
# Sure, you calculate the value of X1.
# If Discriminant is negative we get a pair of Complex solutions.
# So, please print "The Discriminant is negative, we got a pair of Complex solutions."
# You do not need to show the complex solutions :)
# Note: You need to import math library, and calculate the square root of
# discriminant for the case that you have two real solutions. We got two real solutions,, which are -2.0, and -3.0
# Expain Output
# 0.2 Mark
# Finally, save the above two messages into a file, called "QuadEqu.txt"
# e.g.
# Your Quadratic Equation is: 1X^2+5X +6=0
# We got two real solutions,, which are -2.0, and -3.0
# Expain Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!