学费计算助学贷款

请计算并输出大学第一学期共修多少学分?输入每学分应缴纳的学费(整数,单位为元),计算并输出第一学期应缴纳多少学费?

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}元')

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值