Kizspy.me
Question 3: (2 points)
Highest USD: 24.8 on 2025-06-04
Lowest USD: 24.3 on 2025-06-05
Figure 2. Illustration of the result for question 2
Calculate the percentage change in USD between the first and last day.
Write a function named: calculate_usd_change_percent()
Task 1: Find the values on the first and last dates.
Task 2: Calculate the percentage change using the formula:
((last first)/first) * 100
USD changed by -0.82% from 2025-06-01 to 2025-06-05
Question 4: (2 points)
Figure 3. Illustration of the result for question 3
Plot a line chart showing the trend of USD exchange rate over time (using
matplotlib).
Write a function named: plot_usd_trend()
Task 1: Retrieve the data of USD.
Task 2: Save to an image (usd_trend.png).
USD Exchange Rate Over Time
Zoom
+ 100%
Close