Description
💻 System Commands Week 10 Graded Programming Assignment Solutions
Version: v2_t12025_GradeBoost —
Advanced Bash scripting guide for OCR data reconstruction, automated file generation, and complex dataset cleaning.
This downloadable PDF provides complete, verified solutions for the Week 10
Graded Programming Assignment (GrPA) of the System Commands course. This assignment is a major capstone task requiring the reconstruction of a structured “Shopping Bill” dataset from raw, unorganized Optical Character Recognition (OCR) text files.
Detailed Programming Challenge Summary
The solution provides the professional-grade Bash logic needed to automate the following high-level tasks:
- Task 1: Multi-File Data Integration — Synthesizing information across multiple source files (
ocr_names.txt,ocr_shopname.txt,ocr_item_record.txt, etc.) to build unified records. - Task 2: Automated Dataset Partitioning — Designing a script that identifies metadata boundaries (card numbers) within raw text and generates unique
shopping_bill_<card_number>.txtfiles for every entry in the database. - Task 3: OCR Error Correction & Data Cleaning — Implementing robust logic to detect and fix common OCR misreads (e.g., correcting misidentified numeric digits) to ensure data integrity.
- Task 4: Structural Formatting — Using
awk,sed, andgrepto transform messy, unformatted strings into professionalSHOPNAME:CUSTOMER_NAME:CARD_NOheaders and standardized item tables. - Task 5: Metadata Tracking — Managing complex Bash arrays and while-loops to correctly track and assign shop names and customer names to their respective card IDs.
Why choose GradeBoost?
- ☑ Real-World Scripting: These solutions demonstrate how to handle messy, “dirty” data using industry-standard terminal utilities.
- ☑ Verified for 2026: All reconstruction logic is tested against the official dataset to guarantee correct output formatting for all card IDs.

Reviews
There are no reviews yet.