请计算并输出大学第一学期共修多少学分?输入每学分应缴纳的学费(整数,单位为元),计算并输出第一学期应缴纳多少学费?
python = 3
math = 4
english = 4
physical = 2
military_theory = 2
philosophy = 2
credits = python+math+english+physical+military_theory+philosophy
money=int(input())
moneys=credits*money
print(f'你本学期选修了{credits}个学分。')
print(f'你应缴纳的学费为{moneys}元。')
大学可以申请助学贷款,申请额度不超过学费和生活费总额的 60%
,输入你每个月的生活费(浮点数),请计算你每个学期能够贷款多少元?(结果保留小数点后 2
位数字,每个学期按 5
个月计算)
python = 3
math = 4
english = 4
physical_education = 2
military_theory = 2
philosophy = 2
mon=int(input())
money=float(input())
credits = python+math+english+physical_education+military_theory+philosophy
moneys=mon*credits+money*5
loan=0.6*moneys
print(f'请输入每学分学费金额:请输入你每个月生活费:本学期你能够贷款{loan:.2f}元')