An Islamabad based petrol supply company needs to update their automated Billing System to incorporate computation...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
An Islamabad based petrol supply company needs to update their automated Billing System to incorporate computation of discounts. The system will be used at their five different petrol stations across the city. Each petrol station provides services (e.g., filling, cleaning, repair, and maintenance) and also has a small shop at the premises to sell different vehicle care products (e.g., engine oil, filters, spare parts, and accessories). The company offers 3 types of memberships: Diamond, Gold and Silver. Diamond, Gold and Silver members receive a discount of 15%, 10 %, and 5%, respectively, for all services provided. Customers without membership receive no discount. Moreover, all members receive a flat 10% discount on products purchased. The discount system will compute the total discount for products and services of a customer's visit. It will read customer's membership information, total amount of services used, total amount of products bought and then compute discount for each customer's bill accordingly. Note that only discount computation is required. Bill generation is NOT required. For example if a customer is a Diamond member and has spent Rs. 4000 for services and Rs. 1000 for products then total discount will be Rs. 700 (15% of Rs. 4000 = Rs. 600 plus 10% of Rs. 1000 = Rs. 100). A. Design an object oriented discount system in C++ consisting of three classes: Customer, Discount and Visit. B. Draw a UML class diagram to represent relationship between these classes. C. Write a driver program to test all the classes. D. You can get the required data form the user or read from a text file. E. Submit UML diagram (compiler generated), complete program source code, and screen shots of sample program outputs. An Islamabad based petrol supply company needs to update their automated Billing System to incorporate computation of discounts. The system will be used at their five different petrol stations across the city. Each petrol station provides services (e.g., filling, cleaning, repair, and maintenance) and also has a small shop at the premises to sell different vehicle care products (e.g., engine oil, filters, spare parts, and accessories). The company offers 3 types of memberships: Diamond, Gold and Silver. Diamond, Gold and Silver members receive a discount of 15%, 10 %, and 5%, respectively, for all services provided. Customers without membership receive no discount. Moreover, all members receive a flat 10% discount on products purchased. The discount system will compute the total discount for products and services of a customer's visit. It will read customer's membership information, total amount of services used, total amount of products bought and then compute discount for each customer's bill accordingly. Note that only discount computation is required. Bill generation is NOT required. For example if a customer is a Diamond member and has spent Rs. 4000 for services and Rs. 1000 for products then total discount will be Rs. 700 (15% of Rs. 4000 = Rs. 600 plus 10% of Rs. 1000 = Rs. 100). A. Design an object oriented discount system in C++ consisting of three classes: Customer, Discount and Visit. B. Draw a UML class diagram to represent relationship between these classes. C. Write a driver program to test all the classes. D. You can get the required data form the user or read from a text file. E. Submit UML diagram (compiler generated), complete program source code, and screen shots of sample program outputs.
Expert Answer:
Answer rating: 100% (QA)
Solution include include include using namespace std COORD coord 0 0 Gives Cordinates void gotoxyint x int y coordX x coordY y SetConsoleCursorPositionGetStdHandleSTDOUTPUTHANDLE coord Set the positio... View the full answer
Related Book For
Transportation A Global Supply Chain Perspective
ISBN: 9781337406642
9th Edition
Authors: Robert A. Novack, Brian Gibson, Yoshinori Suzuki, John J. Coyle
Posted Date:
Students also viewed these programming questions
-
Your insurance company needs to update the sales incentive program for its sales/marketing representatives. Due to growth in the volume and diversity of the products being sold, the existing system...
-
Your insurance company needs to update the sales incentive program for its sales/marketing representatives. Due to growth in the volume and diversity of the products being sold, the existing system...
-
ABC Supply Company needs to keep track of their office and computer inventory in order to reduce costs, manage reorder points, and better track item locations within their facilities. They need to...
-
How are the square numbers embedded in Pascals triangle?
-
The Fitness Studio, Inc., with the help of its investment bank, recently issued 2.5 million shares of new stock. The offer price on the stock was $20.50 per share and The Fitness Studio received a...
-
Alex is a wage earner with a regular income. He has unsecured debts of $42,000 and secured debts owing to Betty, Connie, David, and Eunice totaling $120,000. Eunices debt is secured only by a...
-
The payroll disbursements were for two persons named Ciotty and Ciotti with the same first name and address. The interesting observation is that Ciotty is dated February 28, 2019, or after while...
-
The following partial work sheet is taken from Kevin's Gift Shop for the year ended December 31, 20--. The ending merchandise inventory is $50,000. 1. Complete the Adjustments columns for the...
-
-> Let G and H be groups. A function : G H is called a (group) homomorphism if it satisfies (9192) = (91) * (92) for all 91, 92 G. (Note that the product 91*92 uses the group law in the group G,...
-
Fokine Research Institute has three departments: biology, chemistry, and physics. The institute's controller wants to estimate the cost of operating each department. He has identified several...
-
Net Income $1,200.00 Total Assets $5,000.00 Total Liabilities $3,500.00 Total Assets Turnover 5 Dividend Paid $400.00 Assume that profit margin, asset turnover, and retention ratios remain constant....
-
The annual income received from a production line in a manufacturing company is $1 million. The annual operating cost for the production line are $150,000 and the annual maintenance cost is $50,000....
-
The initial cost of a machine for a production facility is $225,000. The machine is expected to last for 10 years with no salvage value. The companys tax rate is 49% and SLD is used to depreciate the...
-
The initial cost of a proposed heat recovery system is $375,000. The annual operation and maintenance costs are projected to be $12,000. The salvage value of the system at the end of its useful life...
-
A manufacturing firm entered into a 10-year contract for raw materials. The contract required an initial payment of $14,000 and $22,000 per year beginning at the end of the fourth year. The company...
-
Two electric motors are available to satisfy a continuous demand of 85 kW. Motor 1 has an initial cost of $5,500 with an operating efficiency of 91%. Motor 2 has an initial cost of $4,000 with an...
-
Explain details using the idea to answer the questions below: Idea: TOMS Shoes to get funding that allows them to work with local school districts to help them begin school-based counseling for...
-
What recommendations would you make to Big Four firms to help them (1) avoid confrontations with governmental officials in an authoritarian society and (2) deal effectively with such confrontations...
-
What are the primary themes or goals of U.S. national transportation policy?
-
Bobby Cook is trying to capture the attention of Black Friday shoppers for OptiShop, a discount chain with 1,500 stores in Canada and the United States. Bobby wants to offer a tabletop 3D printer at...
-
Robotics have attracted more attention in recent years. Why? How are robots being used in supply chains?
-
Use the Internet to access Home Depot's most recent annual report. a. What evidence did you find that Home Depot continues to rely on present worth analysis in its corporate decision making? b. Does...
-
Use an Internet search engine to identify three companies or agencies that use present worth analysis to make business decisions as evidenced in their annual reports.
-
Use the Internet to access ConocoPhillips's most recent annual report. a. What evidence do you find that ConocoPhillips continues to rely on present worth analysis in its corporate decision making?...
Study smarter with the SolutionInn App