Click here to Skip to main content
15,908,909 members
Home / Discussions / Java
   

Java

 
AnswerRe: to Java or not to Java Pin
toxcct14-Aug-08 5:14
toxcct14-Aug-08 5:14 
GeneralRe: to Java or not to Java Pin
Electronic7514-Aug-08 6:22
Electronic7514-Aug-08 6:22 
GeneralRe: to Java or not to Java Pin
BlackWolvix21-Aug-08 0:36
BlackWolvix21-Aug-08 0:36 
GeneralRe: to Java or not to Java Pin
Electronic7521-Aug-08 17:24
Electronic7521-Aug-08 17:24 
GeneralRe: to Java or not to Java Pin
toxcct25-Aug-08 21:21
toxcct25-Aug-08 21:21 
GeneralRe: to Java or not to Java Pin
Electronic7526-Aug-08 3:56
Electronic7526-Aug-08 3:56 
GeneralRe: to Java or not to Java Pin
toxcct26-Aug-08 4:28
toxcct26-Aug-08 4:28 
Questionhelp please Pin
memo26014-Aug-08 2:24
memo26014-Aug-08 2:24 
i do not know how to do it....

please help me


task: Cattle Weighing Calculator

One job that a typical farmer needs to do from time to time is to record the individual weights of all his cattle. To do this, he records the number on the ear tag of each animal, along with its weight, which is output by a weighing platform in the cattle yards.

Your task is to program an application that will allow a farmer to record the cattle weight data, and then allow him to get certain kinds of useful information from the recorded data.

Your program should consist of a single form and two separate classes, Form.cs which provides the form functionality, and Queue.cs which provides a dynamic (linked list based) implementation for queues.

The data will be stored in a queue, where each node contains separate data fields for both tag number and weight, and a reference to the next item in the queue.

To begin with, your application should have a form including

a rich textbox, for output only
a textbox, labelled Tag Number, for input of animal ear tag numbers
a textbox, labeled Weight, for input of corresponding animal weights
a button Record
a button Print

When a number is entered into each of the textboxes and the Record button is clicked your program should

(i) Check that there is valid data in textbox; if not, display a suitable message, otherwise
(ii) Call the queue method enqueue to insert the appropriate record into the data queue.

When the Print button is clicked your program should

(i) Check that the data queue is not empty; if it is empty display a suitable message, otherwise
(ii) Call the queue method printQueue to print out to the rich textbox a list of the
(tag number, weight) pairs stored in the data queue.

You should get a first version of the program working that supports this part of the application.

must be written in C#. Frown | :(
QuestionHow do I create an array of objects and use the objects methods? Pin
Member 336349812-Aug-08 23:07
Member 336349812-Aug-08 23:07 
AnswerRe: How do I create an array of objects and use the objects methods? Pin
newtypebao13-Aug-08 15:55
newtypebao13-Aug-08 15:55 
AnswerRe: How do I create an array of objects and use the objects methods? Pin
toxcct13-Aug-08 22:26
toxcct13-Aug-08 22:26 
AnswerRe: How do I create an array of objects and use the objects methods? Pin
Asran.Deng28-Aug-08 17:52
Asran.Deng28-Aug-08 17:52 
QuestionHelp Required Pin
kash_jack11-Aug-08 2:09
kash_jack11-Aug-08 2:09 
Questiona problem about drools Pin
newtypebao6-Aug-08 17:11
newtypebao6-Aug-08 17:11 
AnswerRe: a problem about drools Pin
Reagan Conservative20-Aug-08 10:03
Reagan Conservative20-Aug-08 10:03 
AnswerRe: a problem about drools Pin
BlackWolvix21-Aug-08 0:41
BlackWolvix21-Aug-08 0:41 
AnswerResizing dynamically JTable rows with setRowHeight(int row, int height) and TableCellRenderer not working [modified] Pin
John XXIII5-Aug-08 13:42
John XXIII5-Aug-08 13:42 
QuestionScrolling Banner with message in opposite direction Pin
hisuman1004-Aug-08 19:11
hisuman1004-Aug-08 19:11 
AnswerRe: Scrolling Banner with message in opposite direction Pin
Reagan Conservative20-Aug-08 10:17
Reagan Conservative20-Aug-08 10:17 
QuestionIP Discovery protocol Pin
Smacky31131-Jul-08 6:55
Smacky31131-Jul-08 6:55 
QuestionNeed someone to test a Java application on Mac OS X Pin
MicealG29-Jul-08 8:55
MicealG29-Jul-08 8:55 
QuestionNetbeans data entry Pin
aecordoba23-Jul-08 10:44
aecordoba23-Jul-08 10:44 
AnswerRe: Netbeans data entry Pin
BlackWolvix24-Jul-08 23:29
BlackWolvix24-Jul-08 23:29 
GeneralRe: Netbeans data entry Pin
aecordoba29-Jul-08 6:36
aecordoba29-Jul-08 6:36 
GeneralRe: Netbeans data entry Pin
BlackWolvix1-Aug-08 0:13
BlackWolvix1-Aug-08 0:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.