this is the Question of object oriented programming  write answer in  a program Mr.Fayyaz is a milkman who is supplying milk to many customer. Each customer has its name CNIC Home_Address and phone number. Mr Fayyaz wants to keep the track of daily milk supply quantity and price. He also wants to monthly record of each customer. Customer could also login and use the milkman application to view its bill. Mr Fayyaz could see the total sales of each customer. The milk has two types buffalo milk and cow milk. Mr Fayyaz also want to maintain the record of workers in the application.   functionality of   Searching of a customer by its name the project would be able display the details e.g.  Customer CNIC and Address etc. Searching a customer bill detail the project would be able to display its monthly details of milk, quantity, and total bill. Searching a milk detail date wise, it means when milkman search for milk detail by giving the month, the project should be able to display the details of milk and its quantity sold in a month.  The project should be able to count the number of customer. Hint (using the static object) The milkman should be able to enter the milk record, should be able to update a delete any record.   All the records should be properly saved in the file using file handling. All classes should be clearly identified and code as the object oriented rules. Getter, setter constructor should be clearly coded. Inheritance should be applied to the classes. Operator overloading and overriding should also be applied. Add a friend class. Add virtual function in the project. Add a namespace in your project. Apply some exception handling in the project.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

this is the Question of object oriented programming 

write answer in  a program

Mr.Fayyaz is a milkman who is supplying milk to many customer. Each customer has its name CNIC Home_Address and phone number. Mr Fayyaz wants to keep the track of daily milk supply quantity and price. He also wants to monthly record of each customer. Customer could also login and use the milkman application to view its bill. Mr Fayyaz could see the total sales of each customer. The milk has two types buffalo milk and cow milk. Mr Fayyaz also want to maintain the record of workers in the application.

 

functionality of

 

Searching of a customer by its name the project would be able display the details e.g.  Customer CNIC and Address etc.

Searching a customer bill detail the project would be able to display its monthly details of milk, quantity, and total bill.

Searching a milk detail date wise, it means when milkman search for milk detail by giving the month, the project should be able to display the details of milk and its quantity sold in a month. 

The project should be able to count the number of customer. Hint (using the static object)

The milkman should be able to enter the milk record, should be able to update a delete any record.

 

  1. All the records should be properly saved in the file using file handling.
  2. All classes should be clearly identified and code as the object oriented rules.
  3. Getter, setter constructor should be clearly coded.
  4. Inheritance should be applied to the classes.
  5. Operator overloading and overriding should also be applied.
  6. Add a friend class.
  7. Add virtual function in the project.
  8. Add a namespace in your project.
  9. Apply some exception handling in the project.

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Data members
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education