Data Science
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
PART1–INTRODUCTIONTODATASCIENCESANDALGORITHMS
1. Whatdo you understand about data science?
2. Assuming you are a department manager, and would like to investigate the customer’s
preference on three types of your company’s products. Hence, give a bit introduction
about your company and what types of products you want to investigate. Next,
explain the active roles of data scientist for this task.
3. Based on notes week two of “Basic of Algorithms”, find/create one problem. You
may refer to example of “Direction of numbered NYC streets algorithms” or “Class
average algorithms”.
a) State the problem, input, processing and output
b) From the problem specified in part a) above, create three popular program design
tool (flowcharts, pseudocode and hierarchy charts). For flowchart, please include
as many symbols as possible.
Note: your solution must be unique.
4. Give two example of current data technology and its explanation.
PART2–LISTSANDDICTIONARIES
Use a dictionary to create a program that stores information about five cities you would like
to visit. For each city, store the following information using the following info:
Cityname
Country
Population (in millions)
Alistofthree famous landmarks
Alistofthree popular local dishes
Then, use loops to print the name, country, and population of each city. For every city, use a
nested loop to print each landmark and each local dish neatly.
PART3–FUNCTIONSANDCLASSES
For this task, you have to use class and save it as a module. Create a scenario involving
function, class and inheritance.
1. Write the introduction of your scenario.
2. Write a program using python class, function and inheritance for the chosen scenario
above.
3. Test your program by creating five instances of each parent and child class and print
the info related.
4. Write the explanation of the program created above.
5. Provide your conclusion.
Write the item number 1, 4 and 5 in essay form. Your essay should be at least two pages long
using times new roman, font 12 and spacing 1.5 excluding the Python codes.
PART4–FILESANDEXCEPTIONS
STQD6014
1. Make two files, movie.txt and sport.txt. Store at least five names of movies and sports
line by line in these corresponding text files.
a) Write a program that tries to read these files and print the contents of the file to
the screen.
b) Add five newlines to both of these files, describing the existing contents with
suitable explanation.
c) Wrap your code in a try-except block to catch the FileNotFound error, and print a
friendly message if a file is missing. Move one of the files to a different location
on your system, and make sure the code in the except block executes properly
2025-12-13