1/17
Vocabulary and specification flashcards covering the CCE 102 Computer Programming 1 scenario activity 'Aling Nena\'s Pasalubong Express', including String manipulation rules, calculations, output structure, and scoring criteria.
Aling Nena's Pasalubong Express Scenario
A CCE 102 (Computer Programming 1) scenario activity where students write a Java program on paper to process messy customer orders from Messenger into a formatted order slip.
Order Text Pattern
The invariant structure of an order string: spaces, item name, dash, price, dash, quantity, and trailing spaces.
Requirement 1 (Input)
Prompts the user to enter the customer's full name (first and last name) and the order text, where each input is typed on its own line and may contain spaces (4 points).
Requirement 2 (Order Received)
Trims leading and trailing spaces from the order text and outputs the complete order line prefixed with 'Order received: ' in all capital letters (8 points).
Requirement 3 (Customer Initials)
Extracts and displays the uppercase initials of the customer's first name and last name prefixed with 'Customer: ' (8 points).
Requirement 4 (Item Name)
Extracts all characters before the first dash in the order string and displays them in uppercase prefixed with 'Item: ' (8 points).
Requirement 5 (Total Price)
Calculates the product of item price and quantity, rounded to the nearest peso, displayed in the format 'Total: [amount] pesos' (8 points).
Requirement 6 (Boxes Needed)
Computes packaging requirements where one box holds up to 6 pieces and any partially filled box counts as a full box (8 points).
Requirement 7 (Delivery Fee)
Determines the delivery fee as either 5% of the total price or 50 pesos, whichever is higher, rounded to the nearest peso (8 points).
Requirement 8 (Tracking Code)
Generates a tracking identifier composed of the first 3 letters of the item name, a dash, a random 4-digit order number, a dash, and the customer initials (e.g., DRI-7610-MS) (8 points).
Random Order Number Range
The inclusive integer range from 1000 to 9999 used to generate the random order number for the tracking code.
Clean Order Slip Structure
The exact seven-line sequence printed by the program: Order received, Customer, Item, Total, Boxes needed, Delivery fee, and Tracking code.
Part 1 (The Program)
The handwritten coding portion worth 64 points (4 points for the shell, 4 points for requirement 1, and 8 points each for requirements 2 through 8).
Part 2 (Test Day)
A hand-tracing exercise worth 28 points (4 points per line) where students simulate computer execution to manually write out the 7 lines of the order slip for a new test order.
Part 2 Test Input
The tracing values provided for Test Day: customer name 'ana reyes', order text '" Durian candy-89.75-12 "', and random number 5307.
Part 3 (Paper Formatting)
The presentation component worth 8 points requiring full name and class code at the top, completed on one whole yellow paper, with neat, indented code inside main.
CCE 102 Class Codes
The specific course sections listed for the activity: 3259, 3339, or 3354.
Activity Time Limit
The allotted duration of exactly 60 minutes to write the program on paper and complete the Test Day manual trace.