200字
2026-09-08 课堂任务与课后作业
2026-09-07
2026-09-07

程序运行网站:

https://www.jyshare.com/compile/10/

课堂任务:

Write code that figures out the cost per person for a dinner including the tip. Assume the bill was $89.23, there are three people, and the tip should be 20%. Make sure your answer is a double.

课后作业:

Write code

Background:Determine whether a child can attend a friend's birthday party.
Requirement:Write a Party class, in the main method.
Define variables: age=10, hasInvitation=true.
Need for Parents: Age<12 and with invitation letter.

Calculate and output:CanJoin (can participate): Age ≥ 8 and with invitation letter

完成后请把作业提交至 https://ks.wjx.com/vm/wRZCsSO.aspx#

请注意提交后,作业答案和批改情况无法返给你们,如有需要,自己保存所写代码,第二天上课讲解时对比。

若觉得以上练习简单/不够/目标是通过AP考试的同学,请自行打开以下网址,进行额外练习:

https://runestone.academy/ns/books/published/csawesome/index.html

2026-09-08 课堂任务与课后作业
作者
Administrator
发表于
2026-09-07
License
CC BY-NC-SA 4.0

评论