QUESTION 1 Melody Piano Club provides a piano course for a student based on lesson hours. The charges per student is based on the level of difficulty as shown in Table 1. The club offers a 15% discount for Malaysian student. Table 1 Level of Difficulty Charge per hour (RM) Beginner 35.00 Intermediate 60.00 Advance 85.00 Write a complete C++ program to calculate the total charge for the student using the information above. Your program should input the student's name, lesson hour, level of difficulty and nationality status. You should welcome the new student to the dub as well. A sample of input and output is shown in Figure 1 below. O Hak Cipta Universiti Taknologi MARA CONFIDENTIAL CONFIDENTIAL CSUUL 2021/CSC402 Enter your name: Aina Enter lesson hour: 9 Enter level of difficulty: 1 - Beginner 2- Intermediate 3- Advance Level: 3 Are you a Malaysian? true - Malaysian / false - non-Malaysian Malaysian? :true Your name is: Aina Total charge: RM810 velcome Aina.Hope you enjoy your piano classes. Thank you! Figure 1

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter2: Basic Elements Of C++
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
QUESTION 1
Melody Piano Club provides a piano course for a student based on lesson hours. The
charges per student is based on the level of difficulty as shown in Table 1. The club offers a
15% discount for Malaysian student.
Table 1
Level of Difficulty
Beginner
Intermediate
Charge per hour (RM)
35.00
60.00
Advance
85.00
Write a complete C++ program to calculate the total charge for the student using the
information above. Your program should input the student's name, lesson hour, level of
difficulty and nationality status. You should welcome the new student to the dub as well. A
sample of input and output is shown in Figure 1 below.
OHak Cipta Universiti Taknologi MA
CONFIDENTIAL
CONFIDENTIAL
CSJUL 2021/cSC402
Enter your name : Aina
Enter lesson hour: 9
Enter level of difficulty:
1 - Beginner
2 - Intermediate
3- Advance
Level: 3
Are you a Malaysian
true - Malaysian / false - non-Malaysian
Malaysian? :true
Your name is Aina
Total charge: RM810
welcome Aina. Hope you enjoy your piano classes. Thank you!
Figure 1
(20 marks)
Transcribed Image Text:QUESTION 1 Melody Piano Club provides a piano course for a student based on lesson hours. The charges per student is based on the level of difficulty as shown in Table 1. The club offers a 15% discount for Malaysian student. Table 1 Level of Difficulty Beginner Intermediate Charge per hour (RM) 35.00 60.00 Advance 85.00 Write a complete C++ program to calculate the total charge for the student using the information above. Your program should input the student's name, lesson hour, level of difficulty and nationality status. You should welcome the new student to the dub as well. A sample of input and output is shown in Figure 1 below. OHak Cipta Universiti Taknologi MA CONFIDENTIAL CONFIDENTIAL CSJUL 2021/cSC402 Enter your name : Aina Enter lesson hour: 9 Enter level of difficulty: 1 - Beginner 2 - Intermediate 3- Advance Level: 3 Are you a Malaysian true - Malaysian / false - non-Malaysian Malaysian? :true Your name is Aina Total charge: RM810 welcome Aina. Hope you enjoy your piano classes. Thank you! Figure 1 (20 marks)
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr