alice-teacher Extended If Question

Wanda Dann wpdann at andrew.cmu.edu
Wed Mar 5 20:29:21 EST 2014


Hi Donald,

Just wanted to say that a "switch" structure generally works best with
some form of a "break" for each possible choice within the code block...
But, break just doesn't fit well with our emphasis on fundamental
concepts and building an intuitive sense of objecta and Object Oriented 
Programming.

So, we have avoided the switch... even though I must admit it is a cool
code block and one that I really like to use in a Programming Languages
course as a way to discuss programming language similarities and 
differences
with more advanced students.

btw -- great question. :-)

Wanda

On 3/5/14, 2:38 PM, Donald Cook wrote:
> Hi Don,
> saw this question and wondered if an implementation of switch would be 
> better in this case?
>
> Best Regards
> Donald Cook
> /A torn jacket is soon mended; but hard words bruise the heart of a 
> child./
> H. W. Longfellow (1807-1882)
>
>
>
> On 5 March 2014 17:17, Don Slater <dslater at andrew.cmu.edu 
> <mailto:dslater at andrew.cmu.edu>> wrote:
>
>     Neil,
>     If I understand you correctly, using embedding an if-else inside
>     of an if or an else by dragging and dropping is the only way that
>     this is possible in Alice. Are you suggesting that a drop down
>     menu option might be useful here?
>
>     Later,
>     Don Slater
>
>     On Mar 5, 2014, at 9:50 AM, Neil Ascione
>     <neil.ascione at pequannock.org <mailto:neil.ascione at pequannock.org>>
>     wrote:
>
>>     Hi Don!
>>
>>     Hope all is well!
>>
>>     I'm very new to the Alice interface and trying to implement an
>>     Extended If
>>     ie:
>>
>>     if (intChoice == 0)
>>        name = "Fred"
>>     else if (intChoice ==1)
>>        name = "Ed"
>>     else if (intChoice == 2)
>>        name = "Ned"
>>     else
>>        name = "Johnson"
>>
>>     I may very well be missing something obvious - but I only see
>>     drag and drop functionality for an if-else.  I can embed those,
>>     but is there another way to do this?
>>
>>     Thanks!
>>     Neil
>>
>>
>>     On Tue, Mar 4, 2014 at 9:21 PM,
>>     <alice-teachers-request at lists.andrew.cmu.edu
>>     <mailto:alice-teachers-request at lists.andrew.cmu.edu>> wrote:
>>
>>         Send alice-teachers mailing list submissions to
>>         alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>
>>
>>         To subscribe or unsubscribe via the World Wide Web, visit
>>         https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>>         or, via email, send a message with subject or body 'help' to
>>         alice-teachers-request at lists.andrew.cmu.edu
>>         <mailto:alice-teachers-request at lists.andrew.cmu.edu>
>>
>>         You can reach the person managing the list at
>>         alice-teachers-owner at lists.andrew.cmu.edu
>>         <mailto:alice-teachers-owner at lists.andrew.cmu.edu>
>>
>>         When replying, please edit your Subject line so it is more
>>         specific
>>         than "Re: Contents of alice-teachers digest..."
>>
>>
>>         Today's Topics:
>>
>>            1. Re:  A2/A3 Textbooks (Gilbert Stankiewicz)
>>            2. Re:  A2/A3 Textbooks (Lori Fuller)
>>
>>
>>         ----------------------------------------------------------------------
>>
>>         Message: 1
>>         Date: Tue, 4 Mar 2014 08:09:05 -0500
>>         From: Gilbert Stankiewicz <gilbert at cpcs.us
>>         <mailto:gilbert at cpcs.us>>
>>         Subject: Re: alice-teacher A2/A3 Textbooks
>>         To: Alice educators <alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>>
>>         Message-ID:
>>         <CABQ+sfxQYw7y42X7LLOnb7G2=_=-C=HMxQ8woL5NbuwD1uYPAA at mail.gmail.com
>>         <mailto:HMxQ8woL5NbuwD1uYPAA at mail.gmail.com>>
>>         Content-Type: text/plain; charset="iso-8859-1"
>>
>>         LaShonda,
>>
>>         I'm just getting started with the text "Learning Java Through
>>         Alice" by
>>         Tebring Daly and Eileen Wrigley, ISBN 9781491073933.  Using
>>         the NetBeans
>>         Alive plugin, students can import programs created in Alice
>>         3.1 into the
>>         NetBeans IDE.  They can then examine and modify the code
>>         directly in
>>         NetBeans.  The text guides the student through the process
>>         while also
>>         introducing Java programming.
>>
>>         This is the only text I found that combines Alice 3.1
>>         programming with
>>         Java. I am quite excited about the possibilities this
>>         provides for the
>>         small class of high school seniors in the course.
>>
>>         Gilbert
>>
>>
>>         On Mon, Mar 3, 2014 at 9:02 PM, LaShonda Torbert <
>>         LTorbert at stoneridgeschool.org
>>         <mailto:LTorbert at stoneridgeschool.org>> wrote:
>>
>>         > Hi,
>>         >
>>         > I was just wondering if anyone uses a textbook with Alice.
>>         If you do, what
>>         > are your recommendations for a textbook? If you don?t use a
>>         textbook, are
>>         > there other resources that you use?
>>         >
>>         > I will be teaching a class for the first time, and I?m just
>>         curious about
>>         > what other teachers do for Alice at the high school level.
>>         I had a class
>>         > that used Alice in college that didn?t use a textbook, and
>>         we were fine
>>         > with just the teacher?s notes.
>>         >
>>         > Thanks,
>>         > LaShonda
>>         >
>>         > LaShonda Torbert
>>         > Upper School Science Department-Physics Teacher
>>         > 301.657.4322 ext 660 <tel:301.657.4322%20ext%20660>
>>         > Ltorbert at stoneridgeschool.org
>>         <mailto:Ltorbert at stoneridgeschool.org>
>>         >
>>         >
>>         >
>>         >
>>         >
>>         >
>>         > On 3/3/14, 3:15 PM, "Don Slater" <dslater at andrew.cmu.edu
>>         <mailto:dslater at andrew.cmu.edu>> wrote:
>>         >
>>         > >It might be helpful to the community when posting, to put
>>         (A2) for Alice
>>         > >2, or (A3) for Alice 3 subjects. This will clarify the
>>         context of the
>>         > >question, and probably generally helpful.
>>         > >
>>         > >And of course, if it is a general question, please feel
>>         free to ignore
>>         > >the request ;-)
>>         > >
>>         > >Thank you,
>>         > >Don Slater
>>         > >
>>         > >_______________________________________________
>>         > >alice-teachers mailing list
>>         > >alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>
>>         > >https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>>         >
>>         > _______________________________________________
>>         > alice-teachers mailing list
>>         > alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>
>>         > https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>>         >
>>
>>
>>
>>         --
>>         Gilbert Stankiewicz
>>         Mathematics Teacher
>>         Colton-Pierrepont Central School
>>         Colton, NY 13625
>>
>>         (315) 262-2100 <tel:%28315%29%20262-2100>
>>         http://cpcs.us <http://cpcs.us/>
>>         -------------- next part --------------
>>         An HTML attachment was scrubbed...
>>         URL:
>>         http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140304/33c29c35/attachment-0001.html
>>
>>         ------------------------------
>>
>>         Message: 2
>>         Date: Tue, 04 Mar 2014 08:15:26 -0500
>>         From: "Lori Fuller" <lori.fuller at browardschools.com
>>         <mailto:lori.fuller at browardschools.com>>
>>         Subject: Re: alice-teacher A2/A3 Textbooks
>>         To: alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>
>>         Message-ID:
>>         <fc.0119ec074cd75e103b9aca004c11d0c3.4cd765be at browardschools.com
>>         <mailto:fc.0119ec074cd75e103b9aca004c11d0c3.4cd765be at browardschools.com>>
>>         Content-Type: text/plain; charset="utf-8"
>>
>>         Alice educators <alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>> on March 3, 2014 at
>>         9:02 PM -0500 wrote:
>>         >I was just wondering if anyone uses a textbook with Alice.
>>         If you do, what
>>         >are your recommendations for a textbook? If you don?t use a
>>         textbook, are
>>         >there other resources that you use?
>>         >
>>         >I will be teaching a class for the first time, and I?m just
>>         curious about
>>         >what other teachers do for Alice at the high school level. I
>>         had a class
>>         >that used Alice in college that didn?t use a textbook, and
>>         we were fine
>>         >with just the teacher?s notes.
>>
>>         Learning to Program with Alice, 3rd Ed. is an excellent
>>         resource. I'm
>>         hoping they are coming out with 4th Ed. soon... It provides good
>>         instruction on how to program using Alice and has many
>>         opportunities for
>>         practice and understanding. Along with the tutorials provided
>>         on Duke's
>>         website, I've managed to fill 3/4 of the year so far.
>>
>>         I am reviewing several books for the Alice 3, but not found
>>         one I like for
>>         everything. May need to combine with a JAVA programming text
>>         to fill an
>>         entire year.
>>
>>
>>
>>         thanks,
>>
>>         Lori Fuller, M.Ed.
>>         Monarch High School
>>         Career Technology Department Head
>>         Technology Coordinator
>>         Asst. Athletic Director
>>
>>         "A posse ad esse", from possibility to actuality...
>>
>>         [Image:photo.JPG]
>>
>>         Under Florida law, e-mail addresses, and all communications,
>>         including
>>         e-mail communications, made or received in connection with
>>         the transaction
>>         of School Board business are public records, which must be
>>         retained as
>>         required by law and must be disclosed upon receipt of a
>>         public records
>>         request, except as may be excluded by federal or state laws.
>>          If you do
>>         not want your e-mail address released in response to a public
>>         records
>>         request, do not send electronic mail to this entity. Instead,
>>         contact this
>>         office by phone or in writing.
>>
>>
>>         -------------- next part --------------
>>         An HTML attachment was scrubbed...
>>         URL:
>>         http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140304/1c8029fe/attachment.html
>>         -------------- next part --------------
>>         A non-text attachment was scrubbed...
>>         Name: 3414_81240_0.jpg
>>         Type: image/jpeg
>>         Size: 80231 bytes
>>         Desc: not available
>>         Url :
>>         http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140304/1c8029fe/attachment.jpg
>>
>>         ------------------------------
>>
>>         _______________________________________________
>>         alice-teachers mailing list
>>         alice-teachers at lists.andrew.cmu.edu
>>         <mailto:alice-teachers at lists.andrew.cmu.edu>
>>         https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>>
>>
>>         End of alice-teachers Digest, Vol 44, Issue 4
>>         *********************************************
>>
>>
>>     _______________________________________________
>>     alice-teachers mailing list
>>     alice-teachers at lists.andrew.cmu.edu
>>     <mailto:alice-teachers at lists.andrew.cmu.edu>
>>     https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
>
>     _______________________________________________
>     alice-teachers mailing list
>     alice-teachers at lists.andrew.cmu.edu
>     <mailto:alice-teachers at lists.andrew.cmu.edu>
>     https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
>
>
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140305/cf844869/attachment.html 


More information about the alice-teachers mailing list