1) Write a program to enter name and G for girl or B for a boy. Check for the gender of the person and print it out. 2) Write a program that inputs your score (out of 100) in each category, then calculates your weighted grade. The program should output your total percentage and letter grade. (Use if statements) 3) A company decided to give a bonus of 5% to an employee if his/her year of service is more than 5 years. Ask the user for their salary and year of service and print the net bonus amount. 4) A shop will give a discount of 10% if the cost of the purchased quantity is more than 1000. Suppose one unit will cost 100. Ask the user for quantity and solve the total cost for the user. 5) A student will not be allowed to sit in the exam if his/her attendance is less than 75%. Take the following input from the user:- Number of classes held The number of classes attended And print the percentage attendance and whether the student is allowed to sit during the class.
0%
If else coding questions
共享
共享
共享
由
Navsanya
Computing
显示全部
编辑内容
嵌入
更多
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
开箱游戏
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要登录
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开结果
复制链接
删除
恢复自动保存:
?