Learn to Program with Scratch by Majed Marji
Author:Majed Marji
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / General
ISBN: 9781593275785
Publisher: No Starch Press
Published: 2014-02-20T00:00:00+00:00
Figure 6-10. The main script of the Tutor sprite
After asking the user to enter a choice, the Tutor sprite waits for the user’s input and uses three if/else blocks to process it. If the user entered a valid choice (that is, 1, 2, or 3), the script calls the appropriate procedure to calculate the area of the indicated shape. Otherwise, the script invokes the say command to inform the user that the choice entered is invalid. The procedures for calculating the areas of the three shapes are shown in Figure 6-11.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Art of Coaching Workbook by Elena Aguilar(48065)
Trainspotting by Irvine Welsh(20055)
Twilight of the Idols With the Antichrist and Ecce Homo by Friedrich Nietzsche(17706)
Fangirl by Rainbow Rowell(7834)
Periodization Training for Sports by Tudor Bompa(7328)
Change Your Questions, Change Your Life by Marilee Adams(6641)
This Is How You Lose Her by Junot Diaz(5773)
Grit by Angela Duckworth(4738)
Red Sparrow by Jason Matthews(4668)
Asking the Right Questions: A Guide to Critical Thinking by M. Neil Browne & Stuart M. Keeley(4576)
Paper Towns by Green John(4169)
Room 212 by Kate Stewart(4107)
Ken Follett - World without end by Ken Follett(3973)
The Sports Rules Book by Human Kinetics(3588)
Housekeeping by Marilynne Robinson(3401)
The Motorcycle Diaries by Ernesto Che Guevara(3332)
Introduction to Kinesiology by Shirl J. Hoffman(3301)
Exercise Technique Manual for Resistance Training by National Strength & Conditioning Association(3292)
Double Down (Diary of a Wimpy Kid Book 11) by Jeff Kinney(3273)