ES114 Computer Programming
ES114 Computer Programming
COLLEGE OF ENGINEERING
Compiler:
This module is composed of multiple units based on the lessons prepared by the
instructor. And the learning materials will be distributed to the students periodically.
Activities and assessments will be collected by the course instructor regularly.
Course Description
Course Objectives/Outcomes:
1. Understand basic information technology concepts.
2. Use application software and the Internet properly.
3. Acquire proficiency in algorithm development using a high-level programming
language;
4. Use the computer as a tool in engineering practice.
References:
Get ready to dive deep into the world of Computer Programming and know all about the
Basics of Programming in detail.
Let’s Start!!
What Is Computer Programming?
Computer Programming is a set of instructions, that helps the developer to perform certain
tasks that return the desired output for the valid inputs.
Processing: Operations done on this information (input data) is called Processing. The
Processing of input is done in the Central Processing Unit which is popularly known
as CPU.
Output Devices: These are the computer hardware devices that help in converting
information into human-readable form. Some of the output devices include Visual Display
Units (VDU) such as a Monitor, Printer, Graphics Output devices, Plotters, Speakers, etc.
A developer can analyze the problem and come up with simple steps to achieve a solution
to this problem, for which he/she uses a programming algorithm. This can be compared to a
recipe for a food item, where ingredients are inputs and finished delicacy is the output
required by the client.
The Recipe contains ingredients (inputs) and directions (steps) to prepare a food item.
In the development environment, the products, software, and solutions can be designed as
scenarios, use cases, and data flow diagrams.
Simple flow chart describing the steps and flow of the solution.
Based on the client’s requirements, the solution required could be desktop, web or mobile-
based.
Developers should have essential knowledge on the following concepts to become skilled in
Computer Programming,
#2) Source code: Source code is the actual text that is used to construct the program using
the language of choice.
For Example, it is mandatory to have the main method in Java and the text used is as
shown below.
#4) Data Type: Data used in the applications can be of a different type, it can be a whole
number (integer), floating-point (decimal point numbers), characters or objects. For
Example, double currency = 45.86, where double is a data type used for storing numbers
with decimal points.
#5) Variable: Variable is a space holder for the value stored in the memory and this value
can be used in the application. For Example, int age = 25, where age is a variable.
#6) Conditionals: Knowledge of how to use a certain condition, such that a set of code
should execute only if a certain condition is true. In case of a false condition, the program
should exit and should not continue the code further.
#7) Array: Array is the variable that stores elements of a similar data type. Knowledge of
using an array in coding/programming will be a great benefit.
#8) Loop: Loop is used to execute the series of code until the condition is true. For
Example, in Java, loops can be used as for loop, do-while, while loop or enhanced for loop.
The code for loop is as shown below:
for (int I =0; i<10; i++) {System.out.println(i); }
#10) Class: Class is like a template that contains state and behavior, which corresponding
to programming is field and method. In Object-Oriented languages like Java, everything
revolves around Class and Object.
Essentials Of A Programming Language
Just like any other language we use to communicate with others, a programming language
is a special language or a set of instructions to communicate with computers. Each
programming language has a set of rules (like English has grammar) to follow and it is used
to implement the algorithm to produce the desired output.
Programming Popularit
Practical Applications of Languages
Language y
Java 1 Desktop GUI application (AWT or Swing api), Applets, online shopping sites,
internet banking, jar files for secured file handling, enterprise applications, mobile
applications, gaming software.
Python 3 Machine learning, Artificial Intelligence, Data analysis, face detection and image
recognition Software.
C++ 4 Banking and trading enterprise software, virtual machines and compilers.
Visual Basic 5 Windows services, controls, control libraries, Web applications, Web services.
.NET
C# 6 Desktop applications like a file explorer, Microsoft office applications like Word,
Excel , Web browsers, Adobe Photoshop.
JavaScript 7 Client side and server side validations, DOM handling, developing web elements
using jQuery (JS library).
PHP 8 Static and dynamic websites and applications, Server side scripting.
Objective – C 10 Apple’s OS X, iOS operating system and APIs, Cocoa and Cocoa Touch.
TIOBE Programming Community index is an indicator of the popularity of programming
languages.
The selection of particular programming languages depends on many factors such as:
Computer Programming language can be divided into two types i.e. Low-level Language,
and High-level Language.
For Example,
for (int i = 0; i < 10; i++)
{
System.out.println(i);
}
Necessary Prerequisites/Skills Required For Programming
#1) Self Reliance: To succeed in coding, you should develop a confidence in yourself,
control your impatience, frustration and should refrain from being dependent on someone
else to help you in solving your technical problems, rather you should be self-reliant and
keep faith on your capabilities, monitor your efforts and remain optimistic and perseverant in
learning.
#3) Logic: As a developer or tester, to excel in the programming language, one must
always have conditional and logical thinking. It can be improved as we improve our
muscles, there are a few sites where one can prepare and improve logical thinking and
prepare for programming language.
Fresherslive
The Online Test Centre
Indiabix
#4) Attention to Detail: A conscientious and alert person with an eye for details will check
his/her work for minute details and this will prevent any syntax error, verify if any steps like
unit testing or including API /classes, miss associated jar or class files. For some people,
meditation might help to improve focus and concentration while for others taking a walk or
playing some mind games might help. You need to find out what works for you.
#5) Abstract Thinking: During sprint meeting in an agile environment, the ability to think
out of the box, or see things from different angles/perspectives, help to uncover scenarios
for requirements and design considerations. This can be improved by a discussion with
others.
#6) Patience: At times, it happens as you write a code, for which you are confident about,
verified it a couple of types, it works in your machine, but after integration the code snippet
does not work, all the effort to identify the fault go in vain, you feel stressed out, frustrated
and feel like good for nothing.
During such times, your ability to overcome the situation, try again from scratch and develop
patience will prove the developer to be more mature and he/she gets appreciated for the
ability to work under pressure environments like releases and acceptance testing or during
client demos.
#7) Strong Memory: Being able to understand and visualize the high-level design, data
flow, algorithm, data structure, how they interact with each other will separate you from an
average coder. Meditation techniques and memory exercises can help with this as well.
As a human, you should have the habit to introspect daily and identify what you have done
today, how can you improve yourself, what steps or precautions you will take to avoid
difficult situations.
Be honest and think about why you want to learn computer programming.
What is your goal, what will you accomplish in your dream of learning programming?
Choose the right programming language. E.g. Front end programming like
JavaScript, PHP, Back end programming like SQL, Java, Python for web-based
development.
Check out some interactive tutorials to get familiar with a programming
language. w3schools is good to start understanding many programming languages,
and w3resource is good to learn SQL queries interactively.
Get a book on selected programming language i.e. SQL for Dummies, JavaScript for
Dummies.
Try out some online courses i.e. give a try to Udemy
Learn Data Structures and Algorithms.
Make a project using a selected programming language.
Attempt some certification, and this will make you more confident, knowledgeable
and competent.
Web Developer
UI Developer
User Experience Designer
SQL Developer
Quality Assurance
Automation Test Engineer
Software Engineer at Test
In the Software Development department his/her responsibilities include the
following duties:
Designing and developing custom and complex solutions using various programming
languages wherein he/she should be competent, For Example, Java, Python,
Javascript, SQL, oracle.
Manage project software delivery lifecycle, that includes planning, design, building,
testing, and deployment within the company’s planned delivery framework.
Basic knowledge in Networking, ability to work on Integrated Developer Tools such
as Eclipse, NetBeans, Atom, etc.
Should have hands-on working experience with at least one of the CI tools such as
Jenkins, Gitlab, Bamboo, etc.
Should able to use Linux / Unix scripts and shell scripting.
Excellent communication and people skills.
Should be a good Team player as well as an Independent Contributor.
Understanding of agile development environment.