Inbound 2220384477448087553
Inbound 2220384477448087553
COLLEGE OF ENGINEERING
Electrical Engineering Department
Submitted by:
GROUP 6
EE-1209
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
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;
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");
if (option == 1) {
printf("______________________________________________________________\n\n");
printf("Enter the values below:\n");
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;
}