print('''
A
A A
A A
AAAAAAA
A A
A A
A A
''')
Every students in class will write a python program "printBigX.py" to print a big letter X using character X with the same 7X13 characters dimension using the following table for letter assigned:
Gp | Name | file name |
---|---|---|
A | AU TY | printBig0.py |
B | CHAN CH | printBig1.py |
A | CHAN MC | printBig2.py |
A | CHAN TH | printBig3.py |
A | CHAN TM | printBig4.py |
B | CHAN YK | printBig5.py |
B | CHEN LJ | printBig6.py |
A | CHENG TK | printBig7.py |
A | CHEUNG HK | printBig8.py |
A | CHOW KH | printBig9.py |
B | CHU TC | printBigB.py |
A | CHUI NH | printBigC.py |
B | CHUNG KN | printBigD.py |
A | HO PK | printBigE.py |
B | KE ZL | printBigF.py |
B | KEUNG TW | printBigG.py |
A | KOO LA | printBigH.py |
A | LAM TH | printBigI.py |
A | LAU TS | printBigJ.py |
B | LAW TC | printBigK.py |
B | LEE CH | printBigL.py |
B | LEE KT | printBigM.py |
A | LEUNG HK | printBigN.py |
B | LI HC | printBigO.py |
B | LUEN CW | printBigP.py |
A | MA YC | printBigQ.py |
B | NG CY | printBigR.py |
A | SIN HT | printBigS.py |
B | TSAO M | printBigT.py |
B | TSE WL | printBigU.py |
A | YEUNG SW | printBigV.py |
B | YU YM | printBigW.py |
B | YUEN CL | printBigX.py |
a. x = 3 + 4 - 6 / 2 * 3 b. x = 12 % 5
c. y = 4 d. x = 3
x = y << 2 y = ++x + 4 // x
e. y = 7 f. x = 5
x = 2 * y < y x *= 3**x
Type these statements in python console to check your answers.
X = (-b + sqrt(b*b- 4*a*c)) / (2*a) ,
and
X = (-b - sqrt(b*b- 4*a*c)) / (2*a)
Thus X can be found if a, b, and c are known. For any set of values for a, b, and c there are two possible answers for X.
Write a Python program to solve the binomial equation. Prompt the user to enter the values a, b, and c. Use only 2 decimal places for all values.
Your output should be formatted as the example below:
When a = 1.00, b = 0.00, and c = -1.00: X = 1.00 or -1.00
Run your program with the following 3 sets of sample data:
1) 1.0 0.0 -1.0
2) 1.0 1.0 -12.0
3) 2.0 3.0 -4.0
4) 0.0 1.0 -1.0
5) 2.0 3.0 4.0