Kizspy.me
Write a function named: display_exchange_table()
Task 1: Create a class Exchange Rate that represents: Date, USD, EUR, JPY,
CNY.
Task 2: Read the JSON file and display the data in the correct order.
Date
2025-06-01
USD EUR JPY CNY
24.50 26.10 0.17 3.40
2025-06-02
24.60 26.00 0.18 3.50
2025-06-03 24.40 25.90 0.16 3.30
2025-06-04
24.80 26.20 0.17 3.50
2025-06-05
24.30 25.80
0.15 3.20
Figure 1. Illustration of the result for question 1
Question 2: (2 points)
Calculate and display the date with the highest and lowest USD exchange rate.
Write a function named: find_usd_extremes()
Task 1: Iterate through each day to find the date with the highest and lowest USD
value.
Task 2: Print the result found.
Zoom
+ 100%
Close