Welcome to Intro to Programming. 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.
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 in your email.
I see you are logged into GitHub and a member of the Intro to
Programming 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 Intro to Programming 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.
This assessment consists of
functions you need to write involving translating between code written
in the higher-order style (using
the filter, map, etc. methods on arrays) and the
non-higher-order style (using for loops, if
statements, and variables). The first half ask you to translate to
higher-order style and the second half from higher-order style.
Feel free to start with whichever questions you are most comfortable with.
All the questions involve the array of fruit objects defined in the
starter code as fruitBowl and some questions use the
functions isTasty and isInconvenient also
defined in the starter code. You don't need to change any of that code but
you can use it for testing your functions. (Note that you can hover the
mouse just to the left of the const on line 1 and click the
down arrow that appears to collapse the definiton of the array which is
rather long.)
This is an open book assessment. You may refer to your code from
previous assignments and may look at whatever documentation is helpful. In
particular you may want to refer to the answers to
the HOF
implementation
and Array
HOFs assignments. However, you may not use ChatGPT or any other
AI to write your code.
You can move through the questions with the arrows at the upper right next
to the 1 of indicator so if you're not
sure how to write one function move on to another one and come back if you
have time at the end. I want to see how much you do know. Note:
click on the code in the questions to select it so you can copy it into
the editor as a starting point.
When you are done, please click on your Github username above and
submit a GitHub pull request of the branch
and request me as a reviewer.