Clear, simple and elegant object-oriented code is important. Avoid the minimum possible solution; Consider maintainability and extensibility by the demonstration of appropriate abstractions. A solution using the fewest possible lines of code is not the best option.
Part 1. Visitor
Create an interface or abstract base class 'Shape'.
Implement three concrete Shapes: 'Circle', 'Rectangle', 'Triangle'.
Apply the visitor pattern to your data model.
Write an AreaVisitor that computes the area of the shapes.
Write a program that makes arbitrary instances of the data model and applies the AreaVisitor.
Part 2. Multi Power Point
A power switch is required that can turn on or off any number of appliances. An appliance is for example a Blender, a Toaster, or an Oven.
Other programmers have already written those appliances and you can't change their source code (e.g. to require them all to implement a particular interface), or extend from those classes.
Fortunately, each such appliance already has two methods to turn its particular appliance on and off. Unfortunately, all such methods were written by different people and have different names (examples: [url removed, login to view](), [url removed, login to view](), [url removed, login to view]()).
Write three third party appliances and put them in a separate package. It should be visible from the output of each appliance whether it is turned on or off (in its third-party vocabulary).
Make a representation of a Multi Power Point. You can plug in as many appliances as you wish and turn them on and off all at once, by turning the multi power point on() and off(). Consider how you would model a real multi power point and make appropriate design choices.
Write a program that demonstrates your Multi Power Point.
Part 3. Paper Scissors Rock
Paper Scissors Rock is a game for two players. Each player simultaneously opens his/her hand to display a symbol:
Fist equals rock,
Open hand equals paper,
Showing the index and middle finger equals scissors.
The winner is determined by the following schema:
paper beats (wraps) rock,
rock beats (blunts) scissors,
scissors beats (cuts) paper.
Write a program that plays Paper Scissors Rock between the computer and a real player.
You should be able to play the game n times before the program exits.
Good option is to generalize from these requirements to demonstrate clear, maintainable and extensible code.
Sure, it sounds good. I am expert on Python. I am post-doc researcher at university in PAris. I can write this program easly.
7 freelance font une offre moyenne de €49 pour ce travail
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of ex Plus
Dear Hiring Manager, here's our official site please have a look [login to view URL] Thank you for this wonderful opportunity. Today Your job posting has caught my attention because I’m a looking for Plus
Hey client, I am a professional developer having a great passion for programming. I have good concepts about design pattern with industry [login to view URL] for your reply.
Hey there, I have understood the problem statements mentioned by you. I can do this in 2 days time. Regards Ankit
I believe that this project is suitable for me because u have the required skillset to complete the given task