You are on page 1of 3

Mid-Term Exam (Take-Home) Fall - 2020

Subject: Visual Software Analytics Lab Submission Day: Sunday


Instructor: Tooba Rashid Submission Date: 28-11-2020
Program: BS (CS/SE) Max. Marks: 25

Department of Faculty of Engineering Sciences and Technology

Please follow the instructions carefully:


1. Write your answers in a Word file and upload the file before the due date on BlackBoard.

2. Write your name and registration ID on the first page of your Word file.

3. Answer scripts can be uploaded on BlackBoard any time before its deadline.
Therefore, do not wait for the last hour to avoid any unforeseen problems.

4. Submission of answer copy(ies) will be considered acceptable through BlackBoard


only. Therefore, do not submit your document through email or any other medium.

5. Use 12 pt. font size and Times New Roman font style along with 1-inch page margins.

6. Follow the requirements of the word limit and the marking criteria while writing your
answers.

7. Provide relevant, original and conceptual answers, as this exam aims to test your ability to
examine, explain, modify or develop concepts discussed in class.

8. Do not copy answers from the internet or other sources. The plagiarism of your answers
may be checked through Turnitin.

9. Recheck your answers before the submission on BlackBoard to correct any content or
language related errors.

10. Double check your word file before uploading it on BlackBoard to ensure that you have
uploaded the correct file with your answers.
Q no. 1 05 Marks

Write a python script to find out the line of code, blanks, and comments of Java,
C# or any programming file. Also, use cloc.exe to count the project line of code.
cloc can be found here :
https://github.com/AlDanial/cloc

Q no. 2 05 Marks

A hospital is the most sensitive place from where the COVID case may increase.
To maintain the social distancing, you are required to arrange seating of patients at
a distance in the waiting area.

Patient need to provide his following details such as number, age, name. After
providing details, an auto generated token number will be assigned to the patient
for the appointment of the doctor.
A patient need to choose his seat number in between 1 to 50 in the waiting area to
see the doctor.
In order to maintain SoPs, there should be the distance of two seats in between.

For example, if seat # 2 is occupied then seat # 3 and seat # 4 should be disabled to
maintain social distancing.

You have to create multiple patient record, at least 10 patient and 2 doctors must
be recorded.

Use any structure such as List, dictionary, sets, or tuple to maintain the record
detail.

Q no. 3 15 Marks

You are required to perform the data exploratory analysis using pandas library. Consider the
following dataset to analyze the behavior of the data recorded. This data maintains the record of
traffic to and from the airport during the baseline period i.e. 1st Feb- 15 March 2020.

Dataset: https://www.kaggle.com/terenceshin/covid19s-impact-on-airport-traffic
Find out the following:
1. How many record are there for the June, July and August.
2. Find out the total duration in months.
3. Compare the month of September and October and list the differences found.
4. Find the percentage of traffic volume for the month of September. Plot the graph against
date and percentofBasline.
5. Plot the graph for maintaining the count of traffic volume for each airport. Also find out
most common airport.
6. Find out the mean of percentofBasline.
7. Find out how many country are involved.
8. Determine the count of record for each country.
9. Find out the total percent of Basline for the state of California.
10. Plot the graph against months and percentofBasline. And determine the difference of
each month.

Use DataFrame to process the record. Plot column chart for each point. Use matlplotlib
library for plotting graph.

You might also like