MP1 is intended to get you up and running with the machine project and provide practice completing several small programming tasks using Android. Specifically, after completing MP1 you should be able to:
All remaining MP checkpoints have two deadlines. We provide 10 points for getting started on the MP promptly and earning a certain number of points before the early deadline. For MP1, you must earn 30 points by the early deadline. The remainder of the MP is due a few days later.
For MP1 the deadlines are:
If you are using Java, download the MP1 tests here. If you are using Kotlin, download the MP1 tests here.
You will receive the MP1 test suites via email.
app/src/test/kotlin/edu/illinois/cs/cs124/ay2022/mp/
directory in your machine project.
The file should be named MP1Test.kt
.app/src/test/java/edu/illinois/cs/cs124/ay2022/mp/
directory in your machine project.
The file should be named MP1Test.java
.Next, you’ll want to reconfigure grade.yaml
in the root directory of your project to request that we grade Checkpoint 1.
These steps are covered on the first MP1 lesson.
To pass the test cases and complete MP1, you need to fix a few problems with the code that we provided, and write a bit of new code to solve a problem. This does not require writing a lot of code! You will spend much more time understanding what the problem is and identifying the code you need to modify than you will actually implementing your solution.
When you run the starter code you should notice two problems:
Solving these requires modifications to several files included in your repository. We’ll walk through what to do and provide suggestions for getting started on the daily lessons.
We have provided three test cases to guide your development.
test0_LoadPlaceFields
and test1_PlacesSearch
are unit tests that test changes you need to make to the data load path and your search method.
test2_PlacesSearchBar
is an integration test that tests the functionality you need to add to the Android view.
You should start by completing the unit tests.
The lessons will proceed through the test suites in the order that we recommend you complete them in.
Grading for MP1 is broken down as follows:
checkstyle
(Java) or detekt
(Kotlin) violationstest0_LoadPlaceFields
test1_PlacesSearch
test2_PlacesSearchBar
You can estimate your grade at any time by using the Grade task available in Android Studio. This is an estimate, not an official score.
You submit MP1 by pushing to GitHub, in the same way that you did for MP0.
However, make sure that you have configured grade.yaml before pushing.
We grade the checkpoint you have configured in grade.yaml
.
So make sure that is set up to grade MP1 once you are ready.
Please review the CS 124 policies on collaboration.
All submitted code will be checked for cheating. Cheaters will receive stiff penalties. Hard-working students who are struggling honestly for their grade demand it.
You can view your official MP1 scores below.