0% found this document useful (0 votes)
20 views7 pages

EM2301. Practical Class 3

Uploaded by

Liên
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views7 pages

EM2301. Practical Class 3

Uploaded by

Liên
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

INTRODUCTION TO APPLIED COMPUTING FOR

BUSINESS AND ECONOMICS


Practice Class 3

Save file as: Prac3. Name.StudentID

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

Excercise 1

Given data as follow:

SCORE
Regional
ID NAME
Code CN1 CN2 CN3 TOTAL

D201 Nguyen Thai Nga 8 7 6


D202 Truong Ngoc Lan 7 8 9
N103 Ly Cam Nhi 8 9 8
D404 Luu Thuy Nhi 4 5 7
D105 Tran Thi Bich Tuyen 9 6 6
N206 Pham Thi Huong 7 8 6
Requirement:

1. Extract the regional code from column ID, given that the second character displays the regional
code.
2. Calculate column Total: Total = CN1 + CN2 + CN3 + PA (With: PA is 1 if regional code is 1,
PA is 0,5 if regional code is 2, else PA is 0
3. Insert column “Scholarship type”. where:
- Type = A if Total >= 24 and no subject is less than 8
- Type = B if:
Total >= 24 and no subject is less than 6
Or Total >= 22 and no subject is less than 6 and PA is 1
- Others is Type C
4. Calculate scholarship based on scholarship type A, B, C
Scholarshi
Type
p
A 2000000
B 1000000
C 500000

5. Format table
Ex 2:

Given the data to calculate salaries of production team:

UNIT
FULL NAME ID QUANTITY
NAME

Pham Binh An 01DH4 SX-PX1 500

Le Huu Binh 02NH1 SX-PX2 350

Tran Viet Cong 03DH6 QL-PX1 300

Nguyen Van Danh 04DH4 QL-PX2 300

Le Dao 05NH1 SX-PX3 380

Nguyen Thu Giang 06DH2 SX-PX3 590

Nguyen Viet Hung 07DH1 SX-PX1 500

Le Hong Khoa 08DH7 QL-PX3 320

Tran Thi Loan 09DH5 QL-PX4 300

Pham Hong Minh 10NH2 SX-PX4 490

Le Viet Khoi 11DH4 SX-PX4 500

Tran Van Tuan 12NH1 SX-PX2 350

Vu The Anh 13DH3 SX-PX1 300

Tran Thi Bich Tuyen 14DH6 SX-PX2 300

Nguyen Dang Minh 15DH3 SX-PX3 380

UNIT PRICE

SX QL
PX1 32000 32500

PX2 25000 26000

PX3 30000 30500

PX4 40000 42500

COEFFICIENT

Rank 1 2 3 4 5 6 7

Coefficient 1.02 1.06 1.13 1.2 1.28 1.36 1.45

1) Create columns: PRODUCT SALARY, SOCIAL INSURANCE, COEFFICIENT, INCOME,


TAXABLE, TAX, ADVANCES, REAL INCOME
2) Separate the Full Name column into the Last Name, Middle Name, First Name columns
3) Create a formula to calculate product salary: PRODUCT SALARY = QUANTITY OF PRODUCTS
* UNIT PRICE
4) Social insurance is set at 8% of product salary but is only calculated for those with long-term contracts
and the contract type is stated in EMID (DH: Long-term, NH: Short-term)
5) Fill in the data in the COEFFICIENT column based on the rank (the last character of the EM ID) and
the COEFFICIENT table.
6) INCOME: If the employee belongs to the Management department (QL), then
INCOME = PRODUCT SALARY * COEFFICIENT - Social insurance, otherwise:
INCOME= PRODUCT SALARY- Social insurance
7) ADVANCE: Workers with a rank of 5 or higher will receive an advance equal to 1/3 of their
INCOME, otherwise ADVANCE = 1/5* INCOME
8) TAX: For long-term employees, tax will be calculated according to the following tax schedule
(knowing that each individual will receive a family deduction of 11 million VND) TAXABLE =
INCOME – 11 MILLION

Caculation of Personal Income Tax


Rank Assessable income Tax rate
Method 1 Method 2
0 million + 5% Assessable
1 To 5 million 5% 5% Assessable income
income
0,25 million + 10%
Above 5 million to 10 10% Assessable
2 10% Assessable income above 5
million income - 0,25 million
million
0,75 million + 15%
Above 10 million to 18 15% Assessable
3 15% Assessable income above 10
million income - 0,75 million
million
1,95 million + 20%
Above 18 million to 32 20% Assessable
4 20% Assessable income above 18
million income - 1,65 million
million
4,75 million + 25%
Above 32 million to 52 25% Assessable
5 25% Assessable income above 32
million income - 3,25 million
million
9,75 million + 30%
Above 52 million to 80 30 % Assessable
6 30% Assessable income above 52
million income - 5,85 million
million
18,15 million + 35%
35% Assessable
7 Above 80 million 35% Assessable income above 80
income - 9,85 million
million

- For short-term employees, apply a 10% tax rate and only apply if the income is 2 million or more.
Note: If Assessable income <=0, tax is 0
8) REAL INCOME = INCOME – ADVANCES
9) Combine ID and UNIT NAME to CODE
9) Use the function to get the current Month and Year
10) Present the salary calculation sheet for the production department.
Ex 3:

Given data in Table Car tenant:

Customer Rent Date Return Date Car type


Nguyen Thai Nga 1/20/2023 1/30/2023 004
Truong Ngoc Lan 1/1/2023 1/5/2023 007
Ly Cam Nhi 1/20/2023 1/28/2023 007
Luu Thuy Nhi 1/18/2023 1/25/2023 004
Tran Thi Bich Tuyen 1/2/2023 1/26/2023 004

Requirement:

1) Calculate Rent Day = Return Date – Rent Date


2) Convert Rent Day to number of weeks and days
Example: If Rent Day is 10 days then we convert to 1 week and 3 days.
3) Calculate Fee, given:
Fee = Week x Week Unit price + Day x Day Unit price
WEEK 3,200,000
Renting Unit price
DAY 500,000
And each customer gets a 5% discount if renting more than 1 week. (equal and greater than 1
week).
4) Calculate Total for column Rent Day, Week, Day and Fee
5) Format table
Ex 4:

Create a column that inserts the number in the movie title at the end of the phrase The number in
the title of this movie is [number].

Movie Title

Ocean's 11
Blair Witch 3
District 9
13
Halloween 7
Scary Movie
12
Dodge Ball 8
Hint: use flashfill

Ex 5:

The contains data in the following form:

S/N: 160768, vib roller,84" smooth drum,canopy Auction: 6/2-4/2005 in Montgomery,


Alabama

S/N: 160321, OROPS,dsl,84" drum Auction: 4/6-8/2006 in North Franklin, Connecticut

S/N: 156121, vib roller,Cummins dsl eng,OROPS Auction: 11/12/2004 in Pelham, New
Hampshire

Each row refers to a machine purchase. Determine the year of each purchase.

Ex 6:

In each row of below table, you will find a city’s zip code, city name, state (TX – Texas),
latitude, and longitude. Use formulas to extract the name of the city in each row. Assume that
each zip code is 5 characters long.

76635 COOLIDGETX 31.735252 96.707168


76636 COVINGTONTX 32.149005 97.250764
76637 CRANFILLS GAPTX 31.777023 97.778769
76638 CRAWFORDTX 31.544081 97.448594
76639 DAWSONTX 31.879287 96.665418
76640 ELM MOTTTX 31.683528 97.068198
76641 FROSTTX 32.033269 96.781411
76642 GROESBECKTX 31.54575 96.562658
76643 HEWITTTX 31.456802 97.187257
76644 LAGUNA PARKTX 31.8049 97.4831
76645 HILLSBOROTX 32.027813 97.104478
76648 HUBBARDTX 31.840139 96.809216
76649 IREDELLTX 31.962421 97.881618
76650 IRENETX 31.9908 96.8709
76651 ITALYTX 32.17864 96.873688
76652 KOPPERLTX 32.115557 97.591858
76653 KOSSETX 31.344182 96.575195
76654 LEROYTX 31.7308 97.0155
76655 LORENATX 31.401574 97.194836
76656 LOTTTX 31.178465 97.068915
76657 MC GREGORTX 31.434286 97.403439
76660 MALONETX 31.930075 96.898226
76661 MARLINTX 31.318565 96.857778
76664 MARTTX 31.577978 96.8454
76665 MERIDIANTX 31.91128 97.611086
76666 MERTENSTX 32.021601 96.908066
Hint: the FIND function is case sensitive

You might also like