You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: labs/oop/README.md
+52-15Lines changed: 52 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,44 @@ Possible Points: 100
4
4
5
5
Write a Python program to solve the Kattis problem - Bijele - [https://open.kattis.com/problems/bijele](https://open.kattis.com/problems/bijele) . Read the problem statement carefully to design a correct solution using OOP and unittest.
6
6
7
+
## Install Kattis-cli
8
+
9
+
- if you've installed kattis-cli before, update it to the latest version
10
+
11
+
```bash
12
+
$ pip install -U kattis-cli
13
+
$ python -m pip install -U kattis-cli
14
+
```
15
+
16
+
- if you've not installed kattis-cli before, install it
17
+
18
+
```bash
19
+
$ pip install kattis-cli
20
+
$ python -m pip install kattis-cli
21
+
```
22
+
23
+
## Setup Kattis-cli
24
+
25
+
- setup kattis-cli by providing logging in to Kattis using your Kattis username and password
26
+
27
+
```bash
28
+
kattis setup
29
+
```
30
+
7
31
## Lab Instructions
8
32
9
-
1. Open your CS0Lab-... repo in VS Code
10
-
2. Create lab folder **oop** inside your CS0Lab-... repository
11
-
3. Inside the lab folder, create two files.
12
-
4. Type the partial code stub provided and fix all FIXMEs. (80 points)
13
-
5. Follow best programming practices by using proper white spaces, comments, etc.
33
+
- Open your CS0Lab-... repo in VS Code
34
+
- Create lab folder **oop** inside your CS0Lab-... repository
35
+
- Inside the lab folder, download the problem metadata and sample files for the problem **bijele** using Kattis-clis
14
36
15
-
```note
16
-
IMPORTANT: Never ask the user telling what data to enter for Kattis problems. Kattis knows what to enter.
17
-
Directly read the input. Print only the answer as displayed in the sample output.
18
-
Print as asked: nothing less; nothing more!
19
-
Kattis is a computer program that provides specific input and expects exact output – to a space to give the correct verdict.
37
+
```bash
38
+
kattis get bijele
20
39
```
21
40
22
-
6. Run unit test using pytest and create screenshot when all the test cases pass. Install pytest if required. Pick one of the following ways to run pytest.
41
+
- Inside **bijele** folder, type the partial code stub provided and fix all FIXMEs. (80 points)
42
+
- Follow best programming practices by using proper white spaces, comments, etc.
43
+
`
44
+
- Run unit test using pytest and create screenshot when all the test cases pass. Install pytest if required. Pick one of the following ways to run pytest.
23
45
24
46
```bash
25
47
$ pytest --version
@@ -28,10 +50,25 @@ Kattis is a computer program that provides specific input and expects exact outp
28
50
$ python -m pytest .
29
51
```
30
52
31
-
7. Test the whole program manually. While testing, provide input using the same format as described in the Input section and shown in input samples.
32
-
8. Upload only the solution script to Kattis. You can test your solution as many times as you wish. Kattis uses its own hidden test cases to test your program against. However, your goal is to get the accepted verdict in the first try.
33
-
9. Create screenshots showing your local testing and the kattis final Accept verdict and save them to the lab folder. (10 points)
34
-
10. Update your README file (10 points) as shown here: [https://github.com/rambasnet/csci000-astudent](https://github.com/rambasnet/csci000-astudent)
53
+
54
+
- Test the whole program using Katts-cli. (10 points)
55
+
56
+
```bash
57
+
$ cd bijele
58
+
$ kattis test
59
+
```
60
+
61
+
- Create the screenshot of the correct local test result. (10 points)
62
+
- Submit the solution to Kattis using Kattis-cli. (10 points)
63
+
64
+
```bash
65
+
$ cd bijele
66
+
$ kattis submit
67
+
```
68
+
69
+
- Create screenshot of the kattis final Accepted verdict and save it to the lab folder. (10 points)
70
+
71
+
- Update your README file (10 points) as shown here: [https://github.com/rambasnet/csci000-astudent](https://github.com/rambasnet/csci000-astudent)
0 commit comments