Find Jobs
Hire Freelancers

cards

$30-100 USD

Completed
Posted over 20 years ago

$30-100 USD

Paid on delivery
*assignment *Make a Java program to keep track of one row of cards that the user has to put in a correct order. Each card has a value and a description of the order constraints. There are four sorts of cards with their corresponding constraints on the order: "must be smaller than previous", "must be larger than previous", "must be smaller than next", "must be larger than next". The *user interface* should be able to show at least two consecutive cards - a complete list of all cards is a nice extension. The minimal user actions are: ? Go to the next card. ? Go to the previous card. ? Swap two consecutive cards. ? Check whether the order constraints of all cards are satisfied. You may extend this functionality, but you should concentrate on these actions first. *materials* ? VisualCafé ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) directions The program need not do any ordering itself. It just supports the user actions. ? The total number of cards is not specified. You may choose the number of cards of eachsort. However, it should be easy to change the code in this respect, afterwards. The four sorts of cards correspond to four different subclasses of a common superclass. Define as much functionality as possible in the common superclass. Each sort of cards - including the superclass - has its own implementation of a method to check the constraints on the order. Use the same name and parameters in all five classes. Cards need not keep track of the previous and next card - that would be too difficult. Instead the check method of a card can receive the previous and next card as parameters. The engine should contain an array of cards (superclass). The actual elements of this array may be of any of the four subclasses. After the card objects have been created, the engine need not know the actual class of any card - it is enough to know that it is just some card. The engine is responsible for filling the row of cards with instances of the four subclasses. The initial order of the row is not very important. It should be impossible to move off either end of the row of cards. ## Platform Windows 98
Project ID: 3014200

About the project

10 proposals
Remote project
Active 20 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
See private message.
$42.50 USD in 6 days
4.9 (104 reviews)
4.9
4.9
10 freelancers are bidding on average $42 USD for this job
User Avatar
See private message.
$80.75 USD in 6 days
5.0 (160 reviews)
6.0
6.0
User Avatar
See private message.
$17 USD in 6 days
5.0 (80 reviews)
5.9
5.9
User Avatar
See private message.
$51 USD in 6 days
5.0 (43 reviews)
5.9
5.9
User Avatar
See private message.
$28.90 USD in 6 days
5.0 (126 reviews)
4.7
4.7
User Avatar
See private message.
$68 USD in 6 days
5.0 (56 reviews)
3.9
3.9
User Avatar
See private message.
$8.50 USD in 6 days
4.9 (6 reviews)
2.3
2.3
User Avatar
See private message.
$42.50 USD in 6 days
5.0 (2 reviews)
1.6
1.6
User Avatar
See private message.
$34 USD in 6 days
4.8 (5 reviews)
0.9
0.9
User Avatar
See private message.
$42.50 USD in 6 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of GERMANY
Germany
3.8
3
Member since Nov 19, 2003

Client Verification

Other jobs from this client

friends
$30-50 USD
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.