程序代写案例-QUIZ 2

欢迎使用51辅导,51作业君孵化低价透明的学长辅导平台,服务保持优质,平均费用压低50%以上! 51fudao.top
QUIZ 2
COMP9021 PRINCIPLES OF PROGRAMMING
$ python3
...
>>> from quiz_2 import *
>>> line((0, 0), (0, 0))
>>> line((0, -3), (0, 0))
'x = 0.00'
>>> line((-3, -3), (-3, 7))
'x = -3.00'
>>> line((8, 0), (5, 0))
'y = 0.00'
>>> line((8, 3), (-5, 3))
'y = 3.00'
>>> line((-3, -3), (0, 0))
'y = 1.00x'
>>> line((3, -3), (0, 0))
'y = -1.00x'
>>> line((1, 2), (2, 3))
'y = 1.00x + 1.00'
>>> line((-1, -2), (0, -1))
'y = 1.00x - 1.00'
>>> line((3, -3), (2, -4))
'y = 1.00x - 6.00'
>>> line((12, 5), (13, 29))
'y = 24.00x - 283.00'
>>> line((-1, -2), (7, 8))
'y = 1.25x - 0.75'
>>> line((-231, 87240), (73, 2987452))
'y = 9540.17x + 2291019.51'
>>> parabola()
>>> parabola(1, 0, 2)
>>> parabola(0)
'x^2 = 0'
>>> parabola(1, 1, 1, 1)
'x^2 - 2x + 1 = 0'
>>> parabola(1, 0, 0, 1, 1, 0, 1)
'x^2 - x = 0'
>>> parabola(7, -4, 7)
'x^2 - 3x - 28 = 0'
>>> parabola(-3, -11)
'x^2 + 14x + 33 = 0'
>>> parabola(100, -4, -4, -4, 100)
'x^2 - 96x - 400 = 0'
Date: Trimester 1, 2021.

欢迎咨询51作业君
51作业君

Email:51zuoyejun

@gmail.com

添加客服微信: abby12468