Lecture12 2
Lecture12 2
ENGG1810/9810
Introduction to Engineering Computing
Week 12: Case Study II
COMMONWEALTH OF AUSTRALIA
WARNING
The material in this communication may be subject to copyright under the Act.
Any further reproduction or communication of this material by you may be the
subject of copyright protection under the Act.
Week 9: Application I
Today’s Lecture
Note: There are two main functions that are used to make
animations, FuncAnimation and ArtistAnimation.
Can we simulate and visualise the • FuncAnimation: Makes an animation by repeatedly
sin/cos value in the graph? calling a function func. (learned in Lecture, Lab 6)
It would be very helpful as a reference. • ArtistAnimation: Before calling this function, all
plotting should have taken place and the relevant
artists saved.
ENGG1810/9810
https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.ArtistAnimation.html
ENGG1810/9810
ENGG1810/9810
ENGG1810/9810
Today’s Lecture
Business Class
0
Could you please develop
a program to book the
train seat? 1
Unavailable
Available
ENGG1810/9810
Business Class
Could you please develop a program
to book the train seat? 0
We hope user can book a seat:
1) by specifying the row and column 1
and 2) that close to the window
2
Unavailable
Available
ENGG1810/9810
Remember?
The append() method appends
an element to the end of the list
ENGG1810/9810
Use for loop to print each element (A list of seats in each row) in new line
We can use this function call, whenever we want to display the current status
ENGG1810/9810
Use for loop to print each element (A list of seats in each row) in new line
We can use this function call, whenever we want to display the current status
Exactly Same!
ENGG1810/9810
This data is stored but will not be displayed to users until you print
This data is stored but will not be displayed to users until you print
Need to create a function for booking a specific seat (using row and column)
Need to create a function for booking a seat that close to the window
ENGG1810/9810
This data is stored but will not be displayed to users until you print
Need to create a function for booking a specific seat (using row and column)
Need to create a function for booking a seat that close to the window
ENGG1810/9810
THANKS FOR
WATCHING
Good luck in studying