You are on page 1of 6

INTRODUCTION TO APPLIED COMPUTING FOR

BUSINESS AND ECONOMICS


Practice Class 4

Save file as: Prac5.Hovaten.MSSV

(After students complete the assignment, submit it on Teams)


Exercise 1:
A hotel manages customer data with information such as arrival date, departure date, room code,
full name. That hotel needs to calculate a spreadsheet to calculate the room rate for each person
based on the customer code.

Customer Fullname Sex Cus Code Check-in Check-out


Hà Thanh Lương Male T3A-F1 01-31-18 02-14-18

Nguyễn Thu Hà Female T2B-F1 06-05-18 07-02-18

Vũ Yến Trang Female T2B-F2 07-07-18 07-10-18

Hà Văn Chính Male T5B-F2 02-07-18 03-15-18

Nguyễn Tiến Thành Male T3A-F0 09-07-18 09-19-18

Phương Hoàng Giang Male T5B-F2 11-07-18 12-09-18

Nguyễn Ngọc Quang Male T1C-F1 12-04-18 12-25-18

Phạm Thi Ân Female T1A-F0 01-03-18 01-22-18

Trần Ngọc Hiếu Female T1A-F3 02-03-18 03-03-18

Ngô Trần Tố Trâm Female T4C-F0 02-14-18 02-16-18

Lê Văn Nam Male T2B-F1 03-09-18 03-18-18

Trần Thu Trang Female T4B-F0 04-07-18 05-19-18

Phạm Lê Hiếu Male T3A-F1 05-07-18 06-09-18

Vũ Duy An Male T3A-F1 08-19-18 09-01-18

Nguyễn Văn Định Male T4A-F2 04-01-18 04-30-18

Nguyễn Thị Thu Female T2A-F3 03-11-18 03-13-18

Đoàn Tố Như Female T2A-F2 05-06-18 06-06-18


Nguyễn Thị Hiền Female T2A-F3 06-02-18 07-04-18

Vũ Ngọc Mai Female T1A-F3 11-04-18 11-30-18

Phan Ngọc Ánh Trân Female T2A-F2 12-15-18 12-30-18

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

5) Calculate Discount for each tourist, given that


a. If Check-in is on Sunday or the number of days of stay is >= 10 days, you will
receive a 5% discount on the room rate
b. If the number of days staying >= 20 days, you will receive a 10% discount on the
room rate
c. If the number of days staying >= 30 days, you will receive a 20% discount on the
room rate
d. In other cases, there is no reduction.
6) Answer the following questions:
a. Calculate the total number of days of stay for female customers?
b. How many male customers stayed more than or equal to 10 days at the hotel?
c. How much revenue is from male customers? How many female customers?
d. What is the revenue of the 5th floor?
e. What is the revenue of room type C?

7) Extract data:

a. Number of customers on the 2nd floor

b. Number of customers in June

c. Number of customers staying in class A and eating 3 meals at 100,000 VND/meal

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:

STT Cyclist ID End


1 KSTVM 8:30 Team
Team
2 KSVNH 8:20 Team Name
Code
3 KSPDT 8:45 KS Khách sạn Thanh Bình
4 CAHVH 8:32 CA Công an Thành phố
5 CAHMQ 8:35 TG Tiền Giang
6 CANTK 8:22 AG Bảo vệ TV An Giang
7 TGHDD 8:27

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

Tax Taxable income/month (million VND) Tax rate (%)


bracket
1 5 and below 5
2 Above 5 to 10 10
3 Above 10 to 18 15
4 Above 18 to 32 20
5 Above 32 to 52 25
6 Above 52 to 80 30
7 Above 80 35

7. Compute Net Income = Income – Tax


8. Use formula to extract the maximum salary, minimum salary and average of salary
9. Extract the data of staffs who work more than 22 days per month and get salary of
10,000,000

Exercise 4:
Data as follows:

Worker ID Quantity Product Price list


Lê BĐT 836 ID Product Unit Price
Việt BĐX 400 BĐC Bóng đèn Compact 3000
Bóng đèn Huỳnh
Thuỷ BĐC 174 BĐH 5000
Quang
Trang BĐH 800 BĐT Bóng đèn Tròn 1500
Nga BĐC 273 Others Bóng đèn đặc biệt 10000
Tuấn BĐH 113

Hùng BĐT 430

Nam BĐH 275

Lan BĐG 379

Khanh BĐC 518

1.Insert column Product based on the Product Price List table


2. Insert Wage column, wage = Quantity*Unit price.
3.Insert Extra pay column, given:
Extra pay = 1.000.000 for workers at 1st largest wage.
Extra pay = 500.000 for workers at 2nd largest wage.
Extra pay = 300.000 for workers at 3rd largest wage.

Other cases, no extra pay.


4. Draw graph of quantity and wage by worker.
5. Format the table

You might also like