0% found this document useful (0 votes)
31 views25 pages

Bernardo 2nd Sem Lab Portfolio

This document is a portfolio for the CS 122 Intermediate Programming course, submitted by Doerson P. Bernardo. It includes acknowledgments, a dedication, and chapters detailing the development of an exam scheduler code and a PowerPoint presentation, highlighting the challenges and learning experiences throughout the project. The author expresses gratitude towards mentors, classmates, and family for their support during this academic endeavor.

Uploaded by

bryan cajurao
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)
31 views25 pages

Bernardo 2nd Sem Lab Portfolio

This document is a portfolio for the CS 122 Intermediate Programming course, submitted by Doerson P. Bernardo. It includes acknowledgments, a dedication, and chapters detailing the development of an exam scheduler code and a PowerPoint presentation, highlighting the challenges and learning experiences throughout the project. The author expresses gratitude towards mentors, classmates, and family for their support during this academic endeavor.

Uploaded by

bryan cajurao
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/ 25

PORTFOLIO

IN
INTERMEDIATE
PROGRAMMING

A Final Requirements to
CS 122 - Intermediate Programming
for 2nd Semester S.Y. 2023-2024

SUBMITTED BY:
BERNARDO, DOERSON P.
STUDENT
SUBMITTED TO:
CATLEEN GLO M. FELICIANO
SUBJECT TEACER
TABLE OF CONTENTS

A. ACKNOWLEDGMENT Page 1

B. DEDICATION Page 2

C. CHAPTER 1: THE EXAM SCHDULER


CODE Page 3
1.1 The Code Short Narrative Page 4
1.2 The Code Pictures Page 5

D. CHAPTER 2: THE EXAM SCHDULER


POWERPOINT SLIDE Page 7
2.1 The Short Narrative PowerPoint Slide Page 8
2.2 The Slides Pictures Page 9

E. CHAPTER 4: THE CLASS PICTURE Page 19


3.1 Class Picture Page 20
1

ACKNOWLEDGEMENT
In extending my appreciation, I would like to express my profound
gratitude to my esteemed professor, Ma'am Catleen Mandayag Feliciano.
Her mentorship has been invaluable, guiding me through the intricate
process of developing this report. Her expertise, dedication, and
encouragement have significantly contributed to my academic growth.

Moreover, I wish to acknowledge the collaborative efforts of my dedicated


classmates, who have been pillars of support throughout this academic
endeavor. Their insightful contributions and shared commitment to
excellence have enriched my learning experience.

To my reliable friends, I extend heartfelt thanks for their unwavering


encouragement, motivation, and camaraderie. Their belief in my abilities
and their willingness to lend a helping hand during challenging times have
been indispensable.

This achievement is not only a testament to my individual efforts but also a


reflection of the collective support from my family, friends, and mentors. I
am grateful for the collaborative spirit that has propelled me forward, and I
look forward to continued growth and success in future endeavors.
2

DEDICATION
In dedicating this significant achievement, I express my deepest
gratitude to my unwaveringly supportive parents, my father, and
mother. Their relentless encouragement and sacrifices have formed
the bedrock of my academic journey, fostering the resilience that
propelled me to this accomplishment. Their enduring belief in my
capabilities served as a guiding force, instilling in me the
confidence and determination required to overcome challenges.

My father and mother's unwavering commitment to my education


has been a source of inspiration, reflecting in the dedication and
hard work invested in this pursuit. Their sacrifices, whether big or
small, have shaped not only my academic success but also my
character. I owe this achievement to their selfless support and the
values they instilled in me.
CHAPTER 1:
THE EXAM SCHEDULER
CODE

3
4

Journey into Code:


Building an Enrollment System from Scratch

Programming can be a challenging yet rewarding journey. I recently


embarked on creating an exam scheduler system from scratch, which
opened my eyes to the complexities of coding. At first, I realized how easy
it is for short, seemingly simple tasks to result in very long and intricate
code. This experience highlighted the importance of learning to write
concise and efficient code.

To tackle this project, I began by developing a clear algorithm and


creating a detailed flowchart. These initial steps are crucial in organizing
thoughts and ensuring a logical structure for the program. Once I had a
solid plan, I sought feedback from my mentor, Mother Catleen, to
understand what features she wanted to see in the code. Her suggestions
were invaluable, and I eagerly applied and enhanced them to improve my
project.

This process demonstrated my passion for coding. Learning and applying


new concepts can be discouraging at times, especially when faced with
complex challenges. However, with love and eagerness, I found that even
the most difficult situations became manageable and enlightening. Every
obstacle was an opportunity to learn and grow.
5

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cctype>

using namespace std;

// Function to calculate compound interest


void calculateCompoundInterest() {
double principal, rate, time, compound_interest;
cout << "Enter principal amount: ";
cin >> principal;
cout << "Enter rate of interest: ";
cin >> rate;
cout << "Enter time period in years: ";
cin >> time;
compound_interest = principal * (pow((1 + rate / 100), time)) -
principal;
cout << "Compound Interest = " << compound_interest << endl;}

// Function to compute area of triangle


void computeTriangleArea() {
double a, b, c;
cout << "Enter the length of side a: ";
cin >> a;
cout << "Enter the length of side b: ";
cin >> b;
cout << "Enter the length of side c: ";
cin >> c;
double s = (a + b + c) / 2;
double area = sqrt(s * (s - a) * (s - b) * (s - c));
cout << "Area of the triangle = " << area << endl;
}

// Function to check character type


void checkCharacterType() {
char ch;
cout << "Enter a character: ";
cin >> ch;
if (isalpha(ch))
cout << ch << " is an alphabet." << endl;
else if (isdigit(ch))
cout << ch << " is a digit." << endl;
else
cout << ch << " is a special character." << endl;}

CS 122 - Intermediate Programming


6

// Function to display a random number between 10 to 100


void displayRandomNumber() {
srand(time(0));
int random_number = rand() % 91 + 10; // Generates a random number between 10 and 100
cout << "Random number between 10 to 100: " << random_number << endl;}

// Function to convert a letter to uppercase


void convertToUppercase() {
char letter;
cout << "Enter a letter: ";
cin >> letter;
letter = toupper(letter);
cout << "Uppercase letter: " << letter << endl;}

// Function to implement the Number Guessing Game


void numberGuessingGame() {
srand(time(0));
int secret_number = rand() % 100 + 1; // Generates a random number between 1 and 100
int guess, attempts = 0;

cout << "Welcome to the Number Guessing Game!" << endl;

do {
cout << "Enter your guess (between 1 and 100): ";
cin >> guess;
attempts++;

if (guess < secret_number)


cout << "Too low! Try again." << endl;
else if (guess > secret_number)
cout << "Too high! Try again." << endl;
else
cout << "Congratulations! You guessed the number " << secret_number << " correctly in " << attempts
<< " attempts." << endl;
} while (guess != secret_number);
}

int main() {
calculateCompoundInterest();
computeTriangleArea();
checkCharacterType();
displayRandomNumber();
convertToUppercase();
numberGuessingGame();

return 0;}

CS 122 - Intermediate Programming


CHAPTER 2:
THE EXAM SCHEDULER
POWErPOint slide

7
8

Journey into Code:


Building an Exam Scheduler System from Scratch

Our laboratory midterm exam required us to create a PowerPoint


presentation on an exam scheduler system. This task demanded significant
effort and creativity. The design of my presentation matched my portfolio
design, as I wanted to maintain a consistent color palette and aesthetic.
This decision was inspired by my main idea of creating a cohesive and
visually appealing theme.

Creating this PowerPoint presentation was not easy. It was a time-


consuming process that required meticulous attention to detail. Designing
each slide, integrating my flowchart, and ensuring the overall layout was
both functional and attractive took a lot of hard work. Despite the
challenges, the final product was worth the effort. The satisfaction I felt
upon completing the presentation was immense.

The presentation not only showcased my understanding of the exam


scheduler system but also demonstrated my ability to combine technical
knowledge with design skills. This experience reinforced my belief that
with dedication and perseverance, even the most challenging tasks can be
accomplished successfully. The effort put into creating the PowerPoint
presentation paid off, resulting in a polished and professional output that I
am proud of.
9

CS 122 - Intermediate Programming


10

CS 122 - Intermediate Programming


11

CS 122 - Intermediate Programming


12

CS 122 - Intermediate Programming


13

CS 122 - Intermediate Programming


14

CS 122 - Intermediate Programming


15

CS 122 - Intermediate Programming


16

CS 122 - Intermediate Programming


17

CS 122 - Intermediate Programming


18

CS 122 - Intermediate Programming


CHAPTER 3:
THE CLASS PICTURE

19
20

You might also like