Tags:
view all tags
---+Binary number converter ---++ Objectives 1. Get really comfortable with variables ---++ Assignment 1. Create a clean program that will read a binary number (black = 1, white = 0) and display the equivalent number (in decimal) on the screen. Your robot should stop when it encounters any color other than black or white. Keep the length short. a. Each digit will be about one inch square. There is nothing special separating the colors ---++Suggestions a. Start playing two different notes as the robot moves along, one note for black and a different note for white. Make sure these notes are very short duration. End when it encounters another color. a. Start the variable out as 1, multiply it by 2 for each new inch, display the final number. It should be a power of 2! a. The conditional add one after the multiplier if it is black. ---++ Submission instructions 1 Due date is found on Canvas 1 Each person should create a pdf document that contains the following information a. Your name a. Your partner's name a. A brief description of what you did a. A brief description of what your partner did a. How your team improved over any mistakes made last time a. Indicate which hints (if any) your team used a. How well you achieve each objective. 1. Submission: a. Team member A submits the team's code and his/her pdf document in one zip folder. a. Team member B submits his/her pdf document (does not need to be zip'ed) ---++ Hints ---++ Challenges 1. Have the robot speak the final number 1. Let the user work in octal or binary (based on the button on the block that is clicked).
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2025-03-18
-
CathyBareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback