Find Jobs
Hire Freelancers

Small University Practice

€8-30 EUR

Cancelled
Posted almost 7 years ago

€8-30 EUR

Paid on delivery
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. Test 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: [login to view URL](), [login to view URL](), [login to view URL]()). 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​. Test 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.
Project ID: 14057859

About the project

6 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
hi, I'll take 30EUR(10EUR per code.) Let me know if you want me to start coding(I can complete this in 24 hours time.)
€30 EUR in 1 day
5.0 (2 reviews)
2.9
2.9
6 freelancers are bidding on average €32 EUR for this job
User Avatar
A proposal has not yet been provided
€30 EUR in 1 day
5.0 (4 reviews)
1.7
1.7
User Avatar
Hi, I am an experienced python developer and have already completed many different projects on Python. I am interested in working on your project for you and would be thankful if you could send me more details regarding the project.
€34 EUR in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SPAIN
Malaga, Spain
5.0
1
Payment method verified
Member since Jun 1, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.