Learn with Yasir

Share Your Feedback

CS-303 Programming Fundamentals | C++ Programming Tasks


CS-303 Programming Fundamentals

Topic 1: Escape Sequences in C++ - Input and Oupt

Tasks

  1. Learn: Understand the purpose of common C++ escape sequences, including \n, \t, \\, \", \', and \r.
  2. Practice: Write and run Examples 1–3
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 15 October 2026
  • Checking: All 3 examples will be checked on your mobile phone or laptop.

Note: Complete all tasks before the due date and keep your programs ready for checking.


Topic 2: C++ Manipulators - Input and Oupt

Tasks

  1. Learn: Understand the purpose of the endl and setw manipulators in C++.
  2. Practice: Write and run Examples 1–3 and complete Coding Exercises 1–3.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 15 October 2026
  • Checking: All 3 examples and 3 coding exercises will be checked on your mobile phone or laptop.

Note: Complete all tasks before the due date and keep your programs ready for checking.


Topic 3: if Statement - Conditional Structures

Tasks

  1. Learn: Understand the purpose of the if statement of in C++.
  2. Practice: Write and run Examples 1–6 and complete Coding Exercises 1–7.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 21 October 2026
  • Checking: All 6 examples and 7 coding exercises will be checked on your mobile phone or laptop.

Note: Complete all tasks before the due date and keep your programs ready for checking.

–

Topic 3: switch Statement - Conditional Structures

Tasks

  1. Learn: Understand the purpose of the switch in C++.
  2. Practice: Write and run Examples 1–6 and complete Coding Exercises 9–14 in the swtich section.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 22 October 2026
  • Checking: All 6 examples and 7 coding exercises will be checked on your mobile phone or laptop.

Note: Complete all tasks before the due date and keep your programs ready for checking.


Topic 4: while Loop

Tasks

  1. Learn: Understand the purpose of the while in C++.
  2. Practice: Write and run Examples 1–5. Then complete the Output Practice and Fix the Mistakes exercises.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

Due Date: 29 October 2026 Submission: Write all examples, output practice questions with answers, and find-the-mistake questions with corrections in your notebook. Also, write and run the programs on your mobile phone or laptop.

Note: Complete all tasks before the due date and keep your programs ready for checking.


Topic 5: do while Loop

Tasks

  1. Learn: Understand the purpose of the do-while in C++.
  2. Practice: Write and run Coding Exercises 12, 14, 15,16 in the do-while section.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 30 October 2026
  • Submission: Write all coding exercises, in your notebook. Also, write and run the programs on your mobile phone or laptop.
  • Note: Complete all tasks before the due date and keep your programs ready for checking.

Topic 6: for Loop

Tasks

  1. Learn: Understand the purpose of the for loop in C++.
  2. Practice: Write and run Examples 1–11.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 05 November 2026
  • Submission: Write all the examples in your notebook. Then, type and run each program on your mobile phone or laptop.
  • Note: Complete all tasks before the due date and keep your programs ready for checking.

Topic 7: for Loop

Tasks

  1. Learn: Understand the purpose of the for loop in C++.
  2. Practice: Write and run Coding Exercises 20-28 in the for Loop section.
  3. Modify: Change the code and observe how the output changes.
  4. Verify Output: Make sure each program compiles and produces the expected output.

Submission and Checking

  • Due Date: 05 November 2026
  • Submission: Write all coding exercises, in your notebook. Also, write and run the programs on your mobile phone or laptop.
  • Note: Complete all tasks before the due date and keep your programs ready for checking.