Find Jobs
Hire Freelancers

cards

$30-100 USD

Terminado
Publicado hace más de 20 años

$30-100 USD

Pagado a la entrega
*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 del proyecto: 3014200

Información sobre el proyecto

9 propuestas
Proyecto remoto
Activo hace 20 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$42,50 USD en 6 días
4,9 (104 comentarios)
4,9
4,9
9 freelancers están ofertando un promedio de $41 USD por este trabajo
Avatar del usuario
See private message.
$17 USD en 6 días
5,0 (80 comentarios)
5,9
5,9
Avatar del usuario
See private message.
$80,75 USD en 6 días
5,0 (159 comentarios)
6,0
6,0
Avatar del usuario
See private message.
$28,90 USD en 6 días
5,0 (126 comentarios)
4,7
4,7
Avatar del usuario
See private message.
$68 USD en 6 días
5,0 (56 comentarios)
3,9
3,9
Avatar del usuario
See private message.
$8,50 USD en 6 días
4,9 (6 comentarios)
2,3
2,3
Avatar del usuario
See private message.
$42,50 USD en 6 días
5,0 (2 comentarios)
1,6
1,6
Avatar del usuario
See private message.
$34 USD en 6 días
4,8 (5 comentarios)
0,9
0,9
Avatar del usuario
See private message.
$42,50 USD en 6 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de GERMANY
Germany
3,8
3
Miembro desde nov 19, 2003

Verificación del cliente

Otros trabajos de este cliente

friends
$30-50 USD
¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.