QUESTION 2 Damai Bayu Resort offers a variety of packages for the wedding auditorium to their customers. Payments are ba

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 2 Damai Bayu Resort offers a variety of packages for the wedding auditorium to their customers. Payments are ba

Post by answerhappygod »

Question 2 Damai Bayu Resort Offers A Variety Of Packages For The Wedding Auditorium To Their Customers Payments Are Ba 1
Question 2 Damai Bayu Resort Offers A Variety Of Packages For The Wedding Auditorium To Their Customers Payments Are Ba 1 (98.82 KiB) Viewed 31 times
QUESTION 2 Damai Bayu Resort offers a variety of packages for the wedding auditorium to their customers. Payments are based on the type of package and the number of hours spent. An additional RM50.00 per guest will be charged for meals. The details of the charges for each package are shown in the following table: Type of Package Name of Package Price / hour (RM) 1 Pearl (basic) 300 2 Ruby (sound Effects) 550 3 Platinum (sound and lighting effects) 750 a. Write a function named calcPayment() that receives the type of package, number of hours spent and number of guests as parameters This function will calculate and return the total payment of the package. b. Write the function definition for calcDiscount() that receives the total payment as parameter. A discount of 20% will be given if the total payment is more than RM5000, while a 10% discount is given for other amount. This function will calculate and return the discount amount. . C. Write a main program to do the following: Input the type of package, number of hours spent and number of guests. Call the functions defined in a) and b) above to calculate the net payment of the package. Display the net payment for a customer The program will ask the user to enter the number of customers. At the end of the process, display the number of customers that have more than 100 guests and the total sales from all customers. (20 marks) .
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply