About CS306P Assignment 1
CS306P Assignment No 1 for Fall 2026 is from Introduction to Python (Practical). It covers lesson 3: Week 3 Lab # 3, carries 20 marks and is due on VULMS by 11:59 pm on Monday 9 November 2026. You can request the solution from this page.
- Course
- CS306P Introduction to Python (Practical)
- Assignment
- Assignment No 1
- Semester
- Fall 2026
- Lesson
- 3: Week 3 Lab # 3
- Total marks
- 20
- End date
- Mon 9 Nov, 11:59 pm
What CS306P Assignment 1 asks
This assignment evaluates your proficiency in Python programming by implementing four specific functions. You will work with conditional logic, assignment operators, loops, and mathematical calculations. The tasks require you to write clean, modular code that processes inputs and returns results without using print or input statements inside the functions. You must submit all four functions within a single Python source file.
-
1
Task 1: Student Performance Evaluation
5 marksCreate a function named evaluate_student(marks, attendance) that determines academic status based on specific thresholds. You must use if-elif-else statements and the logical 'and' operator to check conditions in the exact order provided. The function should return a string indicating the status as 'Excellent', 'Satisfactory', 'Failed', or 'Short Attendance'.
-
2
Task 2: Update Bank Account Balance
5 marksImplement a function named update_balance(balance) that modifies an initial account balance through a series of transactions. You are required to use assignment operators including += for deposits, -= for withdrawals and service charges, and *= to double the balance. The function must return the final calculated balance.
-
3
Task 3: Calculate Special Number Sum
5 marksWrite a function named sum_special_numbers(start, end) to calculate the sum of all integers divisible by 5 within a given range. You must use a for loop with range() and the modulus operator to identify qualifying numbers. If no numbers meet the criteria, the function should return 0.
-
4
Task 4: Calculate Repeated Product
5 marksDevelop a function named calculate_product(start, end) that computes the product of all consecutive integers between two provided values. You must use a for loop with range() to iterate through the sequence and accumulate the product. The function should return the final calculated product.
- What to submit
- One .zip file containing a single .py file with all four function definitions.
- Topics covered
- conditional statements logical operators assignment operators for loops user-defined functions modulus operator
A summary of the assignment file, Fall 2026_CS306P_1.docx. Download the file for the full wording before you start.
Lesson covered
The questions in this assignment come from this lesson. Read it in the CS306P handout before you open the assignment file, then practise it with the MCQs and past papers.
Solution
The solution has not been added yet. Request it from the download box and it will be added to this page, usually within a day.
Before you submit on VULMS
- 1 Start on the questions in the assignment file now. The solution will be added to this page once it is written.
- 2 Write the final answer in your own words. VU checks assignments for copying, and copied work gets zero marks.
- 3 Save your answer in the file type the assignment file asks for, and name it with your student ID, for example BC260012345.
- 4 Open the file once more to check it is not empty or corrupted, then upload it on VULMS before 11:59 pm on Mon 9 Nov.
Questions about this assignment
When is CS306P Assignment 1 due?
Monday 9 November 2026 at 11:59 pm. VULMS does not accept files after the deadline.
When will the solution be added?
Most solutions are up within a day of a request. Requests tell us which ones to write first, and 1 student has asked for this one so far.
Can I submit the solution as it is?
No. VU checks assignments for copying, and copied work gets zero marks. Use the solution to check your method, then write your own answer.
What file do I submit?
The assignment file says which file type to upload and lists any extra instructions from your instructor. Name the file with your student ID before you upload it on VULMS.