Find Jobs
Hire Freelancers

cards

$30-100 USD

已完成
已发布超过 20 年前

$30-100 USD

货到付款
*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
项目 ID: 3014200

关于此项目

9提案
远程项目
活跃20 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$42.50 USD 在6天之内
4.9 (104条评论)
4.9
4.9
9威客以平均价$41 USD来参与此工作竞价
用户头像
See private message.
$17 USD 在6天之内
5.0 (80条评论)
5.9
5.9
用户头像
See private message.
$80.75 USD 在6天之内
5.0 (159条评论)
6.0
6.0
用户头像
See private message.
$28.90 USD 在6天之内
5.0 (126条评论)
4.7
4.7
用户头像
See private message.
$68 USD 在6天之内
5.0 (56条评论)
3.9
3.9
用户头像
See private message.
$8.50 USD 在6天之内
4.9 (6条评论)
2.3
2.3
用户头像
See private message.
$42.50 USD 在6天之内
5.0 (2条评论)
1.6
1.6
用户头像
See private message.
$34 USD 在6天之内
4.8 (5条评论)
0.9
0.9
用户头像
See private message.
$42.50 USD 在6天之内
0.0 (0条评论)
0.0
0.0

关于客户

GERMANY的国旗
Germany
3.8
3
会员自11月 19, 2003起

客户认证

这个客户的其他工作

friends
$30-50 USD
谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。