
Educators: Earn a free Gold upgrade by joining the PBwiki Back To School Challenge.
Take the test -
Save it to your desktop.
Nothing other than open office should be open during the exam.
Print it two pages to a sheet.
Survey -
If the survey does not show up, go to the options, privacy tab, clear privacy now.
Or you could use a different browser.
Make signs for Conservation department in the town.
Meeting Tuesday after the second exam in room 136.
Robotics
Build Repair
C++
Web Design
In Scratch, open your most recent project.
Hold the shift key and left click on the Extras button.
Let go of the shift key and choose "Write Project Summary"
Open a new text document.
Save it as your projectname.txt
Choose paste and your code for the project will appear.
Save the file.
Select the top of the code through the first sprite.
Print the file two pages to a sheet to save paper.
Choose Print Selection to get just the code at the top and the first sprite.
Upload your text to your wiki for reference.
Your Scratch profile
Your most recent and involved program
A program showing an exported sprite you made.
The Squeak code of your most recent project (see above)
Programming for the console
Programming in Interactive C for robotics
Programming in Scratch
What can you do with programming?
In Scratch, open your most recent project.
Hold the shift key and left click on the Extras button.
Choose "Write Project Summary"
Open a new text document.
Save it as your projectname.txt
Choose paste and your code for the project will appear.
Save the file.
Print the file two pages to a sheet to save paper (some of the more involved programs have a lot of code.
As you are working, you should be uploading your work to the Scratch.mit.edu site.
You should have at least a half dozen or more projects on the site.
You should have at least a few sprites uploaded.
Your work on the site should be current and not old.
Go to the page listing your profile.
Print the page with the thumbnails of your projects.
Print out the page showing your most recent project.
Hand it in this period.
This printout should give a basic reflection of the work you have been doing.
When you are editing a sprite, you can export it.
By exporting it, you can post it to your wiki, or save it as a scratch game.
Other people can use your exported sprite.
You can use your sprite for other programs.
Post your work on your site
EmbedScratchonYourWiki
Check out the work at the StudentWork Page.
Post your work on your site
EmbedScratchonYourWiki
Check out the work at the StudentWork Page.
Post your most recent work.
Post your work during the period
here is an example of a simulation using the scratch board:
http://scratch.mit.edu/projects/connors934/178774
Play nice
If you have inappropriate comments, flag them.
Check out the description at the above link.
Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.
Game Research
Checking out other games should be for examining their code primarily.
ScratchBoard
Other projects?
Check out the description at the above link.
Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.
Game Research
Checking out other games should be for examining their code primarily.
ScratchBoard
Other projects?
Check out the description at the above link.
Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.
Game Research
Checking out other games should be for examining their code primarily.
ScratchBoard
Other projects?
Check out the description at the above link.
Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.
Game Research
Checking out other games should be for examining their code primarily.
ScratchBoard
Other projects?
Check out the description at the above link.
Checking out other games should be for examining their code primarily.
ScratchBoard
Other projects?
Check out the description at the above link.
Checking out other games should be for examining their code primarily.
Write a promotional statement about your game.
This statement explains your game to potential users.
It should be two paragraphs long.
The first paragraph explains the story behind your game.
The second paragraph describes to the user how they will control the game.
You should be writing about a game that you created.
Each paragraph should be at least 5 sentences.
Provide a link to your work that you have uploaded to the scratch server.
Hand this in at the end of the period.
Scratch Board
There are a few scratch boards that can be used as a physical interface for scratch.
If you would like to try one, let Mr. Connors know.
See more info at the linked page.
You may check out examples of games on the site, but this should be for development purposes, not for entertainment. You should look at the code and build into your program some of the features in the best of what you see in other programs.
Write a promotional statement about your game.
This statement explains your game to potential users.
It should be two paragraphs long.
The first paragraph explains the story behind your game.
The second paragraph describes to the user how they will control the game.
You should be writing about a game that you created.
Each paragraph should be at least 5 sentences.
Provide a link to your work that you have uploaded to the scratch server.
Hand this in at the end of the period.
Videogamesprites.net
Scratch Projects
Check out your classmates.
Create a scoring system.
Create a variable and use it for helping calculate the score.
Make sure your work is uploaded to the scratch site.
ScratchTutorial
Check the link at ScratchTutorialsSpring08
If yours does not go to that address, make a page with that address
Add a link to your tutorial page on the new page
Scratch Projects
Keep at your project
Check out your classmates work at ScratchUsers
Try out each others' project
Update your project with more features.
If you reach a stopping point with a project, start another.
Tag your work Duxtech to make it easier to find.
ScratchUsers - Check your link and make sure it works.
Upload your project to the scratch.mit.edu site each period to keep from losing work.
ScratchTutorial
add pictures to your writing of yesterday
Check your writing to make sure it explains the steps properly.
It should be very clear to the user what they should do to follow your process.
Your topic should be simple, but not simplistic.
If it is something that is pretty obvious, you might need to widen the scope.
Scratch Projects
Keep working on your individual projects
Upload your work to the scratch site as you reach milestones. scratch.mit.edu
Check out your classmates' work at the links on this page - ScratchUsers
ScratchUsers - Check your link and make sure it works.
Upload your project to the scratch.mit.edu site each period to keep from losing work.
ScratchTutorial
add pictures to your writing of yesterday
Check your writing to make sure it explains the steps properly.
It should be very clear to the user what they should do to follow your process.
Your topic should be simple, but not simplistic.
If it is something that is pretty obvious, you might need to widen the scope.
Scratch Projects
Keep working on your individual projects
Upload your work to the scratch site as you reach milestones. scratch.mit.edu
Check out your classmates' work at the links on this page - ScratchUsers
ScratchUsers - Check your link and make sure it works.
Upload your project to the scratch.mit.edu site each period to keep from losing work.
ScratchDiscussionMay08
What are the relationships between Scratch and the other programming systems we have used this year?
What are some of the more interesting things you have done with Scratch this term?
What are some of the more interesting things you have seen done by others?
What is a simple thing that you could explain to someone using scratch for the first time?
StudentWork
ScratchUsers
Upload your project to the scratch.mit.edu site each period to keep from losing work.
Scratch discussion
What is a simple thing that you could explain to someone using scratch for the first time?
Scratch
Upload your work to the scratch site.
tag your work duxtech
you can upload a project after working on it
Other people can download, and modify your project.
Some example programs:
Make a button
glide
talk
key moves
change color
Scratch
Make an account on the scratch site. http://scratch.mit.edu/
Use your first name, last initial and dhs example: drewgdhs
upload your work from last class.
tag your work duxtech and other words which are appropriate and descriptive.
Upload your work as you go.
Make a button
glide
talk
key moves
change color
If you have headphones, you can use them to work with sound on your scratch projects.
Scratch
Make an account on the scratch site. http://scratch.mit.edu/
Use your first name, last initial and dhs example: drewgdhs
upload your work from last class.
tag your work duxtech and other words which are appropriate and descriptive.
Upload your work as you go.
Make a button
glide
talk
key moves
change color
If you have headphones, you can use them to work with sound on your scratch projects.
Project Options
Console programming - devc++
Gamemaker
Programming in Interactive C
Scratch
Scratchboards
GamemakerAndScratch
Demonstration of project
We will host another class to show them the work we have done in programming the lego bricks and other systems.
Put your code up on the display, explain what you did with it.
Show your device, explain how it works.
Answer questions about your code and device.
We may make video of the presentations.
During class today and tomorrow we will be making short videos of the robots running the code you have written.
You will be asked a few questions while the device is operating:
Some sample questions:
Make a page for PostBotball
Upload your code to your wiki
Put a link on the PostBotball page to each of the programs you have made.
Thursday and Friday of this week.
Run your device so that everybody can see how it works.
You will explain what you did to come to these programming design choices.
Make a page for PostBotball
Upload your code to your wiki
Put a link on the PostBotball page to each of the programs you have made.
Thursday and Friday of this week.
Run your device so that everybody can see how it works.
You will explain what you did to come to these programming design choices.
There will be video recording of the running and explaining.
Program your robot or device to:
Thursday and Friday of this week.
Run your device so that everybody can see how it works.
You will explain what you did to come to these programming design choices.
There will be video recording of the running and explaining.
Program your robot or device to:
PostBotball
Program your robot or device to:
Print your code and hand it in today.
We will have a demonstration session at the end of the week. You will show what your bot can do, and explain how you did it in 5 minutes or so.
PostBotball
Program your robot or device to:
Print your code and hand it in today.
PostBotball
Program your robot or device to
Have output through motors, sound etc.
respond to its environment through switches, sensors and other input
Use statements, variables and functions in your program
Comment your code with information about what is happening.
PostBotball
The focus of the PostBotball project should be on programming, not construction.
Recap of Botball tournament
photos - link
ReflectiononBotballProject
WATD interview
coding for robots
Using functions to handle parts of the code
Add your movement and other actions into separate functions.
Your main() should be relatively short and uncluttered
Use comments to show what your code is doing.
Print your code and hand it in before the end of the period.
If you would like to help out this afternoon, we could use your help. If you are available on Saturday, bring a permission slip home, and come with it filled out on Saturday morning.
Botball Announcement
LOOKING FOR ANYONE WHO WOULD LIKE TO PARTICIPATE IN UMASS LOWELL's BOTBALL ROBOTICS TOURNAMENT on SATURDAY. Will look great on your brag sheet. FIinal build is Friday afternoon. We'll be leaving the competition at 6:30 Saturday morning and will get back at 6:30 Saturday night. If you would like to join the team, please see Mrs. Lewis or Mr. Connors for a permission slip.
Botball Announcement
LOOKING FOR ANYONE WHO WOULD LIKE TO PARTICIPATE IN UMASS LOWELL's BOTBALL ROBOTICS TOURNAMENT on SATURDAY. Will look great on your brag sheet. FIinal build is Friday afternoon. We'll be leaving the competition at 6:30 Saturday morning and will get back at 6:30 Saturday night. If you would like to join the team, please see Mrs. Lewis or Mr. Connors for a permission slip.
Examples from testing of yesterday afternoon.
Build prep
We need to get as much information as possible to the people who will be going to the competition.
Links, resources, sample code etc.
All parts and supplies need to be neatly stored.
Links to the following will be very helpful:
Botball Announcement
LOOKING FOR ANYONE WHO WOULD LIKE TO PARTICIPATE IN UMASS LOWELL's BOTBALL ROBOTICS TOURNAMENT on SATURDAY. Will look great on your brag sheet. FIinal build is Friday afternoon. We'll be leaving the competition at 6:30 Saturday morning and will get back at 6:30 Saturday night. If you would like to join the team, please see Mrs. Lewis or Mr. Connors for a permission slip.
Using functions to handle parts of the code
Add your movement and other actions into separate functions.
Your main() should be relatively short and uncluttered
Use comments to show what your code is doing.
Print your code and hand it in before the end of the period.
Each group/person will have to share the towers.
Put your code on your wiki to make it easier to transfer and back up.
This page has a link to some example programs - http://dhsbotball.pbwiki.com/InteractivecProgramming
This tutorial for the handyboard works for the rcx - http://handyboard.com/software/icmanual/icmain.html
The table of contents is a good pointer to lots of ideas - link here
Here is a list of tutorials - http://dhsbotball.pbwiki.com/InteractiveC
Robotics tournament this weekend
If you can come along on Saturday, take a permission slip.
We will have after school build/programming sessions for the rest of the week.
Programming
Make a program that drives to the safe zone and parks
Get this program to work on both the create and the xbc
It will probably take a slightly different code for each.
Add this program to the tournament code
Get the program to run with the lights
Back up the code to the Botball site and a flashdrive.
comments in the code are extremely helpful.
Build
Make sure that all the parts are stored in plastic tubs and organized for the people who are going to the tournament.
Strategy
Speak with the other groups and make a detailed list of everything that will be needed on Saturday.
Print the list and check it to make sure that it includes everything
We need to have people who can commit to going on Saturday.
I will buy lunch for everybody who goes.
After school build/programming/strategy sessions will happen this week.
This page has a link to some example programs - http://dhsbotball.pbwiki.com/InteractivecProgramming
This tutorial for the handyboard works for the rcx - http://handyboard.com/software/icmanual/icmain.html
The table of contents is a good pointer to lots of ideas - link here
Here is a list of tutorials - http://dhsbotball.pbwiki.com/InteractiveC
3 classes to the competition
We need to start combining the programs of the various functions.
We need to use the competition code that will start and stop when it needs to.
We need to have the robot go out and accomplish tasks as quickly as possible.
We need to have a pack up and go strategy
Supplies, materials, chargers etc. need to be carried to the site.
checklists
CompetitionPrepEmails
We should be able to program the robot and download onto the newly rebuilt computers.
If the download isn't working, we can set up another computer brought in from home.
The computer lab rebuild has been done.
When you log on to the computers, you will agree that you will follow the school's acceptable use policy.
The computers are for educational purposes. They are not toys, and they are not something that you should break. Please pay attention this matter.
Make a folder for your work in the my documents folder.
Don't mess with any other folder than that.
Log off the computers at the end of cla
The computer lab rebuild has been done.
When you log on to the computers, you will agree that you will follow the school's acceptable use policy.
The computers are for educational purposes. They are not toys, and they are not something that you should break. Please pay attention this matter.
Make a folder for your work in the my documents folder.
Don't mess with any other folder than that.
Log off the computers at the end of class.
Free robotics competition this weekend in Boston - http://www.bostonfirst.org/
Using loops to handle your code.
Music
Using code to operate sophisticated constructions like arms and jaws.
On task and cooperative.
CompetitionPrepEmails
4 classes until the competition.
What code and build is achievable in the time we have left?
We need a prep list for the travel day
We need to start integrating the pieces we have developed.
Parts for the board are in, and should go together.
this page has some good sample code to modify for your needs: http://www.kipr.org/curriculum/programming.html#DISPLAYS
Loops
If statements
While loops
Use the if statement to increment a beep
Use a while loop to run the motors backwards when the push button is pressed.
You may need to build a bumper to get the button to work off a variety of surfaces.
What can you put in a loop so that the vehicle can respond to its environment?
Can you get the light sensor to work?
If we can get the light sensor to work, we can do a line following robot.
build - Make sure you let the programmers at the robot.
There are a few books with designs for mechanisms.
Programming
Start to integrate multiple program components
Travel measured distances
Upload programs to your wiki
Documentation
The third and final deadline for the Botball Online Project Documentation is April 1, 2008. All assignments must be entered by 11:59 PM (local time of your tournament venue). Entries made after 11:59 PM, will not be judged.
3rd Period Assignments:
• Mechanical Design - Upload Pictures or CAD Models of the Evolution of Your Systems Design
• Project Planning - Project Plan
• Simulation, Prototyping, and Testing - Robot Testing for Reliability
• Software Development - Upload Source Code
• Other Documentation
• Botball Lessons Learned
• Upload Robot Glamour Shot
Don't wait - login to the team home base now to check on your team's progress:
3-26-08
Extendo MCAS block
this page has some good sample code to modify for your needs: http://www.kipr.org/curriculum/programming.html#DISPLAYS
Loops
If statements
While loops
Use the if statement to increment a beep
Use a while loop to run the motors backwards when the push button is pressed.
You may need to build a bumper to get the button to work off a variety of surfaces.
Updates from groups
Successes you have had, challenges you face.
Last period Erin set up several stations so the xbc can be programmed on more stations.
6 periods before April 5th
How does this affect strategy/build/programming?
We need to get some of the documentation going.
We will need to develop a competition day plan.
We need to develop a checklist to make sure we bring everything to Lowell.
Who will be able to go to the competition April 5th?
A few Lego bricks are available for testing code. You will need a tower, some motors and pushbutton switches.
Comment your name into the code and the date you wrote it.
Have your program move your bot:
Add another section to the same code:
Hand this code in.
Bump switches:
Add a feature to the program that uses the bump switch to cause it to switch between turning and going forward/backward or circle.
Updates from groups
Successes you have had, challenges you face.
Last period Erin set up several stations so the xbc can be programmed on more stations.
7 periods before April 5th
How does this affect strategy/build/programming?
We need to get some of the documentation going.
We will need to develop a competition day plan.
We need to develop a checklist to make sure we bring everything to Lowell.
Who will be able to go to the competition April 5th?
Focus on programming
The build should be based on being able to see what the program is doing.
Help each other with the code.
Timing - http://www.newtonlabs.com/ic/dist/ic-monolithic.html#TOC75
Here is a section of documentation on output - http://www.newtonlabs.com/ic/dist/ic-monolithic.html#TOC62
This is about tones and beeps - http://www.newtonlabs.com/ic/dist/ic-monolithic.html#TOC76
Sensors, what can we do with them?
Each group should have their own program(s) that they are developing.
Print your code this period and hand it in.
Make sure your code has your name(s) commented into the top of the code.
Post your code on your wiki so others can see it.
http://dhsbotball.pbwiki.com/InteractiveC
In class competiton. What can we do that demonstrates your ability to code and build?
A simple pushing contest would not be enough, there would need to be some logic in the program that favors a carefully programmed bot over a heavily built one.
Roomba Control
XBC programming - How can we get the board to show up on the computer?
There is a botball folder in the my documents folder of all the computers.
Lego towers and bricks are available for programming purposes.
The mdf for the board will be in next week, probably monday or tuesday.
Lighting materials are available.
Two areas that will need some attention are the Computer Aided Design and documentation.
Everybody should be on task
forward backward pause
touch sensors
Batteries are available
Towers are available
Use the team Homebase part of the site for information
Board setup
roomba control
xbc control
Program your bots for motors first, then add sensors and get them to respond to the sensors.
Make the bot turn in a circle.
Can you make it turn in a figure 8?
Line Follower
This page has lots of resource links - http://dhsbotball.pbwiki.com/InteractiveC
Three classes this week.
Code
Can you get good control of the roomba?
Can you get feedback from the camera?
Program for both the xbc and the roomba.
The teams only part of the botball.org site has lots of information.
Board
Can you place all the parts on the board in the correct location?
Where will the lights be?
Take a look at the board specs, if there is not much more to do with it today, check with Mr. Connors for what to work on.
Build
Join up with strategy to build for solving the problems we need to solve.
We need a basic platform that will carry the xbc.
Nothing complicated, just something to carry the controller and camera
Rules
Write up your basic understanding of the rules on your wiki.
Have a few sections: Robot, board, people, code
When you have these written, join up with build and programming to
Strategy
Write up your most thought out strategies.
Share them with the group
You will need to join forces with the build and programming groups to help them design to the strategies.
Build a structure that can hold two motors and the lego rcx.
If it is too complicated to make into a vehicle, you can make something that uses the motors to move something else.
Think simple.
Your build process should take less than half of the period.
Make incremental success.
Do not spend a huge amount of time building something complicated that may not work well.
Focus on the programming.
Once you get it to work with a simple program, add a bit of complexity.
Use the touch sensors. Have the motors change their behavior based on the touch sensor input.
Make the display activate, make the beep activate, make the motors run forward and backward. Use the programming resources available online.
This has a lot of links to resources - http://dhsbotball.pbwiki.com/InteractiveC
Discussion of progress last period
What have you found out?
What did you accomplish?
What do you need to work on next?
What do you need for supplies/materials?
Code
What do you need to learn about the code to do simple tasks?
Build
What can be used on the robot?
Rules
What are the rules for the robot?
What are the rules for the board?
What are the rules for the people?
Board
What do we need to do to the board?
Strategy
What are two or three approaches to getting points?
this should help you get the program downloaded to the brick - http://dhscpp.pbwiki.com/DownloadingToRcx
This has a lot of links to resources - http://dhsbotball.pbwiki.com/InteractiveC
Work in pairs to build and program a simple robot with legos and Interactive C:
Each person will be getting a daily grade based upon effort and participation.
Work towards a success. Don't get hung up on problems, move forward. Use documentation to help you figure it out. Work together on the problem. Communicate your needs politely.
Focus on programming:
What do you need to learn about the code to do simple tasks?
Some of the functions you may want to use:
fd(); runs the motor specified with a number forward. bk(1); runs motor 1 forward
bk(); runs the motor specified with a number backward. bk(1); runs motor 1 backward
sleep(); holds the previous command for a number of seconds. Takes a float as an argument. 2.0 is 2 seconds.
printf(); prints to the screen. 5 charactars max, likes numbers.
this should help you get the program downloaded to the brick - http://dhscpp.pbwiki.com/DownloadingToRcx
This has a lot of links to resources - http://dhsbotball.pbwiki.com/InteractiveC
Focus on build:
What is the simplest robot you can make out of legos to test your program?
You can
You should start with two motors, can add a third.
You can add sensors There are plenty of touch sensors available. Light sensors and others are also available when you get the hang of the touch sensors.
Write up some answers to these questions.
We will discuss them.
Code
What do you need to learn about the code to do simple tasks?
Build
What can be used on the robot?
Rules
What are the rules for the robot?
What are the rules for the board?
What are the rules for the people?
Board
What do we need to do to the board?
Strategy
What are two or three approaches to getting points?
http://dhscpp.pbwiki.com/DownloadingToRcx
This is a forum for working with Interactive C
http://www.kipr.org/boards/viewforum.php?f=2
DownloadingToRcx
This has some projects around working with the RCX
http://www.kipr.org/curriculum/touch.html
http://www.kipr.org/curriculum/programming.html
http://www.kipr.org/curriculum/touch.html
Programming with Interactive C
Botball
Programming the lego bricks.
Programming devices with C
BU design competition
BotBall
Set up some groups to tackle the problem.
20 students is a good sized group to solve this problem.
Table
Strategies
Rules
Getting at the programming techniques
The lego bricks will run the same program as the roomba.
What do you need for information/resources?
The rebuilding of the lab has begun.
Make sure your work is uploaded to your wiki.
At some point this week, the lab work should be done.
If you don't know how to upload your work, please ask.
BotBall
Video
OverviewofProject
Lego vs. xbc/roomba Create
grading system: Daily grades, project participation, products that move the project forward
This is a large project, which will require everybody to work, program and participate as a team of individuals.
April 5th - Umass Lowell - Robotics competition with teams from around the Northeast.
ScienceFairNeedsJudges
DesignSquad
http://www.mauratighe.com/ds/CastingCall.html
Array Chart
Add user interaction to the code demonstrated last class.
Put your .exe for the program on your site
We should be able to view everybody's on the big screen.
Interactive C
Programming lego bricks
http://www.kipr.org/curriculum/programming.html
http://www.kipr.org/curriculum/touch.html
DesignSquad
http://www.mauratighe.com/ds/CastingCall.html
For loops
null statement for loop
making columns with a nested for loop
Make sure your work is backed up.
BotBall - getting started with Interactive C - http://www.kipr.org/curriculum/programming.html
http://www.kipr.org/curriculum/touch.html
LastChanceGas
if then else loop
random number generator - http://www.daniweb.com/forums/thread1769.html
make a NumberGuess.cpp program
Back up your files to your wiki every class.
The lab should be rebuilt this week.
Miles per gallon and AverageRainfall
Make sure you see that you put in some values to have it return a floating point number. This is one of the main changes we made with this program. It can handle a non integer figure, which we didn't do with the calculator.
Didn't get AverageRainfall done?
Do it for homework and bring it next class.
Use your wiki to hold the code.
Interactive C and BotBall
Using RCX lego bricks.
2-27-08
Finish up Miles per gallon program
Side Projects:
You should be exploring c++ problems on your home computer. Show me the code and get some credit for it.
Test for anybody who missed it before vacation.
Computers in this room will be reformatted soon.
Make sure you keep your work backed up to your wiki. StudentCourseWiki
The date of the lab work will be announced soon.
Don't mess with anybody else's work on your computer.
Variables notes
Interactive C is on more of the computers.
We can use IC to program for lego bricks, and the BotBall robot.
MPG
Write a program that calculates miles per gallon of a car. Name the program MPG.cpp. Have the user input the number of miles and number of gallons used. The miles should be an int and the gallons and mpg should be a double. Have the user identify the car by a letter, stored as a char. Comment your name, the file name and date at the top of the code and comment in the results into the bottom of the code.
Here is an example of a car's gas use log http://farm3.static.flickr.com/2325/2016919961_32e83699a5_b.jpg
Use a While loop to have the user choose when to terminate.
2-25-08
Test for anybody who missed it before vacation
Set up Interactive C on the computers
Set up Scratch Board on the computers
Scratch
Don't mess with anybody else's files
Set up a wiki to store your work - StudentCourseWiki
Back up your work on your wiki
Test on intro to c++
Get any work done that you need to complete
Scratch
Turn the computers and monitors off at the end of class.
Test on intro to c++
TemperatureConverter
review of strategies
complete the code
If you are done with the code, make another which will convert imperial to metric such as pounds to kilograms, gallons to liters, etc.
test on the material covered so far on the last class of this week.
you should be able to: write a hello world program in pen or pencil
identify statements
initalize variables
identify functions
comment lines
comment sections
write the code to print to the console
write the code to receive from the console
You might find these helpful
Variables notes
Intro notes
Robotics team
We will be making the battle arena after school this week in room 136
TemperatureConverter
create a program that will convert fahrenheit to celcius.
Have the user choose which they want to start with and give a temperature
Return the converted value.
test on the material covered so far on the last class of this week.
you should be able to: write a hello world program in pen or pencil
identify statements
initalize variables
identify functions
comment lines
comment sections
write the code to print to the console
write the code to receive from the console
You might find these helpful
Variables notes
Intro notes
Robotics team
We will be making the battle arena after school this week in room 136
Make sure you hand in your calcdisplay.cpp code.
Save your calcdisplay.cpp file as calcfunctions.cpp
Move all the action causing code out of main into their own functions.
create a function for operatorchoice()
create a function for numberinput()
Main should have only variable initializations and function calls
Change the variable that handles division to a float.
float d; this will make it so your division can have a decimal point and digits after it.
Try changing the color of the display ConsoleColor
Try using EscapeSequences
Try a do while loop to give the user control of whether they repeat the process.
test on the material covered so far on the last class of this week.
you should be able to: write a hello world program in pen or pencil
identify statements
initalize variables
identify functions
comment lines
comment sections
write the code to print to the console
write the code to receive from the console
You might find these helpful
Variables notes
Intro notes
Robotics team
We will be making the battle arena after school this week in room 136
2-7-08
Debug calcdisplay.cpp
Set up wiki for archiving your work
irobot create robot - programmed in interactive c
2-6-08
Open yesterday's code, save your operatorswitch.cpp as calcdisplay.cpp
Use ASCII codes to make a visual for the calculator
Have the display called in it's own function called display()
Call the equation and result from the display() function.
The equation and result should show up on the display of the calculator.
Comment your results into the bottom of the code.
Winter sports over?
Robotics team Thursday afternoon.
dhsbotball.pbwiki.com
botball.org
2-5-08
Demo of Switch.
Using a Switch statement to allow the user to make decisions
Save your Operators.cpp file as operatorsswitch.cpp (don't rename the file, keep the original)
Add the switch to your calculator so the user can choose which operator to use.
Modify the output so it helps the user understand what is going on.
2-4-08
Handback of numberinput intitials and helloworld
Modifying the numberinput.cpp code
Make a copy of your numberinput.cpp file, name it operators.cpp
make several functions that will take the user's numbers and do things with them.
make and call these functions from main:
add()
subtract()
multiply()
divide()
modulus()
Use the working add() function, and modify it so it works to do the new operations.
Initialize new variables for each of the new operations.
Alter the output of main so that it tells the user what is going on.
Give the results to the user.
When you use divide and modulus, you will encounter an error if the user enters 0 for the second number. Instruct the user not to use 0 for the second number.
Interactive C
Menu Selection
1-31-08
Handback of initials and helloworld
Debugging the initials code
Make the code work, fix any errors, hand it in
Programming activity:
Write a program called numberinupt.cpp to demonstrate a simple input. Your program will have one function, main() will ask the user for a two number input, then call add to add the numbers. It will return the numbers. Main will show what the numbers were set to and exit. Comment your name, the file name and date into the top of the code.
701 Principles of Technology
Half Year
710 Standards Based Technology and Engineering
Full Year, counts as one of your three science requirements
707 Building and Repairing Computers
Half Year
716 Robotics
Half Year
201 Introduction to Programming with C++
204 Introduction to Programming with Java
206 Website Design
1-30-08
Getting the DevC++ program running
Opening your files
Setting the file up with line numbers
Debugging the Hello.cpp file
Finding the c++ wiki
Comments - line comments and section comments
Make a program that displays your initials
It should be named initials.cpp
Your initials should be 10 lines tall
Comment your name into the top of the code.
Comment a copy of your results into the code
If you finish early, take a look at the Botball.org site
Homework:
Set up Bloodshed DevC++ on your home computer
You will need to make a screen shot of your computer running the program by friday
Course expectations
On task
In class assignments
Homework
Side Projects
Robotics team
After school
Programmed in C
Roomba and Gameboy robot
C++ IDE
Integrated Development Environment
DevC++ - Bloodshed Software - http://www.bloodshed.net/index.html
Download from Source Forge - Download link
install instructions - http://csjava.occ.cccd.edu/~gilberts/devcpp5/
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |