Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions starter/lab3_task1.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php

/**
* ICS 2371 — Lab 3: Control Structures I
* Task 1: Simple if and if-else — Warm-Up Exercises [5 marks]
*
* @author [Your Full Name]
* @student [Your Reg Number, e.g. SCT212-XXXX/2024]
* @author [Seth Almas Wanyonyi]
* @student [ENE212-0222/2023]
* @lab Lab 3 of 14
* @unit ICS 2371
* @date [Date completed]
* @date [1st April 2026]
*/

// ══════════════════════════════════════════════════════════════
Expand Down Expand Up @@ -39,7 +40,9 @@
// Run this code EXACTLY as written.
// Record all six outputs in your report and explain each result.

$x = 10; $y = "10"; $z = 10.0;
$x = 10;
$y = "10";
$z = 10.0;

var_dump($x == $y); // A: ?
var_dump($x === $y); // B: ?
Expand Down
7 changes: 4 additions & 3 deletions starter/lab3_task2.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* ICS 2371 — Lab 3: Control Structures I
* Task 2: JKUAT Grade Classification System [8 marks]
Expand All @@ -7,11 +8,11 @@
* report BEFORE writing any code below. Marks are awarded for all
* three components: pseudocode, flowchart, and working code.
*
* @author [Your Full Name]
* @student [Your Reg Number, e.g. SCT212-XXXX/2024]
* @author [Seth Almas Wanyonyi]
* @student [ENE212-0222/2023]
* @lab Lab 3 of 14
* @unit ICS 2371
* @date [Date completed]
* @date [1st April 2026]
*/

// ── Test Data Set A (change values to run other test sets) ─────────────────
Expand Down
7 changes: 4 additions & 3 deletions starter/lab3_task3.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php

/**
* ICS 2371 — Lab 3: Control Structures I
* Task 3: switch-case and match Expression [6 marks]
*
* @author [Your Full Name]
* @student [Your Reg Number, e.g. SCT212-XXXX/2024]
* @author [Seth Almas Wanyonyi]
* @student [ENE212-0222/2023]
* @lab Lab 3 of 14
* @unit ICS 2371
* @date [Date completed]
* @date [1st April 2026]
*/

// ══════════════════════════════════════════════════════════════
Expand Down
7 changes: 4 additions & 3 deletions starter/lab3_task4.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

/**
* ICS 2371 — Lab 3: Control Structures I
* Task 4: Nested Conditions — Loan Eligibility Checker [6 marks]
*
* IMPORTANT: You must complete pseudocode AND flowchart in your PDF
* report BEFORE writing any code below.
*
* @author [Your Full Name]
* @student [Your Reg Number, e.g. SCT212-XXXX/2024]
* @author [Seth Almas Wanyonyi]
* @student [ENE212-0222/2023]
* @lab Lab 3 of 14
* @unit ICS 2371
* @date [Date completed]
* @date [1st April 2026]
*/

// ── Problem: Student Loan Eligibility System ───────────────────────────────
Expand Down
Loading