What IDLE version are you using for ECT109? How did you find the information? Wh
ID: 3661837 • Letter: W
Question
What IDLE version are you using for ECT109? How did you find the information?
What is the command to assign a variable label of x? Set the memory location to a value of 25.
What is the command to print the contents of variable x?
What is the command to print the contents of variable x + 12?
Is x + hello world a valid command? If not, why?
What is the command to create a comment? Why should comments be included in programs?
What is the command to prompt the user for an input?
Where can a user find help for IDLE?
Using the Internet, list three projects that can be performed with the Raspberry Pi.
Explanation / Answer
What is the command to create a comment? Why should comments be included in programs?
The rem command is indeed for comments. It doesn't inherently update anyone after running the script. Some script authors might use it that way instead of echo, though, because by default the batch interpreter will print out each command before it's processed. Since rem commands don't do anything, it's safe to print them without side effects. To avoid printing a command, prefix it with @, or, to apply that setting throughout the program, run @echo off. (It's echo off to avoid printing further commands; the @ is to avoid printing that command prior to the echo setting taking effect.)
So, in your batch file, you might use this:
Comments allow others to understand your code, and can refresh your memory when you return to it later.
What is the command to prompt the user for an input?
I have a Windows .bat file which I would like to accept user input and then use the results of that input as part of the call to additional commands.
For example, I'd like to accept a process ID from the user, and then run jstack against that ID, putting the results of the jstack call into a file. However, when I try this, it doesn't work.
Here's my sample bat file contents:
and here's what shows up in jstack.txt:
Where can a user find help for IDLE?
Using the Internet, list three projects that can be performed with the Raspberry Pi.
Make a Kodi streamer:
Kodi is one of the best streaming platforms available, letting you experience local and internet-based content on anything from your smartphone to anAmazon Fire TV Stick. Oh, and it’s also available on the Raspberry Pi 2. If you want to experience the benefits of Kodi, the Raspberry Pi 2 is more than powerful enough, and installing the streaming software is pretty straightforward, too.
Create a wireless extender:
Nothing highlights the versatility of a Raspberry Pi quite like this project (other than the Gameboy below). With an USB Wi-Fi dongle, a microSD card and the Rapsberry Pi itself, you increase the reach of your wireless signal.
Guy Eastwood has created the excellent Pi-Point website, which takes you through everything you need to know about this project. Follow the link and you'll find detailed documentation and free downloadable images to help you.
Make a Gameboy:
No, seriously. This is a legitimate and doable project for the more advanced user. In terms of the actual coding, it isn't the most challenging; you're essentially installing an emulator on your Raspberry Pi. The actual hard work comes in the form of soldering the different pieces together.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.