CS 100 Introduction to Computing Introduction to JES Developed by Mark Guzdial, Georgia Institute of Technology, 20032004; modified by Robert H. Sloan & Pat Troy, University of Illinois at Chicago, 2005, for educational use. Installation Installing JES and starting it up Windows users:
Mac OS X users: Just copy the folder from the CD Double-click JES application Just drag (i.e., copy) JES from Mac folder into your Applications
Double-click JES application Enter a blank in the form for turnin (we probably wont use) There is always the Help Menu (Take a look at it) Lots and lots of excellent help We will program in JES
JES: Jython Environment for Students A simple editor (for entering in our programs): Well call that the program area A command area for entering in commands for Python to execute. JES - Jython Environment for Students Program Area Command Area Tour of JES
Save and Save As Cut/Copy/Paste with shortcut keys Turnin TA will give instructions for submitting your Jython This will start with Lab 10; theyre in the lab Help
Explain is contextualized help: Highlight a JES (media) function Lots of help on mediatools and the like Python understands commands We can name data with = (assignment operator) We can print values, expressions, anything with print
Command Area Editing Up/down arrows walk through command history You can edit the line at the bottom Just put the cursor at the end of the line before hitting Return/Enter. Demonstrating JES for files and sounds >>> print pickAFile() /Users/guzdial/mediasources/barbara.jpg
>>> show(mypicture) Writing a recipe: Making our own functions To make a function, use the command def Then, the name of the function, and the names of the
input values between parentheses ((input1)) End the line with a colon (:) The body of the recipe is indented (Hint: Use two spaces) Thats called a block Making functions the easy way
Get something working by typing commands Enter the def command. Copy-paste the right commands up into the recipe A recipe for playing picked sound files def pickAndPlay(): myfile = pickAFile() mysound = makeSound(myfile) play(mysound) Note: myfile and mysound, inside pickAndPlay(), are completely different from the same names in the command area.
Blocking is indicated for you in JES Statements that are indented the same, are in the same block. Statements that are in the same block as where the line where the cursor is are enclosed in a blue box.
A function for playing picked picture files def pickAndShow(): myfile = pickAFile() mypict = makePicture(myfile) show(mypict) The Most Common JES Bug: Forgetting to Load Your function does NOT exist for JES until you load it
Before you load it, the program is just a bunch of characters. Loading encodes it as an executable function Save and Save As You must Save before Loading
You must Load before you can use your function What if you forget your variable names? showVars() JES - Help Menu The help menu is very very useful. Before you start, make sure you take a look at Getting Started with JES and Programming in Jython. MOST IMPORTANT THING TO DO TO PASS THIS CLASS!
DO THE EXAMPLES! Try them out for yourself. Try to replicate them. Understand them EVERY WEEK, TYPE IN AT LEAST TWO OF THE EXAMPLES FROM CLASS and/or THE TEXTBOOK
To understand a program means that you know why each line is there. You will encounter all the simple-but-confusing errors earlyBEFORE you are rushing to get homework done!!
THE LATER MIDDLE AGES: 1300-1450 Learning Objective: Students will understand the evolution of European society from antiquity through the Later Middle Ages and analyze the ways in which religious, economic, and social upheaval affected late-Medieval society. Major Periods in European...
Instructor would get login and would then provide logins to students Valerie Taylor will be coordinator so if we want to offer this way, need to coordinate through Valerie NOTE: Have to send in EIF Approved Provider application months in...
Smart-Board™ Advanced Feature Module. Optional advanced feature provides NAFEM data protocol on screen for early alert and fast diagnosis of operating issues. Allows for programming bin levels, checking cleaning history and runtime, and more.
SBI Account opening. Digital Services *GST*RECHARGE*UTILITY*Banking*Money Transfer*Insurance*Adhar*PAN* E-gov. Insurance Service. Money Transfer Service. ITR Return Filling. All exam form fill up(SSC/Banking etc) Admit card/Result Service. Marriage Registration. DRIVING License Service.
Deploying their legacy solution to protect VMware was a full time job and they still couldn't find and restore individual files fast enough to meet their restore time objectives (RTO) Organizational Problem. VMware admin team manager told us "We use...
The Evolution, Functions and Characteristics of Money. AP Economics. The Evolution of Money. Barter Economy-moneyless economy that relies on trade or barter . Problems-products some people offer are not always acceptable or easy to divide for payment.
Ready to download the document? Go ahead and hit continue!