0% found this document useful (0 votes)
12 views4 pages

assignment by faisal

The document is an assignment by Faisal Ali on programming fundamentals, covering definitions, importance, and advantages of programming and algorithms. It discusses the role of programming languages in software development and provides real-world examples of programming's impact on various industries. Additionally, it defines algorithms and pseudo code, explaining their significance and advantages in problem-solving.

Uploaded by

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

assignment by faisal

The document is an assignment by Faisal Ali on programming fundamentals, covering definitions, importance, and advantages of programming and algorithms. It discusses the role of programming languages in software development and provides real-world examples of programming's impact on various industries. Additionally, it defines algorithms and pseudo code, explaining their significance and advantages in problem-solving.

Uploaded by

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

Student Name : Faisal Ali

Department : (S.E.T)
Course : Programming Fundamentals

Teacher : Miss Rija

ASSIGNMENT: 01

Task 1:

Understanding Programming Concepts

Q: 01 Define the term "programming" and explain its importance in today's world.?

Programming is the process of creating a set of instructions that a computer can follow to perform
specific tasks or solve problems. It involves designing, writing, testing, debugging, and maintaining code.

Programming Important Today?

In the modern digital age, programming is essential. It powers technology across industries, drives
innovation, and enables the automation of tasks, data analysis, and the development of cutting-edge
solutions like artificial intelligence and blockchain.

Q: 02 Discuss the role of programming languages in software development?

Programming languages are tools that developers use to communicate with computers. They provide
syntax and structure for coding, enabling the creation of everything from simple scripts to complex
applications. Different languages serve specific purposes—for example, Python excels in data analysis,
JavaScript is vital for web development, and C++ is known for high-performance computing.

Task 2

Advantages of Computer Programming

Q:01 List and explain at least five advantages of computer programming?


1. Automating Tasks Programming allows for the automation of repetitive and time-consuming
processes. For instance, Python scripts can automate data entry tasks.
2. Boosting Efficiency and Accuracy Programs execute tasks quickly and with precision, reducing
human error. Accounting software like QuickBooks is a prime example.
3. Reducing Costs Automation through programming minimizes labor costs and increases
productivity. Chatbots, for example, handle customer queries efficiently, reducing the need for
human involvement.
4. Fostering Innovation Programming enables the creation of groundbreaking technologies, such
as virtual reality systems and advanced video games.
5. Enhancing Decision-Making Data analysis tools powered by programming, such as Tableau and
Power BI, allow businesses to make informed decisions by analyzing and visualizing data
effectively.
Q: 02 Provide real-world examples where computer programming has revolutionized industries or
processes?

1. Healthcare: Machine learning aids in diagnosing diseases and planning treatments.


2. Finance: High-frequency trading uses programming to analyze trends and execute trades.
3. Transportation: Apps like Uber and Lyft rely on algorithms to match drivers and passengers
efficiently.
4. Entertainment: Platforms like Netflix utilize recommendation algorithms to suggest content
tailored to users' preferences.

Task 3

Algorithm and Pseudo Code

Q: 01 Define the terms "algorithm" and "pseudo code."?

Algorithm An algorithm is a step-by-step procedure or set of rules for solving a problem or performing a
task systematically.

Pseudo Code Pseudo code is a simplified and informal way of describing an algorithm. It uses a mix of
natural language and programming-like syntax, making it easy to understand and convert into actual
code.

Q: 02 Explain the difference between an algorithm and pseudo code? •

An algorithm outlines the logical steps needed to solve a problem.

• Pseudo code translates the algorithm into a human-readable format that bridges the gap between
logic and actual programming.
Q: 03 Write a simple algorithm for finding the sum of two numbers”

Algorithm:

1. Start.
2. Input the first number (num1).
3. Input the second number (num2).
4. Add num1 and num2 to find the sum.
5. Display the sum.
6. Stop.

Pseudo Code:

BEGIN
INPUT num1
INPUT num2 sum ←
num1 + num2
OUTPUT sum
END

Task 4

Advantages of Algorithms
Q: 01 Discuss the importance of algorithms in computer programming?

Algorithms are the backbone of programming. They ensure that problems are solved systematically and
efficiently, leading to reliable and optimized solutions.

Q: 02 Explain at least three advantages of using algorithms in problem-solving" Key

Advantages of Algorithms:

1. Improving Efficiency Algorithms optimize resources like time and memory, making programs
faster and more resource-efficient.
a. Example: Sorting algorithms like Quicksort organize data efficiently.
2. Scalability Well-designed algorithms can handle large datasets and scale as the problem size
increases.
a. Example: Search engines process massive amounts of data using algorithms to deliver
accurate results.
3. Reusability Algorithms act as blueprints that can be reused across different applications and
scenarios, saving development time.
a. Example: Encryption algorithms are applied in securing communication and data
storage.

Thank you Miss

You might also like