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: docs/labs/lab-02.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ Click the `Actions` tab and click the latest workflow inside the `Actions`.
166
166
167
167
Inside the workflow, you’ll see a clear error message showing why it failed. This might say the file is missing, wrongly named, or contains something invalid.
Your task is to read the error message and correct the mistake based on the error. If the workflow is successfull, you should see a green tick next to your commit message.
Copy file name to clipboardExpand all lines: docs/labs/lab-03.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ Copy and paste the given code from the window into `lab-3-1.py` and save the fil
159
159
160
160
161
161
162
-
## Scenario 1 – Hotel Reservation <Badgetype="tip"text="Question" />
162
+
## Scenario 1 – Hotel Reservation <Badgetype="warning"text="Question" />
163
163
164
164
Question:
165
165
Mr Rahman plans to make a reservation for a hotel room in Langkawi Island. The basic rate is RM250.00 per night and service charge is 15% of the room rate. Determine the total payment if he books the hotel room for n nights.
@@ -177,7 +177,7 @@ Outputs (in order):
177
177
-`TOTAL_PAYMENT` – sum of room rate and service charge (RM)
A pack contains 40 pieces of cookies. The calorie info claims 10 servings per pack. Each serving equals 300 calories. Calculate the total calories consumed based on number of packs eaten.
@@ -235,7 +235,7 @@ Outputs (order):
235
235
236
236
-`TOTAL_CALORIES` – SERVINGS_CONSUMED * 300
237
237
238
-
## Scenario 5 – Wage to Mow Yard <Badgetype="tip"text="Question" />
238
+
## Scenario 5 – Wage to Mow Yard <Badgetype="warning"text="Question" />
239
239
240
240
Question:
241
241
The wage to mow the yard is based on diesel price RM2.00 per square meter. The yard area is the large rectangle minus the house rectangle. You are given the length and width of the yard boundary and the length and width of the house. Calculate the wage.
@@ -260,7 +260,7 @@ Outputs (order):
260
260
261
261
-`WAGE` – Total wage
262
262
263
-
## Scenario 6 – Temperature Conversion <Badgetype="tip"text="Question" />
263
+
## Scenario 6 – Temperature Conversion <Badgetype="warning"text="Question" />
264
264
265
265
Question
266
266
Prompt user to input a temperature in Celsius and convert it to Fahrenheit and Kelvin.
Copy file name to clipboardExpand all lines: docs/labs/lab-04.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,12 +103,12 @@ Then it will prompt you the location that you want the image saved and the name
103
103
104
104
## Selection Questions
105
105
106
-
### Scenario 1 - Electricity Bill <Badgetype="tip"text="Question" />
106
+
### Scenario 1 - Electricity Bill <Badgetype="warning"text="Question" />
107
107
A utility company charges RM0.30 per kWh for the first 100 kWh, RM0.50 per kWh for the next 100 kWh (101–200 kWh), and RM0.75 per kWh for any usage above 200 kWh.
108
108
109
109
Calculate the total bill when the customer enters their total kWh consumed.
110
110
111
-
### Scenario 2 - Income Tax Slab <Badgetype="tip"text="Question" />
111
+
### Scenario 2 - Income Tax Slab <Badgetype="warning"text="Question" />
Copy file name to clipboardExpand all lines: docs/labs/lab-05.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Some of the most commonly used **Python** keywords include `if`, `else`, `while`
65
65
66
66
These keywords are highlighted differently in **VS Code** because the editor recognizes them as special **Python** syntax. Notice how **VS Code** uses color coding to help you identify different types of code elements. Keywords typically appear in a different color than variables or strings.
## Exercise 1: Student Information System <Badgetype="tip"text="Task" />
200
+
## Exercise 1: Student Information System <Badgetype="warning"text="Task" />
201
201
202
202
Create a new file called `exercise1.py` in the `/labs/lab05/` directory. This exercise combines **variables**, **data types**, and **input/output statements**.
203
203
@@ -207,7 +207,7 @@ Write a program that:
207
207
3. Displays the student information and shows the data types
208
208
209
209
210
-
## Exercise 2: Circle Calculator <Badgetype="tip"text="Task" />
210
+
## Exercise 2: Circle Calculator <Badgetype="warning"text="Task" />
211
211
212
212
Create a new file called `exercise2.py` in the `/labs/lab05/` directory. This exercise combines **import statements**, **variables**, and **data types**.
213
213
@@ -216,7 +216,7 @@ Write a program that:
216
216
2. Takes a radius of circle from the user
217
217
3. Print the area and circumference of the circle
218
218
219
-
## Exercise 3: Random Student Selector <Badgetype="tip"text="Task" />
219
+
## Exercise 3: Random Student Selector <Badgetype="warning"text="Task" />
220
220
221
221
Create a new file called `exercise3.py` in the `/labs/lab05/` directory. This exercise combines **import statements**, **variables**, and **input/output statements**.
222
222
@@ -225,7 +225,7 @@ Write a program that:
225
225
2. Takes the student's class name from the user
226
226
3. Generates a random number and displays class information
Create a new file called `exercise4.py` in the `/labs/lab05/` directory. This exercise combines **variables**, **data types**, and **input/output statements**.
231
231
@@ -234,7 +234,7 @@ Write a program that:
234
234
2. Creates variables for quantity (3 items) and tax rate (6%)
235
235
3. Calculates and displays subtotal, tax amount, and total cost
236
236
237
-
## Exercise 5: Average Score Calculator <Badgetype="tip"text="Task" />
237
+
## Exercise 5: Average Score Calculator <Badgetype="warning"text="Task" />
238
238
239
239
Create a new file called `exercise5.py` in the `/labs/lab05/` directory. This exercise combines **variables**, **data types**, and **input/output statements**.
240
240
@@ -243,7 +243,7 @@ Write a program that:
243
243
2. Calculates the total score and average score
244
244
3. Displays all individual scores, total, and average
245
245
246
-
## Exercise 6: Time Converter <Badgetype="tip"text="Task" />
246
+
## Exercise 6: Time Converter <Badgetype="warning"text="Task" />
247
247
248
248
Create a new file called `exercise6.py` in the `/labs/lab05/` directory. This exercise combines **variables**, **data types**, and **input/output statements**.
249
249
@@ -252,7 +252,7 @@ Write a program that:
252
252
2. Converts minutes to hours and remaining minutes
253
253
3. Displays the original minutes and converted time format
254
254
255
-
## Exercise 7: Advanced Math Operations <Badgetype="tip"text="Task" />
255
+
## Exercise 7: Advanced Math Operations <Badgetype="warning"text="Task" />
256
256
257
257
Create a new file called `exercise7.py` in the `/labs/lab05/` directory. This exercise combines **import statements**, **variables**, and **data types**.
Create a file called `exercise1.py`. Implement the solutions for this exercise in there. Debug and fix this program with variable naming errors. Change the variable name to follow snake case
0 commit comments