Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

COM 313: C++ PROGRAMMING LANGUAGE

NAME: OLADELE PHILIP ANUOLUWAPO

MATRIC: 20/69/0002

LEVEL: HND 1

DEPARTMENT: COMPUTER SCIENCE

ACTIVITY 1

A. From your knowledge what do you understand by library function

B. There is several library function list and explain 10 of them

SOLUTION A

From my knowledge, a library function refers to a pre-written piece of code that is part of a library in a programming
language. These functions are designed to perform specific tasks and can be called by a program to achieve a particular
functionality without having to write the code from scratch. Library functions provide a way to reuse code, save time, and
simplify the development process. They are typically provided by the programming language itself or by external libraries
created by developers or organizations. Programmers can use library functions to perform common operations, such as
mathematical calculations, string manipulation, input/output operations, and more.

SOLUTION B

Here are 10 commonly used library functions in programming:

1. `printf()`: A function is Used to print formatted output to the console.

2. `scanf()`: Used to read formatted input from the user.

3. `strlen()`: Used to find the length of a string in C and C++.

4. `strcpy()`: Copies one string to another.

5. `strcmp()`: Compares two strings and returns the difference.

6. `malloc()`: Allocates memory dynamically during program execution.

7. `Input ()`:In python, this function is used to take input from the user.

8. `sqrt()`: Calculates the square root of a number.

9. `rand ()`: Generates a random number.

10. `charAt ()`: In many programming languages, this function returns the character at a specified index in string
ACTIVITY3: With aid of screenshot, highlight the steps you look to install DEV C++

I will like to explain what DEV C++ is. DEV C++ is a full featured C and C++ Integrated Development Environment (IDE) for
windows platforms Millions of developers, Students and Researchers use DEV-C++ since the first version was released in
1998. It has been featured in dozens of C++ scientific books and remains one of the favorite learning tools among universities
and schools worldwide.

STEP: 1 This my first step where I downloaded my DEV-C++

STEP2: STEP 3:
STEP 4: STEP 5:

STEP 6: STEP 7:

STEP 8: STEP 9:
STEP 10: STEP 11:

B) write a c++ program to display the first letter of your surname in block of 3* wide and lines long
C) Write a C++ program to display HELLO in big Blog letters where each letters is 7lines high and 5dots wide

You might also like