Basic small introduction to OOP program in C++ NEED COMPLETE--24 HOURS!
$30-250 USD
In Progress
Posted almost 9 years ago
$30-250 USD
Paid on delivery
Create a set of classes which implement the following:
Create a base class which stores properties and has methods to act on a circle:
private properties should include radius and any other information you feel is required.
methods should include constructors (these should allow you to instantiate a circle with either a given radius or no parameters--if no parameters, decide if the circle should not exist or should be of a default radius).
you'll need a method to get the radius (and/or set the radius if it's not set by your constructor or if you'll allow people to change it).
You should allow people to cut the circle into an even number of slices. You need to set a minimum angle for slices (or outer edge length--if you don't want to do fancy math)--this will determine if someone trying to cut it into too many pieces--this should result in an error of some sort.
you'll need to store available or used slices.
you'll need methods to slice the circle (this should produce an error or some indication to the user it didn't work if the slices would be smaller than your minimum or if it's already been sliced)
You'll need methods to get/consume slices of your circle.
Once your circle is working, make 2 more classes (either both using your circle as a base or one you may have multiple generations depending on your design): One should handle pie and the other should handle pizza.
Pie has fillings. Pizza has toppings.
people should be able to create pie and pizza and eat the slices.
Pizza toppings can cover the whole pizza or each half of a pizza can have different toppings.
Pies have all the same filling,which may include multiple ingredients (for example,... apple vs. Banana + Walnut)
you should have methods to determine how many slices are left, whether it's been cut already, and if the pizza or pie are finished baking and ready to be served. (perhaps you need a bake method to bake the item once you've filled or topped it).
include some code which instantiates all 3 classes and uses all the methods (and public properties).
make sure you properly choose which methods are public vs private vs protected.
happy eating.
I have designed the concrete plant control system, Power Line Communication system and many
project. I have experience in developing the windows application using Java, VB.Net and MFC.
I also have experience in developing the MCU embedded system with C, C++ language.
And i designed the PHP e comencial page.
I can help you on this project. Thanks.
Hello, I'm a senior C#/C++ developer with 5 years experience in this domain. I'm sure I can deliver this project in 24 hours as you specified. Thank you