University of Central Punjab
Faculty of Information Technology and Computer Science
Course Title: Programming Fundamentals
Course Code: CP113
Assignment 03
Name: _______________________________
Registration Number: ___________________
Section: ______________________________
CLO # Course Learning Outcome (CLO) Taxonom Mappin
y Level g to
PLO
CLO 3 Design and implement algorithms to solve C3 P4
real-world problems.
Instructions:
1. Group Assignment (Only 1 member can submit the assignment)
2. You can attempt the implementation on any Java compiler, but have to submit the
assignment in printed form and also on Odoo (attach all .java files)
3. The assignment should be submitted on A4 sheets or Assignment sheets only.
Violation will result in a deduction of 1 mark from the scored marks.
4. Each group must attach this front page to his/her assignment. Violation will result in a
deduction of 1 mark from the scored marks.
5. The assignment's Due Date on the portal is 16 th September 2025, and the hardcopy
submission deadline will be in the coming class right after 16 th September 2025.
6. Late submission will result in a 10% deduction in marks.
7. No request for late submissions will be considered this time.
University of Central Punjab
Faculty of Information Technology and Computer Science
Assignment Phases
Phase 1: Core Logic & Data Structures
Goal: Build the backbone of the application using arrays and logic (console-based).
Includes:
• Define data structures (arrays, 2D arrays).
• Implement core functions like:
o Add, update, delete entries (e.g., orders, users, items).
o Calculations (e.g totals, averages, validations).
• Perform input/output via console.
• Test all logic without a GUI or file handling.
Example for Food Ordering App:
• Store food items in arrays.
• Allow item selection and total calculation in the console.
-------------------------------------------------------------------------------------------------------------------------------
Phase 3: File Handling & Report Generation
Goal: Add persistence and reporting to complete the application.
Includes:
• Save and load data using files (FileWriter, BufferedReader).
• Store past orders, logs, or summaries.
• Display saved data in GUI tables.
• Handle file-related exceptions (e.g., FileNotFoundException).
Example for Food Ordering App:
• Save each order to orders.txt.
• Load and show order history in a table.
-------------------------------------------------------------------------------------------------------------------------------