Write a CH program to perform sales transaction. The program consists of the following functions: a) netPrice - This fun

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: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a CH program to perform sales transaction. The program consists of the following functions: a) netPrice - This fun

Post by answerhappygod »

Write A Ch Program To Perform Sales Transaction The Program Consists Of The Following Functions A Netprice This Fun 1
Write A Ch Program To Perform Sales Transaction The Program Consists Of The Following Functions A Netprice This Fun 1 (73.5 KiB) Viewed 45 times
Write a CH program to perform sales transaction. The program consists of the following functions: a) netPrice - This function should ask the user to enter the count of book purchased, calculate the total of purchase and then returns that value as a double. The book price is as follows: (4marks) Book Title Book Price Calculus RM180 Computer Science RM250 Biology RM280 b) membership Voucher - This function should ask the user to enter their membership status as follows and then returns the voucher redeem value as a double. (5marks) Membership Status Voucher Redeem Gold RM50 Silver RM30 Non-Member RM10 c) totalPrice - This function should accept the netPrice and membershipVoucher. Later calculate the total price after discount (use the discount rate in the table below) and the voucher value for redemption (4marks) Total Price - net Price - discount %) - membership Voucher Net Price - Item Purchased Below or equal to RM200 RM201 - RM500 RM500 above Discount (%) 5% 10% 20% d) display Data - This function should accept netPrice, membership Voucher and totalPrice as arguments, and display them in an appropriate message on the screen. (4marks) e) main - This function consists of calls to the above functions, (3marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply