Topic : Multiple Selection Control Structure Instruction : 1. Save your java file name same as your class name in the coding. Example : Save as : Munirah_S3BT20.java Class name for coding : class Munirah_S3BT20 Problem Description : Maths Tuition Centre asked you as a senior programmer to develop a Java program. The program is to calculate the total fee to be paid for each student. Each student must pay RM10 for the learning module. Tuition centre also gives the discount based on total charge. Below are the charge rate provided by tuition centre: Hour Charge Discount First hour RM15 per hour 3% Next 5 hours RM10 per hour 7% 7 hours and above RM5 per hour 12% *Total fee will be granted with one-time discount only The program will allow users to enter student's names and total hours. Then, the program will calculate the total fees including the learning module and total charge. Begins your code with name, class, matric number, and problem description as a comment. Use 2 decimal point formats in the output. Below are the suggestions for input/output display. MATHS TUITION CENTRE Student Name : Munirah Alhadad Total hour:12 xxxx Maths Tuition Centre XXXXXXXXXXXXX xxxxx xxxxxxxx XXXXXXXXXXX cxxxxxxXXXXXXXXXxXXXX Name : Mr/Mrs/Miss Munirah Alhadad Total hour :12 hours Total charge :RM95.00 Discount :RM11.40 Total fee :RM93.60 ----JGRASP: operation complete.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
Topic : Multiple Selection Control Structure
Instruction :
1. Save your java file name same as your class name in the coding. Example :
Save as : Munirah_S3BT20.java
Class name for coding : class Munirah_S3BT20
Problem Description :
Maths Tuition Centre asked you as a senior programmer to develop a Java program. The
program is to calculate the total fee to be paid for each student. Each student must pay RM10
for the learning module. Tuition centre also gives the discount based on total charge. Below
are the charge rate provided by tuition centre:
Hour
Charge
Discount
First hour
RM15 per hour
3%
Next 5 hours
RM10 per hour
7%
7 hours and above
RM5 per hour
12%
*Total fee will be granted with one-time discount only
The program will allow users to enter student's names and total hours. Then, the program will
calculate the total fees including the learning module and total charge.
Begins your code with name, class, matric number, and problem description as a comment. Use
2 decimal point formats in the output. Below are the suggestions for input/output display.
MATHS TUITION CENTRE
Student Name : Munirah Alhadad
Total hour:12
XXXXXXXXXXXXXXXXXXXXX
DXXXXXXXXXX
Maths Tuition Centre
ххххххххххххххххххххххххххххххххххххххххххх
XXXXXXXXXXXXXXX
Name : Mr/Mrs/Miss Munirah Alhadad
Total hour :12 hours
Total charge :RM95.00
Discount :RM11.40
Total fee :RM93.60
----JGRASP: operation complete.
Transcribed Image Text:Topic : Multiple Selection Control Structure Instruction : 1. Save your java file name same as your class name in the coding. Example : Save as : Munirah_S3BT20.java Class name for coding : class Munirah_S3BT20 Problem Description : Maths Tuition Centre asked you as a senior programmer to develop a Java program. The program is to calculate the total fee to be paid for each student. Each student must pay RM10 for the learning module. Tuition centre also gives the discount based on total charge. Below are the charge rate provided by tuition centre: Hour Charge Discount First hour RM15 per hour 3% Next 5 hours RM10 per hour 7% 7 hours and above RM5 per hour 12% *Total fee will be granted with one-time discount only The program will allow users to enter student's names and total hours. Then, the program will calculate the total fees including the learning module and total charge. Begins your code with name, class, matric number, and problem description as a comment. Use 2 decimal point formats in the output. Below are the suggestions for input/output display. MATHS TUITION CENTRE Student Name : Munirah Alhadad Total hour:12 XXXXXXXXXXXXXXXXXXXXX DXXXXXXXXXX Maths Tuition Centre ххххххххххххххххххххххххххххххххххххххххххх XXXXXXXXXXXXXXX Name : Mr/Mrs/Miss Munirah Alhadad Total hour :12 hours Total charge :RM95.00 Discount :RM11.40 Total fee :RM93.60 ----JGRASP: operation complete.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage