Question: create c + + program.You are creating a programme to sell cakes and biscuits for Eid. The situation in which the programme will be utilised
create c program.You are creating a programme to sell cakes and biscuits for Eid. The situation in which the programme will be utilised must be defined. To figure out the selling price, you may, for instance, create a programme with the ability to handle different kinds of cakes and cookies and their prices. Additionally, you might be able to choose to base the price on a predetermined weight or a perpiece basis.
You can also provide exclusive rates or discounts that are predicated on predetermined values. The ideas of composition, friend functions, inheritance, and operator overloading should all be incorporated into the program's architecture. It is possible to creatively adjust the program's complexity and capabilities.
You must specify the situation precisely in order to guarantee that classes, inheritance, and composition have meaningful relationships. Program Restrictions:
You must NOT use global variables unless it is a type const
You must NOT use vector, list, queue, or any possible data structure provided by the
builtin C library.
You must NOT use or any other pre
processor that has never been used during classes and tutorials. You may use only
preprocessor directives that you have learned during your class and lab sessions.
You MUST use multiple files inclusion.
Must not create public member variables.
Must not have friend classes.
Composition objects must be of type private.
You MUST use input file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
