Click here to Skip to main content
15,923,910 members
Home / Discussions / C#
   

C#

 
GeneralRe: code snippet Pin
Gareth H31-Mar-08 4:22
Gareth H31-Mar-08 4:22 
GeneralRe: code snippet Pin
carbon_golem1-Apr-08 3:02
carbon_golem1-Apr-08 3:02 
QuestioncheckBox and datagrid Pin
Metik31-Mar-08 2:14
Metik31-Mar-08 2:14 
AnswerRe: checkBox and datagrid Pin
Rajesh R Subramanian31-Mar-08 2:53
professionalRajesh R Subramanian31-Mar-08 2:53 
Generalconstructors in VisualC#.NET Pin
shaheen1331-Mar-08 1:38
shaheen1331-Mar-08 1:38 
GeneralRe: constructors in VisualC#.NET Pin
J4amieC31-Mar-08 1:39
J4amieC31-Mar-08 1:39 
GeneralRe: constructors in VisualC#.NET Pin
Malcolm Smart31-Mar-08 1:41
Malcolm Smart31-Mar-08 1:41 
GeneralRe: constructors in VisualC#.NET Pin
Pete O'Hanlon31-Mar-08 1:46
mvePete O'Hanlon31-Mar-08 1:46 
Malcolm Smart wrote:
1.Create an IceCreamConeException class whose constructor receives a string that consists of an ice cream flavor and number of scoops.
2. Create an IceCreamCone class with two fields:
• IceCreamFlavor
• Scoops

3. The IceCreamCone constructor calls two data-entry methods:
• GetFlavor(), which throws an IceCreamConeException if the flavor isn’t one of the following: vanilla, chocolate, strawberry, peach, or banana.
• GetScoops(), which throws an IceCreamConeException when the scoop quantity exceeds 3.

4. Create a program that establishes several IceCreamCone objects and handles any throw IceCreamConeExceptions.
5. Save your program.
6. Now “build” your program

Can sumone plz help me with this..its urgent....


Not sure about the rest of it, but Ctrl+S will help with step 5 and Ctrl+B should get you past step 6.

Good luck with the others. Be sure to post back with the grade you get!


Good advice. Of course, I'm disturbed at how poor the requirements are for this. For instance, a constructor calling either a poorly named method, or a really dodgy implementation. I'm sorry, but this whole mess would need to be redesigned and the tutor will be awarded an F for this very poor design.


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: constructors in VisualC#.NET Pin
carbon_golem31-Mar-08 1:56
carbon_golem31-Mar-08 1:56 
GeneralRe: constructors in VisualC#.NET Pin
Rajesh R Subramanian31-Mar-08 2:35
professionalRajesh R Subramanian31-Mar-08 2:35 
GeneralRe: constructors in VisualC#.NET Pin
Pete O'Hanlon31-Mar-08 1:43
mvePete O'Hanlon31-Mar-08 1:43 
GeneralRe: constructors in VisualC#.NET Pin
nelo_31-Mar-08 1:57
nelo_31-Mar-08 1:57 
GeneralRe: constructors in VisualC#.NET Pin
Pete O'Hanlon31-Mar-08 2:18
mvePete O'Hanlon31-Mar-08 2:18 
GeneralRe: constructors in VisualC#.NET Pin
Malcolm Smart31-Mar-08 2:49
Malcolm Smart31-Mar-08 2:49 
GeneralRe: constructors in VisualC#.NET Pin
Pete O'Hanlon31-Mar-08 2:55
mvePete O'Hanlon31-Mar-08 2:55 
GeneralRe: constructors in VisualC#.NET Pin
carbon_golem31-Mar-08 2:21
carbon_golem31-Mar-08 2:21 
GeneralRe: constructors in VisualC#.NET Pin
Scott Dorman1-Apr-08 7:28
professionalScott Dorman1-Apr-08 7:28 
GeneralRe: constructors in VisualC#.NET Pin
Rajesh R Subramanian31-Mar-08 2:50
professionalRajesh R Subramanian31-Mar-08 2:50 
GeneralRe: constructors in VisualC#.NET Pin
Pete O'Hanlon31-Mar-08 2:57
mvePete O'Hanlon31-Mar-08 2:57 
GeneralRe: constructors in VisualC#.NET Pin
Kevin McFarlane31-Mar-08 2:56
Kevin McFarlane31-Mar-08 2:56 
GeneralNotification From Problem Pin
half-life31-Mar-08 1:11
half-life31-Mar-08 1:11 
GeneralRe: Notification From Problem Pin
Pete O'Hanlon31-Mar-08 1:41
mvePete O'Hanlon31-Mar-08 1:41 
GeneralRe: Notification From Problem Pin
half-life31-Mar-08 2:19
half-life31-Mar-08 2:19 
GeneralPicklist - How to display a picklist in a datagrid Pin
amdacc31-Mar-08 0:55
amdacc31-Mar-08 0:55 
GeneralRe: Picklist - How to display a picklist in a datagrid Pin
J4amieC31-Mar-08 1:00
J4amieC31-Mar-08 1:00 

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.