Laboratory Activity No.3
Laboratory Activity No.3
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
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:
Programming Guidelines:
Use #include <iomanip> along with << fixed << setprecision(2) to ensure monetary
amounts are rounded to two decimal places.
Sample Output:
ARRAY
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: