CCE 102 Scenario Activity: Aling Nena's Pasalubong Express

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

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.

18 Terms

1
New cards

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.

2
New cards

Order Text Pattern

The invariant structure of an order string: spaces, item name, dash, price, dash, quantity, and trailing spaces.

3
New cards

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 (44 points).

4
New cards

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 (88 points).

5
New cards

Requirement 3 (Customer Initials)

Extracts and displays the uppercase initials of the customer's first name and last name prefixed with 'Customer: ' (88 points).

6
New cards

Requirement 4 (Item Name)

Extracts all characters before the first dash in the order string and displays them in uppercase prefixed with 'Item: ' (88 points).

7
New cards

Requirement 5 (Total Price)

Calculates the product of item price and quantity, rounded to the nearest peso, displayed in the format 'Total: [amount] pesos' (88 points).

8
New cards

Requirement 6 (Boxes Needed)

Computes packaging requirements where one box holds up to 66 pieces and any partially filled box counts as a full box (88 points).

9
New cards

Requirement 7 (Delivery Fee)

Determines the delivery fee as either 5%5\% of the total price or 5050 pesos, whichever is higher, rounded to the nearest peso (88 points).

10
New cards

Requirement 8 (Tracking Code)

Generates a tracking identifier composed of the first 33 letters of the item name, a dash, a random 44-digit order number, a dash, and the customer initials (e.g., DRI-7610-MS) (88 points).

11
New cards

Random Order Number Range

The inclusive integer range from 10001000 to 99999999 used to generate the random order number for the tracking code.

12
New cards

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.

13
New cards

Part 1 (The Program)

The handwritten coding portion worth 6464 points (44 points for the shell, 44 points for requirement 1, and 88 points each for requirements 2 through 8).

14
New cards

Part 2 (Test Day)

A hand-tracing exercise worth 2828 points (44 points per line) where students simulate computer execution to manually write out the 77 lines of the order slip for a new test order.

15
New cards

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 53075307.

16
New cards

Part 3 (Paper Formatting)

The presentation component worth 88 points requiring full name and class code at the top, completed on one whole yellow paper, with neat, indented code inside main.

17
New cards

CCE 102 Class Codes

The specific course sections listed for the activity: 32593259, 33393339, or 33543354.

18
New cards

Activity Time Limit

The allotted duration of exactly 6060 minutes to write the program on paper and complete the Test Day manual trace.