Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
SyllabiSpring2025
»
CSC102SylS2025
»
CSC102S2025Lab4
Playing a song
02 Feb 2025 - 01:49
|
Version
1
|
UnknownUser
Objectives
Reinforce repetition
Reinforce selection
Be creative and have fun
Assignment
Create a clean program that will play a song based upon the colors read
each color represents a different note
the program should stop when the touch sensor is activated
Additional requirements
the color sensor should be pointed down and connected to port 3
the touch sensor should be in the front of the robot and connected to port 4
each color (in increasing order) should represent a different note in increasing order
Submission instructions
Due date is found on Canvas
Each person should create a pdf document that contains the following information
Your name
A brief description of what you did
How you improved over any mistakes made last time
Indicate which hints (if any) you used
How well you achieve each objective
Submission:
submit the team's code pdf document in one zip folder.
Hints
What to do with the motors
Challenges
Create a pattern that is an actual song.
Find a way to have more than 7 (or 8) different notes but still allow for the base eight notes
Adjust so that the width indicates the length each note should play. Also allow for white space to indicate a rest.
Attachments
($count)
Show options
Search:
Sort by:
Name
Date
Author
Size
Type
Results per page:
6
12
24
48
all
Display hidden:
More actions
Create link(s)
Embed
Download
Hide
Unhide
Move
Delete
0
attachment(s)
Select all
Clear all
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback
This website is using cookies.
More info
.
That's Fine