0% found this document useful (0 votes)
23 views5 pages

Laboratory Activity No.3

Uploaded by

24-07156
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views5 pages

Laboratory Activity No.3

Uploaded by

24-07156
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Laboratory Activity No.

3
Intended Learning Outcomes (ILO) Score
Construct C/C++ code using common programming
ILO 2 10pts
concepts effectively.
ILO 3 Analyze common errors for proper code functionality. 10pts

9-10 6-8 0-5


The code demonstrates The code shows a The code reflects a
a strong understanding good command of limited understanding
of fundamental basic programming of fundamental
programming concepts, concepts, with programming
is well-structured, and correct syntax and concepts, with
ILO 2: Code
employs correct C/C++ structure. While noticeable issues in
Constructio
syntax using simple there may be some logic, structure, or
n
constructs. It effectively inefficiencies or syntax. Significant
(10 points)
meets the learning areas for errors impact
outcome with clear and improvement, it functionality, and the
efficient code. largely adheres to code does not follow
the guidelines the provided
provided. guidelines.
The analysis is thorough, The analysis The analysis identifies
accurately identifying correctly identifies some errors but
and effectively correcting and addresses most overlooks or
errors in accordance with errors, with only inadequately
ILO 3: Error the guidelines provided, minor issues addresses others,
Analysis ensuring optimal code remaining. It follows resulting in partial or
(10 points) functionality. the guidelines but non-functional code.
may miss some There is a lack of
opportunities for adherence to the
improvement in code provided guidelines.
functionality.

GENERAL DIRECTIONS:
1. Create a program using the following IDE software:
∙ For Desktop/Laptop users
o Dev C++ (recommended)
o Visual Studio o Code Blocks
∙ For Mobile Phone users
o C++ Compiler IDE (android - offline)
o www.cpp.sh (iOs – online)
2. Use the comment format below for every program.
3. Provide the CPP file and the screenshots of every program :
a. Complete program code
b. Output
c. Errors encountered
Note: These 3 screenshots should be uploaded to a folder in your google drive
named “Surname, First Name”. After that, kindly copy the link of your drive to the
posted google form in our google classroom.

4. Provide a simulation for every program. Each student MUST NOT have the same
simulation given that each of you has different INPUTS.
LOOPS
Problem 1: ABCD Mini Grocery Store

Create a program that serves as a simple Point-of-Sale (POS) system for "ABCD Mini
Grocery Store." The program should perform the following functions:

1. Display a welcoming message: "Welcome to ABCD Mini Grocery Store - Simple


POS System-."
2. Prompt the user to enter the prices of the items purchased.
3. Calculate and display the total amount spent.
4. Ask for the payment amount from the customer, ensuring it is greater than or equal
to the total amount. If the payment entered is less than the total, the program
should repeat the prompt until a valid payment is provided.
5. Calculate and display the change to be returned to the customer.
6. Display the ending message: "Thank you for shopping with us!"

Programming Guidelines:

 Use #include <iomanip> along with << fixed << setprecision(2) to ensure monetary
amounts are rounded to two decimal places.

Sample Output:
ARRAY

Problem 2: Café Blues Reservation System

This program allows customers to reserve a spot at Café Blues for their 5th anniversary
promotional event. The number of reservations is based on user input, and the program
will store the names of customers who wish to make a reservation.

Requirements:

1. The program will use for loop to prompt the user for the names of the customers.
2. It will utilize an array to store the names.
3. At the end of the program, it will display the list of the names and the total number
of reservations.

Note: Make sure to include also the welcoming message in your program. (Welcome to
Café Blues and 5th Anniversary Promo Reservation)

Sample Output:

You might also like