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
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
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr