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
編輯內容
嵌入
更多
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
開箱遊戲
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?