logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
George BlackbridgeeCriminology
(5/5)

846 Answers

Hire Me
expert
Manall ChiiguerNursing
(5/5)

782 Answers

Hire Me
expert
Ray BjorkkEngineering
(5/5)

578 Answers

Hire Me
expert
Timothy PriceEducation
(5/5)

748 Answers

Hire Me
STATA
(5/5)

find out which user_ID ordered the most quantity of commodities in this month

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Now your boss asks you to use the dataset of orders in jingdong.com in June 2019 to finish the following questions. You have to finish the questions according to your own understanding of the dataset. If you keep asking further questions or you can’t find the right answers of these questions, you will be fired by your boss. 

(note: just name the variables as you want, you don’t have to follow the video) 

(note2: there are prices below zero in the final_unit_price, this could be regard as subsidy from jingdong.com, but their real spending is 0, you have to deal with the dataset and replace the final_unit_price to be zero if it is below zero)

First stage: (20 marks)

1. Create a folder named “datacln”, in the “datacln” folder, create two folders, one is named “data”, the other is named “dofile”. In the “data” and “dofile” folder, both create the “org” and “cln” folders

2. input the dataset in excel into stata, their name is the same as the name of the excel, and save them in the folder “org” which is in the folder of “data”.

3. create a dofile named order1_org.do and use the dataset of order1, label the variables in the dataset, and name the dataset as order1_cln and then save it in the folder “cln” which is in the folder of “data”.

4. create a dofile named order2_org.do and use the dataset of order2, label the variables in the dataset, and name the dataset as order2_cln.dta and then save it in the folder “cln” which is in the folder of “data”.

 

Second stage: (80 marks)

Please use the order1_cln and order2_cln to finish the following questions:

1. For all the new variables you generated, you have to label the new variables(5 marks)

2. Label the dataset “finished by myname / date of the exam” (2 marks)

3. use logfiles named “myname.txt” in this dofile, please “append” in the end of this command (3 marks)

4. you have to paste the questions and answers in your dofile

Q1: for the user who ordered the most quantity of commodities: (20 marks)

1. find out which user_ID ordered the most quantity of commodities in this month

2. how many commodities does he/she ordered in this month?

3. how many orders does he/she ordered in this month?

4. How much does he/she spend in this month ?

Q2: for the user who ordered the most orders: (20 marks)

1. find out which user_ID ordered the most orders in this month

2. how many orders does he/she ordered in this month?

3. how many commodities does he/she ordered?

4. How much does he/she spend in this month?

Q3: For the people who saved the most money (10 marks)

1. who saved the most money by discount supplied by jingdong?

2. How much did he saved ?

Q4: about JD.com (10 marks)

1. what is the total real revenue of jingdong.com in this month?

2. what is the total discount that jingdong.com provided to consumers in this month?

3. what do you think about the discount provided by jingdong.com after you find the answers of the two questions above?

Q5:how many people make orders in jingdong.com this month? (5 marks)

Q6:please calculate the real average spending of each person in jingdong.com this month (5 marks)

After you finish the exam, upload the dofile and logfiles to lexue

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme