5. ANN Consultancy provides various short courses in IT. Below are some of the short courses available and the fees shown in Table 1.0. Short courses MS Office Web Development Mobile Apps Development Table 1.0 Example: a receipt Course code Write a complete C++ program based on the following requirements: • Function calcFee() receives the course code and number of persons registering for the course. It will calculate and return the total fees. Discount Total fee after discount New fee per person 1 2 3 • Function getDisc() receives the total fees and the number of persons, then calculates and returns the total fees after discount. Discount 10% is given if the number of persons registering for the course is more than 30 persons. • Function main() prompts the user to input the course code and number of persons. . Finally, calculate the fees each person needs to pay if a discount is given. • The program will be repeated until the user enter 'N' to stop. Course Fees per person Number of persons enrolled Total Fees ANN Consultancy Fee (RM) 150.00 200.00 300.00 RM12000.00 RM1200 RM 10,800 RM 270 ********* Mobile Apps Development RM300 40
5. ANN Consultancy provides various short courses in IT. Below are some of the short courses available and the fees shown in Table 1.0. Short courses MS Office Web Development Mobile Apps Development Table 1.0 Example: a receipt Course code Write a complete C++ program based on the following requirements: • Function calcFee() receives the course code and number of persons registering for the course. It will calculate and return the total fees. Discount Total fee after discount New fee per person 1 2 3 • Function getDisc() receives the total fees and the number of persons, then calculates and returns the total fees after discount. Discount 10% is given if the number of persons registering for the course is more than 30 persons. • Function main() prompts the user to input the course code and number of persons. . Finally, calculate the fees each person needs to pay if a discount is given. • The program will be repeated until the user enter 'N' to stop. Course Fees per person Number of persons enrolled Total Fees ANN Consultancy Fee (RM) 150.00 200.00 300.00 RM12000.00 RM1200 RM 10,800 RM 270 ********* Mobile Apps Development RM300 40
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 3E
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 4 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++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr