Answered step by step
Verified Expert Solution
Question
1 Approved Answer
9. In a super market, a bill is prepared for items purchased for each customer. Write a C+ + program to compute the total bill
9. In a super market, a bill is prepared for items purchased for each customer. Write a C+ + program to compute the total bill amount. Overload the operator pre-increment '+ + in bill such that it (10] finds the total bill amount. Subscript operator should be overloaded to return the it item in the bill. 10. Rekha's company develops a child educational software. One of the software module requires to print the sound of the animals based on the input by the child. [10) Rekha creates a base class Animal and derive the classes Dog and Cat from the base class. She also decides to create a virtual function "makeSound". Write a C++ Program to implement the above scenario and display the output as shown below. Dog barks Cat Meows Dog barks Cat Meows Dog barks 11. XYZ digital bank is providing e-commerce services and digital card to the customers. Write a C [1 program by creating a function PAY() which helps the customer to buy the products using the digital card. The minimum balance of the card should be Rs. 3000. When the digital card balance is less than the purchase amount Check the saving account balance of the customer, If the required balance is not sufficient in the savings account it will prompt the message to the customer. Otherwise it will automatically fill the minimum balance by crediting amount from the saving account balance. After the transaction, print customer name, account number, card balance and account balance in the main program. Use call by reference to pass the saving account balance from the main program to the function. 12. The mark scored by the students in science subjects are given below. A teacher wants to assign science projects to the students based on their science marks and grades. Write a C+ + program using function template to sort the marks and grades and help the teacher to assign the project to the students. Name Jim Lie Bon Ani Nil Roy Sam Don ken Ziu Marks 90 82 93. 95 87 80 63 97 55. 35 Grade S A S S A B ic S E F
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started