Professional Documents
Culture Documents
Lab Report IT
Lab Report IT
Lab Report IT
Submitted for partial fulfilment of the requirements for the award of the degree of
Bachelor of Technology
in
Electrical Engineering
Session: 2020-21
17ESKEE001
VII Sem, EE - A
I would like to show gratitude towards my teachers and the Course organizers for the
opportunity given and help to complete my training within the time allotted.
This Course would not have been completed without the support of my teachers and
parents. Therefore, I would like to thank our Industrial Training Coordinator,
Dr. Sarfaraz Nawaz for extending his cordial support throughout the course completion. I
would also like to thank my HOD of Electrical Department, Dr. Dhanraj Chitara for
giving me enough time to complete the course.
Our efforts made together led to the effective completion of the training. This report is
made with utmost care, interest and effectiveness, but imperfections are the basic beauty
of any work.
The suggestions and guidance of my teachers are the basic priority and therefore I shall
extend my apologies and work on my mistakes regarding this report and course, leading
to effectiveness and perfection.
Aakriti Dwivedi
7-EE-A
17ESKEE001
Appendices…………………………………………………………………………… 43
References……………………………………………………………………………. 44
Software reduces the probability of getting an error and most importantly, we can create
something with less efforts and more accuracy. Coding languages such as Python, C,
MATLAB, etc. are being used in every industry before implementing anything; things are
Each programming language has its own merits and demerits, coding in Python and
MATLAB is comparatively easier than C, C++ as they tend to execute one-line statements
instead of a whole document. Errors in them can be easily detected and the statements can
be easily executed as they save the time of compiling. These come under technical skills,
but the equally important ones are the communication skills. These are the basic keys for
success in all fields, especially during a job interview. The more you communicate
effectively, the more are your chances of succeeding. Therefore, soft skills and hard skills
In this report, all the above things have been discussed. Business skills include
communication skills and some basic knowledge of key elements such as AI, IT and
A) INTRODUCTION
I. Course details
Name of Course – Programming for everybody (Getting Started with Python)
Course offering institute – University of Michigan, on Coursera
Duration of course- 7 Weeks
Python, unlike other programming languages, emphasizes code readability, and allows
you to use English keywords instead of punctuation. The readable and clean code base
will help you to maintain and update the software without putting extra time and
effort. It shortens the amount of time you spend on projects by allowing you to
repurpose chunks of code [6].
Python is also used for scientific research and computing and even has several science-
friendly or science-specific libraries including:
Therefore, we can say that Python is incredibly easy to learn and use. In fact, it's one
of the most accessible programming languages available. Part of the reason
is the simplified syntax with an emphasis on natural language. But it's also because we can
write Python code and execute it much faster.
Python has a chevron prompt (>>>) where you can write series of statements.
e) Comments: Comments are given at the end of the statement for the purpose of
understanding of the code by user. Comments are given by hash tag (#).
Ex. #Code to convert elevator floors
INP=input (‘Europe floor’) #Input the floor in Europe
Usf=int (INP) +1 #US floor is increment of Europe floor
print (‘US floor’, Usf)
OUTPUT: Europe floor 0
US floor 1
C) EXPRESSIONS
There are 4 atoms in Python, which are variables, constants, reserved words and operators.
i) Operators: They are special symbols in Python that carry out arithmetic or
logical computation. The value that the operator operates on is called an
operand.
Ex. >>>2+3 (2 and 3 are operands, ‘+’ is an operator)
5 (Output)
ii) Reserved Words: 1. A reserved word has a specific meaning or function in
Python.
2. They cannot be kept as a file name or a variable name.
Ex. Print ()-prints a value, float ()-converts a value to decimal value, exit ()-closes the
program.
iii) Constants: 1. They include strings, integers and float (decimal) numbers.
2. If we want to convert string to integer- int () is used.
3. If we want to convert string to float- float () is used.
4. Integer division results in floating numbers.
Types of Operators
Arithmetic Comparison Logical Bitwise
operators Operators Operators Operators
Addition(+) Greater than(>) and AND (&)
Subtraction(-) Less than(<) or OR (|)
Multiply(*) Equal to(==) not NOT (-)
Divide(/) Not equal to (!=) XOR (^)
Modulus or Greater than or Right
remainder (%) equal(>=) Shift(>>)
Less than or
Exponential(**) equal(<=) Left shift(<<)
Assignment
Special Operators Operators
is "=, &= , |= "
is not "+=, -=, *=, /= "
">>=, <<=, ^=.
in **="
not in
6. To Trace a value type- type () is used.
Ex. >>>type(eee) <class ‘str’>(output)
>>>type(‘hello’) <class ‘str’>(output)
>>>type(‘1.0’) <class ‘float’>(output)
7. To print more than 1 input;
Ex. >>>x=9
>>>print(‘welcome’,x) welcome 9 (output)
iv) Variables: 1. Variables are assigned with a value which takes up some memory
from which it can be used whenever required.
Department of Electrical Engineering, SKIT M&G, Jaipur Page 5
2. Values in variables are assigned using assignment operator (=).
3. MNEMONICS: Variable names should be user-friendly and sensible as it simplifies
the code to an extent.
Ex. >>>Hours=35: (variable Hours) ;
>>>Rate=5:
>>>Pay=Hours*Rate:
4. When ever, a new value is assigned to the same variable, the memory uses the new one
and wipes out the old memory and value.
5. Variables are case sensitive, i.e. x and X are different and store different values.
6. In Python, variable value is not printed unless print() function is used.
7. Never start a variable name with a number, we can use underscore ( _ ) to start or to fill
the blanks between words in a variable name.
8. Variable ‘None’, it is a flag value given to a variable for which an initial value cannot
be provided for the time being.
Ex. To calculate smallest and largest number, we have make loops and we have to take an
initial value as reference. As we cannot say what will be the initial value, therefore, the
variable is given value as ‘None’.
Example of a code
The parameter which is passed in Fig3.1 (a) input function is (Enter hours) is called a
prompt.
The conditional statements mainly used are if, if-else, elif (else-if), try and except
structure.
1. If: ‘If’ statement is used for one way structure where another condition is not
provided.
Ex. >>>x=inp(‘value’)
>>>if x==5:
print(x)
2. If-else: It is a two way structure in which if the 1st condition is true then the ‘if’
code is executed otherwise ‘else’ one is executed.
The shifting of statement or assigning argument shifted after using conditional
statements is called Indenting.
Ex. >>>If 2>1:
print(‘okay’)
else:
print(‘leave’)
3. Elif: Elif is a keyword used for nested else-if statements in a code. Many nested
conditions can be inserted in a code. It can be used when several attempts or
conditions are to be provided in a single attempt.
Ex. >>> if a>b:
print(‘no modulus required’)
elif a==b:
print(‘take modulus’)
else:
print(‘take another value of a’)
4. Try-Except: Some conditions get a trace-back when we try to run them, for
example, if we try to convert a string to integer type. Therefore, try and except
Fig 1.7 (a), (b) Trace-back without try-except, (c), (d) using try and except
Arguments are specified after the function name, inside the parentheses. You can add as
many arguments as you want, just separate them with a comma.
The following example in Fig 5.3 has a function with one argument (fname). When the
function is called, we pass along a first name, which is used inside the function to print the
full name.
If you try to call the function with 1 or 3 arguments, you will get an error.
Some important functions: (a) Max() and Min(): These functions are predefined
and have a code saved previously which can find the maximum or a minimum
value of the statement (string or numbers) passed inside them.
(b) Return(): Return is an in-built function which has a code inside it to return whatever
value is passed in the argument.
Return(‘Hello’)
>>>print(‘Sarah’)
II. LOOPS AND ITERATIONS: Loops and iterations are used to execute a
statement or a series of statement till the desired conditions are met and result
is displayed.
2) ‘While’ loop: In a while loop, till the condition given in while loop is true, it keeps
on executing the statements under it.
3) ‘Break’ keyword: It breaks the current loop and jumps to the statement immediately
followed by the loop.
‘Continue’ keyword: It ends the current iteration and jumps to the top of the loop. It is
helpful as when the statement is not true, we don’t have to run the entire loop or program.
It saves time and memory.
F) ADVANTAGES AND DISADVANTAGES
Python is a popular, high-level, general purpose, dynamic programming language that has
been present on the market for almost 30 years now. It can be easily found almost
anywhere today: web and desktop apps, machine learning, network servers and many
more [7].
Speed limitations.
Weak in Mobile Computing and Browsers.
Design restrictions
Underdeveloped database access layers.
Problems with threading.
Python is a must for students and working professionals to become a great Software
Engineer especially when they are working in Web Development Domain.
Python is Interactive − We can actually sit at a Python prompt and interact with
the interpreter directly to write your programs.
MATLAB
A) INTRODUCTION
I. Course details
Name of Course – MATLAB Onramp
Course offering institute – MathWorks
Duration of course- 1 week
MATLAB is a very useful tool as it is easy to use as it stores data in a form of matrix
which can be simplified and used easily in any program.
It has multiple windows for various purposes for storing, executing and solving purposes
which makes it easier to operate on [8].
B) MATLAB DEKSTOP
i. Command Window: 1. In a Command Window, user can assign values to the
variables as well as write expressions at the command prompt (>>) [3].
2. These commands can be executed instantaneously.
3. If we don’t want the output to be shown on the window, we use semicolon (;) at
the end of the statement.
4. clc command is used if we want to clear the command window.
Ex. >>a=2;
>>b=4;
>>c=b+a^2 c=8 (output)
vi. Editor Window: 1. Files with .m extension containing MATLAB statements are
known as M-file or Script files or Editor, which execute a series of MATLAB
statements.
2. The result of editor window is displayed in Command window.
3. It saves time and memory as several statements are executed together.
C) MATRIX OPERATIONS
Data types in MATLAB [2]
1. INTEGERS: Can be positive or negative. (1,2,-1,-2)
2. FLOATING POINT NUMBERS: These are the numbers with decimal places
such as 3.1416. The exponent notation can be used to specify the floating point
constants. For ex. 1.5 x 10^5 can be written as 1.5e5.
3. COMPLEX NUMBERS: Specified using special complex operators (i or j). For
ex. 3+4*i.
4. CONSTANTS: Having fixed values.
5. TEXT STRINGS: These are the array of characters specified inside single quotes.
For ex. ‘Hello World’
2. 2-D Array: a. When collection of data consists of both rows and columns, it is
known as a matrix.
3 3 3 (output)
333
f. Some special matrices
D) PLOTTING: The plot(x,y) function is used to plot a function on x-y plane. We can
edit the plot using different commands, add labels to axes and change the color and
size of plotted graph, etc. It makes out capability to distinguish among different plots
easier. An example is given below with its output plot which includes all possible
commands that can be executed for a plot.
F) SUMMARY: MATLAB basic syntax that were learned in the course are listed
below:
Example Description
x = pi Create variables with the equal sign (=).
The left-side (x) is the variable name containing the value on the right-side
(pi).
y = sin(-5) You can provide inputs to a function using parentheses.
Example Description
4 scalar
[3 5] row vector
[1;3] column vector
[3 4 5;6 7 8] matrix
Example Description
1:4 Create a vector from 1 to 4, spaced by 1, using the colon (:) operator.
1:0.5:4 Create a vector from 1 to 4, spaced by 0.5.
linspace(1,10,5) Create a vector with 5 elements. The values are evenly spaced
from 1 to 10.
Indexing: Table 2.5
Example Description
A(end,2) Access the element in the second column of the last row.
A(2,:) Access the entire second row
A(1:3,:) Access all columns of the first three rows.
A(2) = 11 Change the value of the second element an array to 11.
Example Description
plot(x,y,"ro-","LineWidth",5) Plot a red (r) dashed (--) line with a
circle (o) marker, with a heavy line width.
hold on Add the next line to existing plot.
hold off Create a new axes for the next plotted line.
title("My Title") Add a label to a plot.
Business skills are skills that help people understand consumer and organizational behavior and
use this information to promote the success of the company. Business skills are often
considered soft skills and may include team management, leadership and communication skills.
These skills are primarily important for entrepreneurs, company owners and managers, however,
more and more employers look for job candidates who possess a combination of both
business and technical skills [5].
Along with communication and soft skills, technical skills are also important. They can
help you work more efficiently, boost your confidence and make you a more valuable
candidate for employers.
As job hunting becomes more competitive, graduates need to work even harder to
differentiate themselves from other candidates, and acquiring technical skills is one way to
achieve this.
This course includes business skills, which are helpful in any field of work, IT foundation
skills, accounting basics and overview of AI.
Accounting plays a vital role in running a business because it helps you track income and
expenditures, ensure statutory compliance, and provide investors, management, and
government with quantitative financial information which can be used in making business
decisions.
B) COMMUNICATION SKILLS
Being able to communicate effectively is the most important skill. It is what enables us to
pass information to other people, and to understand what is being said to us.
Communication involves words, intonation, facial expressions and body language &
actions. Intonation is variation in spoken pitch used for a range of other functions such as
2) Types of Communication
Verbal (Speaking)
Non-Verbal (Actions – Face Expressions, Speed of Communication, gestures,
posture, eye contact & appearance)
Writing
Visualizing
Hard skills include your degrees and talents. Both hard and soft skills are important for
bright future.
2. Functional: No previous employment details are mentioned in this. Only skills are
mentioned.
Begin the email by thanking the interviewer for considering your candidature.
Remind him of the meeting and mention how pleased you were to get in touch with
him/her.
Finally, mention your motivation, qualities, and reiterate your interest in the organization.
Politely ask for an update on the interview process.
Do not speak loudly on the phone while waiting for your turn.
Do not use bad words about your previous or current company/employer in your social
media posts.
5) Email skills: 1. An e-mail includes To (primary person’s email address), CC (carbon
copy), BCC (blind carbon copy- invisible for TO, CC and other BCC addresses), subject,
salutation and complimentary close with your signature.
C) ACCOUNTING FUNDAMENTALS
Accounting is the recording of financial transactions along with storing, sorting,
retrieving, summarizing, and presenting the results in various reports and analyses.
Accounting is also a field of study and profession dedicated to carrying out those tasks.
Accounting plays a vital role in running a business because it helps you track income and
expenditures, ensure statutory compliance, and provide investors, management, and
government with quantitative financial information which can be
used in making business decisions.
D) IT FOUNDATION SKILLS
Information technology (or IT) is defined as “the application of computers and internet to
store, retrieve, transmit, and manipulate data, or information.” Network Administration &
Security is a specific category of Information Technology, focused on the transmitting
data aspect of IT [11].
From small businesses run by a single person to huge multi-national corporations, the
importance of information technology in any business setting is evident. Computer
technology is used across the business world in every department and has become vital to
business operations in the modern world.
Without information technology and system support, businesses simply stop. If the
internet or phone service goes down in an office, nothing can get done — HR, finance,
operations, communications, sales, and all other departments depend on functional
computer and information systems to complete their work. Plus, IT and Information
Services (or IS) protect the integrity of data and keep it safe from a world of technological
threats.
Information technology benefits the business world. They will allow the organizations to
work more efficiently to maximize the productivity. Advantages that IT can have on the
enterprise are the faster communication, electronic storage and the protection of records.
Analytic AI: Powered with machine learning (including its most advanced deep
learning techniques), analytic AI scans tons of data for dependencies and patterns to
ultimately produce recommendations or provide a business with insights, thus
contributing to data-driven decision-making. Sentiment analysis and supplier risk
assessment are just a few examples of analytic AI in action.
Text AI: Businesses that use text AI can enjoy text recognition, speech-to-text
conversion, machine translation, and content generation capabilities.. For example,
the company can use text AI to power an internal corporate knowledge base. Contrary
Visual AI: With visual AI, businesses can identify, recognize, classify and sort
objects or convert images and videos into insights. A computer system that helps an
insurer to estimate damage based on damaged car photos or a machine that grades
apples based on their color and size are the examples of visual AI. This type of AI
covers computer vision or augmented reality fields.
Parts of AI:
Deep learning: Deep learning is what happens when a neural network gets to
work. As the layers process data, the AI gains a basic understanding.
And, for those going into business as entrepreneurs, you'll also need the ability to plow
through obstacles and see solutions where no one thought one was possible.
Employers seek business candidates who possess high levels of emotional intelligence,
communication skills and organizational skills.
Passion and determination can go a long way, and those skills are proven over time.
Organizations also look for candidates with hybrid (technical and non-technical) skills that
can add value to the workplace in a variety of ways.
Today, the amount of data that is generated, by both humans and machines, far outpaces
data. Artificial intelligence forms the basis for all computer learning and is the future of
all complex decision making. Therefore, AI is an integral part of technology.
Business skills are often considered soft skills and may include team management,
leadership and communication skills. We studied about the communication skills, the
alignment of business with IT, accounting fundamentals and artificial intelligence. These
are the growing parts of business that need to be worked upon for incorporating the skills
needed to conquer all challenges and events.
Modeling in Simulink helps us to develop a circuit and simulate the results in Graphical
user interface.