Click here to Skip to main content
15,889,704 members
Home / Discussions / C#
   

C#

 
AnswerRe: Page Folding Effect Pin
Software_Developer24-Apr-10 23:17
Software_Developer24-Apr-10 23:17 
QuestionCalling OpenGL code in a managed DLL from a C# app Pin
Keith Vitali24-Apr-10 21:42
Keith Vitali24-Apr-10 21:42 
AnswerRe: Calling OpenGL code in a managed DLL from a C# app Pin
Michael J. Eber26-Apr-10 11:54
Michael J. Eber26-Apr-10 11:54 
QuestionWindows Form Background Pin
Khaniya24-Apr-10 21:32
professionalKhaniya24-Apr-10 21:32 
AnswerRe: Windows Form Background Pin
Michel Godfroid24-Apr-10 22:25
Michel Godfroid24-Apr-10 22:25 
QuestionBrightness and Contrast Jpeg Pin
Iain Wiseman24-Apr-10 21:31
Iain Wiseman24-Apr-10 21:31 
Questioncopy the image of picturebox to anywhere of my computer Pin
guomouren24-Apr-10 21:08
guomouren24-Apr-10 21:08 
QuestionAbstract Class Pin
future383924-Apr-10 14:00
future383924-Apr-10 14:00 
Hi everyone, Could you please help me regarding coding this program. I am a beginner and need your help
===============================================================================

There are 4 fish species in the river, which you may catch:
Australian Bass (Macquaria novemaculeata) - commonly less than 4 Kg; excellent eating, when less
than 2.5 Kg.
Short Finned Eel (Anguilla australis)- commonly less than 3 Kg; a good eating fish.
Eel Tailed Catfish (Tandanus tandanus) - Up to 6.8 Kg; excellent eating, when less than 4 Kg.
Gippsland Perch (Macquaria colonorum)- commonly less then 10 Kg; excellent eating when up to
6 Kg.
You should assume that:
· The chances to catch a fish of each of these four species are equal.
· Weights of fishes of the same species are distributed evenly and range from 0 to the
Maximal Weight. The value of Maximal Weight for each of the species is given above.
You start fishing with an empty basket. If you catch a fish with weight less than 500 g or greater
than the recommended excellent eating maximum, you release it. Otherwise put it in the basket.
Stop fishing immediately as soon as the total weight of all the fishes in the basket exceeds 15 Kg.
To model the situation, you are supposed to use the Random class’ Next method.
Fishes of different species must be implemented as objects of different classes, each extending an
abstract class Fish.
Whenever the branching logic is required to handle fish objects of different species, you must do it
polymorphically.
All weights appearing in the program are given in grams, e.g. instead of 3 Kg we will use 3000g.
Therefore use int variables to represent them.
1. Abstract class Fish. The class should have:
· A field – protected int weight + corresponding property.
· Abstract read-only properties – Name, ScientificName, and Acceptable.
· The method - public override string ToString().
AnswerRe: Abstract Class Pin
future383924-Apr-10 15:07
future383924-Apr-10 15:07 
GeneralRe: Abstract Class Pin
PIEBALDconsult24-Apr-10 16:37
mvePIEBALDconsult24-Apr-10 16:37 
GeneralRe: Abstract Class Pin
future383924-Apr-10 16:48
future383924-Apr-10 16:48 
GeneralRe: Abstract Class Pin
future383924-Apr-10 21:22
future383924-Apr-10 21:22 
GeneralRe: Abstract Class Pin
OriginalGriff24-Apr-10 21:29
mveOriginalGriff24-Apr-10 21:29 
GeneralRe: Abstract Class Pin
DaveyM6924-Apr-10 22:53
professionalDaveyM6924-Apr-10 22:53 
GeneralRe: Abstract Class Pin
Eddy Vluggen24-Apr-10 22:56
professionalEddy Vluggen24-Apr-10 22:56 
GeneralRe: Abstract Class Pin
future383925-Apr-10 13:45
future383925-Apr-10 13:45 
GeneralRe: Abstract Class Pin
future383925-Apr-10 17:06
future383925-Apr-10 17:06 
GeneralRe: Abstract Class Pin
Eddy Vluggen25-Apr-10 23:14
professionalEddy Vluggen25-Apr-10 23:14 
GeneralRe: Abstract Class Pin
Calla26-Apr-10 1:07
Calla26-Apr-10 1:07 
GeneralRe: Abstract Class Pin
Eddy Vluggen26-Apr-10 1:20
professionalEddy Vluggen26-Apr-10 1:20 
GeneralRe: Abstract Class Pin
future383926-Apr-10 1:44
future383926-Apr-10 1:44 
QuestionHow to send & receive sms via gsm modem ? Pin
hdv21224-Apr-10 9:39
hdv21224-Apr-10 9:39 
AnswerRe: How to send & receive sms via gsm modem ? Pin
Md. Marufuzzaman24-Apr-10 20:35
professionalMd. Marufuzzaman24-Apr-10 20:35 
GeneralRe: How to send & receive sms via gsm modem ? Pin
hdv21225-Apr-10 10:34
hdv21225-Apr-10 10:34 
QuestionBest way for windows application with good performance , SQL & Oracle support? Pin
anand kumar m24-Apr-10 5:51
anand kumar m24-Apr-10 5:51 

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.