Kizspy.me
Duration: 120 minutes
Foreign Exchange Rate Monitoring System
Exchange rates fluctuate daily and play a crucial role in finance, trade, and personal
investments. Each currency pair, such as VND to USD, VND to EUR or VND to JPY, has
specific daily rates that reflect global economic dynamics. This project requires you to
develop a system to manage, process, and analyze foreign exchange rate data efficiently
using Python.
In this exam, you will read exchange rate data from a JSON file, transform and visualize
the data, and extract meaningful trends. You will also perform analytical queries to identify
the highest and lowest rates, calculate fluctuations, and generate reports that provide
insight into currency movements over time.
Question 1: (2 points)
Read JSON data and display the daily exchange rate list.
Print the data in table format: Date | USD | EUR | JPY | CNY.
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.
Zoom
+ 100%
Date
2025-06-04
2025-06-05
USD EUR JPY
CNY
2025-06-01 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
24.80 26.20 0.17 3.50
24.30 25.80 0.15 3.20
Close