Welcome to BHS Computer Science. If you are a student in the class, the first thing you need to do (and which we should have done in class) is set up your GitHub account.
Once you have a GitHub account, click “Log in to GitHub” below to proceed. Or you can click “Use anonymously” to play with the environment but you will not be able to save your work or submit assignments. (You can always log in later by clicking the at the top of the page.)
If you don’t have a GitHub account yet, please create one and then log in here for further instructions.
Congratulations! You have successfully connected this app to GitHub. However you are not yet a member of the GitHub organization for this class, something Mr. Seibel needs to set up for you.
This is your GitHub profile URL:
Click the clipboard icon to copy it and then submit it at this form so he can add you.
Congratulations! You have successfully connected this app to GitHub. And it looks like you have an invitation to join the GitHub organization for this class. You need to accept that invitation before you can proceed. The invite should be sent to whatever email you used when you created your GitHub account.
I see you are logged into GitHub and a member of the berkeley-high-cs GitHub organization. However there seems to have been some problem finishing the setup for your account. Please let Mr. Seibel know.
This is a tool for the BHS Computer Science class at Berkeley High School. It is intended to provide a simple environment for experimenting with Javascript without all the complexities of a full development environment such as ReplIt or Glitch which we may use later in the year.
It is also designed to take advantage of the browser’s ability to run Javascript natively. It does not need access to a server to run code making in extremely responsive even if the Wifi is flaking out.
Finally, under the covers it is saving work to a GitHub repository in a very simplified workflow that does not depend on immediately learning any git commands. Code written in this environment for each assignment is saved to a directory and branch specific to that assignment each time it is saved. Thus when the assignment is done, it is easy to go to GitHub and create a PR containing just the work on that assignment which can then be commented on and worked on further before it is turned in and merged to main.
You're all set! You don't need to worry about this yet but we have successfully created a GitHub repository for your work:
You can get to it any time by clicking on your GitHub username at the top-right of the screen.
Someone is doing well if they are getting enough sleep and also
keeping up with their schoolwork. Write an expression that expresses
whether someone is doing well given two boolean values
enoughSleep
and keepingUp
.
Someone is feeling energetic if they are getting enough sleep and
aren't exhausted from having just worked out. Write an expression
that expresses whether someone is energetic given two boolean values
enoughSleep
and justWorkedOut
.
Someone is really dragging if they haven’t gotten enough sleep and
have lots of work to do. Write an expression that says whether
someone is dragging, given two boolean values
enoughSleep
and lotsOfWork
.
Someone is super beat if they haven’t gotten enough sleep and
haven’t had enough to eat. Write an expression that says whether
someone is super beat given two boolean values
enoughSleep
and eatenEnough
.
Roughly speaking, someone can go to Senior Prom if they are a senior
or if they are invited by a senior. Write an expression that says
whether someone can go to prom given the two boolean values
isSenior
and invitedBySenior
. (In a later
problem set we’ll deal with the more complex reality of the prom
exclusion list.)
If someone is working on something for their own reasons they don’t
need to keep going if it’s not fun any more. So they will stop when
they’re done or when it’s not fun anymore. Write an expression that
says whether they should stop given the two boolean values
done
and fun
.
Someeone is working on something and aren’t that into it so they’ll
quit if it’s not fun. And even if it is fun but they’re feeling
tired they’ll also call it quits. Write an expression that says
whether they’ll stop given the two boolean values
fun
and tired
.
Someone is unable to go to sleep unless it’s totally dark. Also they
obviously can’t sleep when they’re not sleepy. Write an expression
that says whether they’re awake given the boolean values
sleepy
and dark
.
We want to go shopping but we obviously won’t if the store isn’t
open. But we’ll also wait for another day if the lines are too long.
Write an expression that says whether we’ll skip our planned
shopping trip given the two boolean values
storeOpen
and linesTooLong
.
Now we want to go shopping, but only if the store is having a sale.
As before we obviously won’t go if the store isn’t open but we’ll
also skip the trip if the store isn’t having a sale. Write an
expression using the two boolean values storeOpen
and
isASale
that says whether we’ll hold off on our trip to
the store.
The book club meets today. We’d expect someone to be at book club if
they’re a member as long as they’re not out sick from school. Write
an expression that says whether we expect someone to be at book club
given the two boolean values member
and
outSick
.
The football team is very picky and will only allow people on the
team who are both fast and strong. Write an expression in terms of
the two boolean values fast
and
strong
that says whether someone has a chance to be on
the team.
You’re on a camping trip and you’re trying to light a fire.
Unfortunately you’re having some trouble and are running out of
matches. You’ll stop trying when the fire is lit or when you run out
of matches, whichever comes first. Write an expressian that says
whether you can stop trying using the two boolean values
fireLit
and haveMatches
.
It can be hard to pay attention if you’re distracted by being
hungry. And obviously it also hard to pay attention to things that
you’re not interested in. Write an expression that says whether you
can pay attention to something given the two boolean values
hungry
and interested
.
A student should be in our classroom during our class only if
they’re in the class or are a student proctor. Write an expression
that says whether a student should be in the classroom during our
class given the two boolean values inTheClass
and
isProctor
.
There’s a dark cave full of spiders. You should only go in if you’re
not afraid of th>e dark nor of spiders. Write a boolean expression
using the two values afraidOfTheDark
and
afraidOfSpiders
that says whether you could go into the
cave.