Professional Documents
Culture Documents
EM2301. Practical Class 4
EM2301. Practical Class 4
Import the data into Excel and perform the following requirements:
1) Reformat the Check-in and Check-out columns to dd/mm/yy and sort by time (from the
beginning of the year to the end of the year by Check-in date)
2) Separate the Customer Full Name column into the Last Name, Middle Name, First
Name columns
3) Create columns: Staying days, Room price, Total room price, Meal price, Total meal
price, Total price, Discount, Discounted price.
4) Calculate the price for each room type according to the first 3 characters of the
Customer Code:
Room Type
A B C
Floor
T1 1,000,000 750,000 500,000
T2 1,100,000 850,000 600,000
T3 1,200,000 950,000 700,000
T4 1,250,000 1,000,000 750,000
T5 1,300,000 1,050,000 800,000
Meal price is based on the last two characters of the Customer Code: F0: breakfast only,
no charge; Other types include total 3 meals, 2 afternoon meals, and 1 evening meal
according to the unit price in the table:
(Unit: VND/meal)
F1 F2 F3
200,000 150,000 100,000
7) Extract data:
8) Draw graphs:
Draw a circular chart comparing the rate of using different room types by male and
female.
Draw a column chart comparing revenue across floors and room categories.
Exercise 2:
Cycling racing data as follows:
8 TGLDC 8:26
9 TGTAT 9:00
10 AGVGS 8:21
Name
Cyclist
Code
LIST OF ATHLETES
HDD Huỳnh Đại Đồng
HMQ Hoàng Mạnh Quân
HVH Hồ Văn Hùng
LDC Lê Đức Công
NTK Nguyễn Trần Khải
PDT Phạm Đình Tấn
TAT Trần Anh Thư
TVM Trần Vũ Minh
VGS Vũ Giáo Sửu
VNH Vũ Ngọc Hoàng
1- Insert column Team Name and Cyclist’s Name, given that 2 first letters of ID are Team code, 3 last
letters are Name code of Cyclist.
2- Given that the departure time is 6:00, calculate the cycling time of each cyclist (time = end –
departure)
3- Calculate speed by formula = total Km/cycling time, round up to nearest 10, format as km/h. (Total
KM = 120 km)
4- Sort cycling time data by individual and by team (ascending). Draw bar-chart by individual and
by team.
Exercise 3:
Salary data as follows:
Daily wage
No Name Position Working days
500000
1 Cao Văn Vinh GĐ 26
450000
2 Bùi Thị Duyên PGĐ 23
400000
3 Đỗ Văn Đậu PGĐ 25
370000
4 Nguyễn Văn Cam TP 26
450000
5 Bạch Thị Hương NV 22
400000
6 Cao Thị Phúc NV 20
370000
7 Phạm Thị Lê NV 18
500000
8 Tạ Văn Hùng TP 25
370000
9 Lương Thị Cao NV 26
370000
10 Lâm Văn Tuấn NV 17
1.Salary = Daily wage*working days
2. Calculate Social Insurance, given that Social insurance is computed
as 3% of salary
3. Extra Pay:
If working days >=25: Extra pay = 20%* Salary
If working days >=22: Extra pay = 10%* Salary
If working days <22: no Extra pay
4. Insert column Responsibility Allowance, given:
GĐ: 250,000 PGĐ:200,000 TP:180,000 NV: 150,000
5. Insert Total Income = Salary + Extra pay + Responsibility Allowance – Social
Insurance
6. Insert Tax, the tax is calculated as following table
Exercise 4:
Data as follows: