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

Inbound 2220384477448087553

The final project report discusses the integration of coding in electrical engineering, highlighting its importance in designing and implementing complex systems. It covers various programming languages used in the field, such as MATLAB, Python, and C/C++, and provides real-world examples of coding applications. The project aims to enhance understanding of programming's role in electrical engineering and prepare students for modern engineering demands.

Uploaded by

24-00231
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)
5 views4 pages

Inbound 2220384477448087553

The final project report discusses the integration of coding in electrical engineering, highlighting its importance in designing and implementing complex systems. It covers various programming languages used in the field, such as MATLAB, Python, and C/C++, and provides real-world examples of coding applications. The project aims to enhance understanding of programming's role in electrical engineering and prepare students for modern engineering demands.

Uploaded by

24-00231
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

Republic of the Philippines

BATANGAS STATE UNIVERSITY


The National Engineering University
Alangilan Campus

COLLEGE OF ENGINEERING
Electrical Engineering Department

FINAL PROJECT REPORT


CpE 401: Computer Programming
2nd Semester, A.Y 2023-2024

“CODING IN ELECTRICAL ENGINEERING: APPLICATIONS, LANGUAGES, AND EXAMPLES”

Submitted by:

GROUP 6

ATIENZA, MARIA CECIL D.


CATOY, FREDERICK URIEL C.
DELEON, JOHN RAVEN A.
MACALINDOL, GERARD NATE P.
MENDOZA, MICHAEL ANGELO M.
GONZALES, JASMINE P.

EE-1209

JHON GLENN MANALO

Instructor
OVERVIEW

The integration of coding into electrical engineering has transformed the field, for example, as engineers design, simulate,
as well as implement increasingly complex systems using greater efficiency and precision. This topic digs into the complex
relationship between programming and electrical engineering to examine how various software tools and programming
languages are used to address actual engineering challenges.

Electrical engineering, usually grounding itself within the principles of physics and of mathematics, now codes extensively
for tasks which range from modeling of systems and simulating of circuits to developing of embedded systems and controlling of
algorithms. Engineers who are skilled in both hardware and also software are seeing a rising demand along with robotics, smart
grids, renewable energy systems, and also the rise of technologies such as the Internet of Things (IoT).

Programming languages, frequently used in the field, are surveyed via the topic; such as MATLAB for signal processing and
numerical analysis, Python for automation and scripting, C/C++ for embedded systems development, and hardware description
languages (HDLs), like Verilog and VHDL, for digital circuit design. Real-world examples and even case studies are presented
also in order to show application of coding in control systems, power systems, robotics, signal processing, and communications.

Engineers must adopt a problem-solving mindset to bridge theoretical knowledge as well as practical implementation
through coding. This exploration is thorough and it highlights the technical skills required.

OBJECTIVE

The following objectives of the project are:

 To cultivate a deep understanding of the role that programming plays in modern electrical engineering practices and
innovations.

 To introduce and compare key programming languages commonly used in the field, discussing their syntax, strengths,
limitations, and areas of application.

 To demonstrate how coding can be employed to design, simulate, analyze, and optimize electrical systems and
components.

 To provide hands-on examples and case studies that illustrate the practical application of code in solving real-world
electrical engineering problems.

 To prepare students, researchers, and professionals for interdisciplinary work by equipping them with essential coding
skills that enhance their ability to innovate and collaborate in both hardware and software domains.

 To bridge the gap between traditional electrical engineering education and the software-driven demands of the modern
engineering workplace.

METHODOLOGY
SOURCE CODE

#include <stdio.h>
#include <math.h>

int main() {
int start, option, repeat;
float R, L, C, alpha, omega_0, discriminant;

printf("ELECTRICAL ENGINEERING CODING APPLICATIONS\n");


printf("______________________________________________________________\n\n");

printf("Enter 1 to start: ");


scanf("%d", &start);

while (start == 1) {
printf("______________________________________________________________\n\n");
printf("Select Option:\n");
printf("1.) Analyze RLC Circuit (Text Output Only).\n");
printf("2.) Exit Program.\n");
printf("______________________________________________________________\n\n");

printf("Enter here: ");


scanf("%d", &option);

if (option == 1) {
printf("______________________________________________________________\n\n");
printf("Enter the values below:\n");

printf("Resistance (Ohms): ");


scanf("%f", &R);
printf("Inductance (Henrys): ");
scanf("%f", &L);
printf("Capacitance (Farads): ");
scanf("%f", &C);

alpha = R / (2 * L);
omega_0 = 1 / sqrt(L * C);
discriminant = alpha * alpha - omega_0 * omega_0;

printf("\n______________________________________________________________\n");
printf("RLC Analysis Results:\n");
printf("Damping factor (alpha) = %.3f\n", alpha);
printf("Natural frequency (omega_0) = %.3f\n", omega_0);

if (discriminant > 0) {
printf("System is Overdamped.\n");
} else if (discriminant == 0) {
printf("System is Critically Damped.\n");
} else {
printf("System is Underdamped.\n");
}
printf("______________________________________________________________\n\n");

} else if (option == 2) {
printf("______________________________________________________________\n\n");
printf("End of Program. Goodbye.\n");
printf("______________________________________________________________\n\n");
break;

} else {
printf("______________________________________________________________\n\n");
printf("Invalid input. Please enter a valid number.\n");
printf("______________________________________________________________\n\n");
}

printf("Program is done. Enter 0 to use program again, otherwise enter any other number to exit: ");
scanf("%d", &repeat);
if (repeat == 0) {
continue;
} else {
break;
}
}

return 0;
}

You might also like