Write a program that accepts the coefficients of the following two lines as inputs
Line1: 𝑎1𝑥+𝑏1𝑦+𝑐1=0a1x+b1y+c1=0
Line2: 𝑎2𝑥+𝑏2𝑦+𝑐2=0a2x+b2y+c2=0
Then checks whether the two lines are parallel, intersecting or overlapping according to the conditions listed below.
a) [10 pts] Intersecting lines: If 𝑎1𝑎2≠𝑏1𝑏2a1a2≠b1b2
Question 1 [30 pts]:
a) [10 pts] Write a Python program that accepts a list of marks then prints the letter grade and description according to the Grading System of the Chang School of Continuing Education.
For example, if the user enters 90, 120, -12, 71.5, 62.5
, the output would be as follows:
MarkLetter GradePerformance Description
90 A+ Excellent
120 Not Possible Not Possible
-12 Not Possible Not Possible
71.5 B- Good
62.5 C Satisfactory
第一题将公式套用到python里就可以。
第二题也很简单啊。直接判断输入的值合法和对应相应的等级就可以,用if,elif很简单的。
你在代码里打 print("123\t123\t");
就能制表。
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632