COEB1013 Programming for Engineers Project Semester 1 2025/26 | UNITEN

School

Universiti Tenaga Nasional (UNITEN)

*We aren't endorsed by this school

Assignment Type

Project

Subject

COEB1013 Programming for Engineers

Uploaded by Malaysia Assignment Help

Date

12/04/2025

COEB1013 ProjectΒ 

INSTRUCTIONS TO CANDIDATES:

  1. Give all your file names as PP_StudentID / SP_StudentID.
  2. Add the last THREE (3) digits of your student ID at the end of any created variables.
  3. Submit all files (i.e. .ipynb, .m, .mat, .csv, .pdf, .slx) via BRIGHTEN. Submissions via other platforms after the due date will not be accepted.

Struggling with your COEB1013 programming project?

Question 1: Python Programming

A civil/mechanical engineering team evaluates the efficiency of water pumps used in a distribution network. Each pump operates at different flow rates, head levels, and power consumptions. You are required to analyse the dataset, detect performance patterns, and identify the most efficient pump model.

Dataset

Save the following example as pump_performance_XXX.csv:

Pump Model Flow Rate (mΒ³/h) Head (m) Power (kW) Efficiency (%)
P1 85 22 4.2 68
P2 90 25 4.8 72
P3 110 20 5.0 na
P4 95 28 5.2 73
P5 120 24 5.8 75
P6 100 26 5.1 71
P7 130 30 6.0 79
P8 125 21 5.4 74
P9 na 27 6.3 80
P10 150 na 6.8 82
P11 135 28 6.1 78
P12 160 31 7 83
P13 155 26 6.5 81
P14 170 32 na 84
P15 165 30 7.2 82
P16 180 34 8 85
P17 175 33 7.8 na
P18 190 35 na 86
P19 185 32 8.1 85
P20 na 36 8.8 87
P21 210 38 9.2 88
P22 195 34 8.5 86
P23 220 40 9.5 89
P24 205 37 9 87
P25 230 42 10 90
P26 215 39 9.3 88
P27 240 na 10.4 na
P28 225 41 9.8 89
P29 250 45 10.8 92
P30 235 44 10.2 90

Tasks

  1. Load the Data:o Import the CSV file using Pandas.
    o Fill in the missing values in the Data
    o Convert numerical columns into NumPy arrays for further calculations.
  2. Analyse the Data:

Using Numpy/Pandas:

o Compute the average efficiency of all pumps.
o Identify the highest-efficiency pump.
o Calculate the specific energy consumption (SEC) for each pump:

π‘ƒπ‘œπ‘€π‘’π‘Ÿ (π‘˜π‘Š) 𝑆𝐸𝐢 = πΉπ‘™π‘œπ‘€ π‘…π‘Žπ‘‘π‘’ (π‘š3/β„Ž)

o Identify the pump with the lowest SEC.

  1. Visualize the Data:

Create two plots:

o Bar chart of pump efficiencies (highlight the highest-efficiency pump in a different colour).
o Scatter plot showing relationship between flow rate and power consumption.

  1. Save Output o Save a summary table to pump_analysis_summary_XXX.csv, containing:o Best performing pump
    o Lowest SEC pump
    o Average efficiency
    o Ranking of pumps by efficiency
  2. Flowcharto Draw a flowchart that outlines the steps your program takes.
    o Attach the flowchart in your submission
  3. Short Discussion
    o Explain your findings in 2–3 paragraphs within the notebook.

Question 2: Simulink

Project Title:

Modeling and Simulation of a Traffic Light System with Vehicle Queue Dynamics Using Simulink

Scenario:

You are assigned to model a smart intersection equipped with a traffic light system and vehicle queue detector. The objective is to simulate how the queue length changes over time depending on the green-red cycle.

System Description:

o Vehicles arrive at the intersection at a rate Ξ» (vehicles/min).
o When the light turns green, vehicles leave at rate ΞΌ (vehicles/min).
o Queue length dynamics:

𝑑𝑄 πœ† βˆ’ πœ‡, Β = {

𝑑𝑑               π‘₯,

𝑖𝑓 π‘”π‘Ÿπ‘’π‘’π‘› π‘™π‘–π‘”β„Žπ‘‘ 𝑖𝑠 𝑂𝑁

𝑖𝑓 π‘Ÿπ‘’π‘‘ π‘™π‘–π‘”β„Žπ‘‘ 𝑖𝑠 𝑂𝑁

o Queue cannot be negative (use Saturation block).

Tasks:

  1. Build Simulink Model Include:o A Signal Builder / Repeating Sequence block to define a traffic signal (RED-GREEN cycle).
    o A Switch block to select the correct rate (Ξ» or Ξ» βˆ’ ΞΌ).
    o An Integrator block to compute queue length Q(t).
    o A Saturation block (minimum = 0).
  1. Parameter Requirements Students must define:o Vehicle arrival rate, Ξ»
    o Departure rate, ΞΌ
    o Cycle time (Tred, Tgreen)
    o Initial queue length
  2. Simulationo Run for at least 5 full signal cycles.
    o Display queue length using Scope.
    o Add a Display block showing maximum queue length.
  1. Flowcharto Draw a flowchart that shows:
    o Parameter definition
    o Traffic signal generation
    o dQ/dt selection logic (Switch)
    o Integration process
    o Output display
    o The flowchart must be included in the written report.
  1. Extensiono Add a simple controller that adjusts green time automatically when queue > threshold.
    o Compare results with/without controller.
  2. Short Report (3–5 pages) Should include:o Objective
    o Flowchart/system diagram
    o Model description
    o Parameter justification
    o Simulation results
    o Discussion & conclusion

Need help with UNITEN Python & Simulink tasks?

PROJECT GUIDELINE

A. General guideline

1. Submission Platform: BRIGHTEN

2. Due Date: (Insert date and time here)

3. File Naming Convention:

  • Python Project: PP_StudentID.ipynb, PP_StudentID.csv
  • Simulink Project: SP_StudentID.slx, SP_StudentID_Report.pdf

4. Individual assignment

5. Academic Integrity:

  • Code and models must be written/developed by the student.
  • Discussion is allowed, but direct copying is not permitted.
  • Any external references must be acknowledged.

B. Python

1. Project title and student information

2. Student Instruction:

i. Draw the flowchart for the program
ii. Create data in Excel and save the data as CSV format
iii. Write a Python program
iv. Task to be completed in notebook

a. Load the data to Colab notebook
b. Perform data analysis
c. Generate bar chart and scatter plot
d. Summary output:

o Create a DataFrame summarizing pump model, efficiency, SEC, rank by efficiency
o Save as pump_analysis_summary_XXX.csv

e. Short Written Interpretation (in the notebook)
In the Text Cell, provide 2–3 short paragraphs explaining:

o Which pump is most efficient and why.
o How SEC relates to efficiency.
o Any observed trend between flow rate and power.

3. Mark distribution:

Component Description Marks
Flowchart / Algorithm Design Clear, logical flowchart describing steps (read CSV β†’ process data β†’ compute metrics β†’ generate plots β†’ save summary). Must be consistent with code. 20
Data Handling (Pandas & NumPy) Correct loading of the 30-row dataset, correct conversion to NumPy arrays, proper indexing, correct handling of missing or numerical data. 15
Calculations & Analysis Correct computation of: average efficiency, highest efficiency pump, SEC values, lowest SEC, ranking. Use vectorised NumPy/Pandas operations. 15
Visualisation Quality Bar chart (with highlighted best pump), scatter plot (flow rate vs power), proper labels, titles, and readability. 10
Code Quality & Organisation Logical structure, proper use of functions or cells, comments, variable naming, clear output formatting. 20
Interpretation & Discussion Engineering interpretation (2–3 paragraphs), explains efficiency trend, SEC meaning, and observations based on plots. 10
Presentation / Professionalism Clean notebook, correct file naming, CSV included, summary CSV generated correctly. 10
Total 100

C. Simulink

  1. Project title
  2. Design Simulink model that simulates the queue length of vehicles at a signalised intersection subject to a red–green cycle.

System Summary

  • Vehicle arrival rate: Ξ» vehicles/min.
  • Vehicle departure rate during green: πœ‡ vehicles/min.
  • Queue length Q(t) evolves as:

𝑑𝑄       πœ† βˆ’ πœ‡,Β Β Β Β Β Β Β  𝑖𝑓 π‘”π‘Ÿπ‘’π‘’π‘› π‘™π‘–π‘”β„Žπ‘‘ 𝑖𝑠 𝑂𝑁

= {

𝑑𝑑               π‘₯,Β Β Β Β Β Β Β  𝑖𝑓 π‘Ÿπ‘’π‘‘ π‘™π‘–π‘”β„Žπ‘‘ 𝑖𝑠 𝑂𝑁

  • Queue length cannot be negative: Q(t) β‰₯ 0

Β Tasks

(a) Parameter Definition Choose and clearly state:

    • πœ†: arrival rate (e.g. 6 vehicles/min)
    • πœ‡: departure rate when green (e.g. 12 vehicles/min)
    • Signal cycle:
      o π‘‡π‘”π‘Ÿπ‘’π‘’π‘› (e.g. 30 s)
      o π‘‡π‘Ÿπ‘’π‘‘ (e.g. 40 s)
    • Initial queue length 𝑄(0).

(b) Simulink Model Construction Model components required:
i. Traffic Signal Generator
– Use Repeating Sequence (or Pulse Generator) to create a signal:
o Output = 1 when GREEN
o Output = 0 when RED

ii. Arrival Rate Block
– Constant block with value Ξ» (in vehicles/s – convert from vehicles/min).

  • iii. Departure Rate Block
    – Constant block with value πœ‡ (vehicles/s).

iv. Logic for dQ/dt

    • Use a Switch block:
    • Input 1: lambda – mu (for green)
    • Input 3: lambda (for red)
    • Control input: traffic light signal (1 = green, 0 = red)

v. Integrator

    • Integrate dQ/dt to obtain Q(t).

vi. Saturation

    • Minimum = 0, Maximum = a reasonable upper limit (e.g. 100 vehicles).

vii. Scopes and Displays

    • Scope to plot Q(t) versus time.
    • Display to show maximum queue length via a MinMax block or by postprocessing.

(c) Simulation Settings

    • Total simulation time: at least 5 complete cycles.
    • Choose an appropriate solver (e.g. ode45) and step size.

(d) Extension

    • Add a simple feedback controller:
    • If Q(t) exceeds a threshold (e.g. 25 vehicles), automatically extend green time in the next cycle.
    • Show comparative plots:
    • Without control
    • With control
  1. Simulink Block Diagram – Guide
    (a) Traffic Signal Subsystem
  • Block: Repeating Sequence
  • Time–value pairs:
    o (0 s, 1) … (T_green, 1) β†’ GREEN o (T_green, 0) … (T_green + T_red, 0) β†’ RED
  • Set sample time appropriately; set Time offset to 0; Final value repeated over period.

(b) Arrival and Departure Path

    • Block: Constant (lambda_s) – vehicles/s.
    • Block: Constant (mu_s) – vehicles/s.
    • Block: Sum1 (lambda_s – mu_s).
    • Block: Sum2 (optional, for extensions).

(c) Switch Logic for dQ/dt

    • Block: Switch o Input 1: lambda_s – mu_s (green condition).
      o Input 3: lambda_s (red condition). o Control: output from Traffic Signal (1 or 0).
      o Threshold: 0.5.

(d) Queue Dynamics

  • Block: Integrator ➑️ output is Q(t).
  • Block: Saturation ➑️ min = 0, max = 100.
  • Connect Switch output ➑️ Integrator ➑️

(e) Outputs

    • Block: Scope β†’ input = Q(t).
    • Block: To Workspace (optional) for Q(t).
    • Block: MinMax or post-processing to find peak queue
  1. Report Template (3-5 pages)

(a) Title Page

(b) Objective & System Overview

  • 1–2 short objectives.
  • Brief description of an urban traffic signal and queueing.

(c) Model Description

  • Explanation of:
    o Β Arrival and departure rates
    o Traffic signal representation
    o
    Β Differential equation of queue length
  • Insert block diagram screenshot.

(d) Parameters and Assumptions

  • Table with:
    oParameter
    o Value
    o Unit
    o Justification/source

(e) Simulation Results

  • Plots of Q(t) over time.
  • Comparison of before vs after control.

(f) Discussion

  • Comment on:
    o How green/red times affect queue length.
    o Effect of increasing/decreasing ΞΌ or Ξ».
    o Implications for traffic engineering.

(g) Conclusion

  • 3-4 bullet points summarising key findings.
  1. Mark distribution and rubric
Component Description Marks
Flowchart /

Algorithm

Design

Flowchart must show: parameter definition β†’ traffic signal logic β†’ switch selection β†’ integration β†’ output.

Clear, labelled, consistent with model.

15
Simulink Model Structure Proper construction using correct blocks: Signal generator, Switch, Constants, Integrator, Saturation,

Scope/Display. Clean connections and logical layout.

25
Component Description Marks
Parameter Definition & Correct Use Reasonable values for Ξ», ΞΌ, green/red times, and initial queue. Correct units (vehicles/min β†’ vehicles/s). 10
Simulation Execution & Functionality Model runs for at least 5 cycles, queue behaves correctly, no negative values, correct solver settings. 15
Output Visualisation Queue length Q(t) displayed clearly in Scope, labelled axes, optional To Workspace or Display block used correctly. 10
Analysis & Discussion Clear explanation of the queue behaviour, effect of green/red durations, effect of Ξ» and ΞΌ. 10
Report Quality & Presentation 3–5 pages, includes screenshots, parameter table, simulation graphs, and correct structure. 10
Total 100

Short on time for your COEB1013 engineering project?

Get Help By Expert

Many UNITEN students find the COEB1013 Programming for Engineers Project challenging because the Python analysis, data cleaning, SEC calculation, and Simulink modelling require both coding and engineering logic. If you’re running out of time or confused about the project structure, our expert team at Malaysia Assignment Help can prepare a custom, plagiarism-free programming assignment writing service that follows UNITEN guidelines. Get step-by-step Python analysis, flowcharts, Simulink models, and a complete summary tailored to your coursework. Order our engineering assignment help service today and score higher with confidence.

Answer

UP TO 15 % DISCOUNT

Instant Paper Writing Services by Native Malaysia Writers

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now
Convincing Features
COEB1013 Programming for Engineers Project Semester 1 2025/26 | UNITEN
Plagiarism Free Report
On-Time Delivery
Native Writers
A+ Quality
100% Confidential
24*7 Online Assistance

Get these features included in Your Assignment

Facing Issues with Assignments? Talk to Our Experts Now!Download Our App Now!

Have Questions About Our Services?
Download Our App!

Get the App Today!

QRcode

Get Assistance for Assignments, online Exam, and Projects Writing