About CS306 Assignment 1
CS306 Assignment No 1 for Fall 2026 is from Introduction to Python. It covers lesson 35: Python Functions Applicable to Strings, carries 20 marks and is due on VULMS by 11:59 pm on Thursday 12 November 2026. You can request the solution from this page.
- Course
- CS306 Introduction to Python
- Assignment
- Assignment No 1
- Semester
- Fall 2026
- Lesson
- 35: Python Functions Applicable to Strings
- Total marks
- 20
- End date
- Thu 12 Nov, 11:59 pm
What CS306 Assignment 1 asks
The EcoWatt Smart Grid Auditor assignment requires developing a Python program to manage household electricity billing and audit reporting. Students must implement two modules that handle customer registration, daily tariff calculations based on specific consumption slabs, and cumulative billing adjustments. The program must utilize loops, conditional logic, and various arithmetic and assignment operators to process data over a user-defined audit period. The final output is a comprehensive audit report and an automated inspection schedule.
-
1
Module 1: Customer Onboarding, Daily Tariff Engine & Multi-Day Audit Loop
20 marksDefine a parameterless function display_system_banner() and a function calculate_daily_tariff(units, is_peak_day) that applies slab-based pricing and a 10% peak-demand surcharge using multiplication assignment. Implement a main program that collects customer details and uses a for loop to iterate through the audit duration. Inside the loop, track total units, gross bill, and overload days using addition assignment operators while printing daily summaries.
-
2
Module 2: Final Bill Calculation, Summary Report & Inspection Schedule
20 marksDefine compute_net_invoice(gross_cost, total_units, overload_days, has_solar) to apply a maintenance fee via floor division, a quadratic overload penalty using exponentiation, a green rebate using logical operators, and a 5% sales tax. Calculate average daily usage, 50-kWh blocks using floor division, and remainder units using the modulus operator. Finally, print the full audit report and use a step-based for loop to display bi-daily inspection dates.
- What to submit
- One .py file submitted in a .Zip or .RAR archive.
- Topics covered
- Python functions For loops If-else conditions Arithmetic operators Assignment operators Logical operators Floor division and modulus
A summary of the assignment file, Fall 2026_CS306_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 CS306 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 Thu 12 Nov.
Questions about this assignment
When is CS306 Assignment 1 due?
Thursday 12 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 0 students have 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.