CS441 - Big Data Concepts
5
Topics
10
Posts
Re: CS441 Assignment 1 Solution and Discussion
Assignment No. 1
Semester: Spring 2020
CS441 – Big Data Concepts
Total Marks: 20
Due Date: 01/06/2020
Lectures covered:
Week 1 to week 3
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/students).
Software allowed to develop Assignment
Python editor
Objectives:
To enable students to write, execute a program in Python. Moreover to familiarize students with the concepts of:
• Variables and operators
• Conditional statements
• Loop structures
Assignment Submission Instructions
You have to submit only.py file on the Assignments interface of CS441 on VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.
Assignment
Write a program in Pyton programming language, which allows the user to input an integer value for a variable named upperLimit. Based on the input value, the program should perform the following tasks:
• Check whether the value entered by the user falls within the range from 1 to 100. (1 and 100 included in the given range.)
• Calculate and display the sum of all numbers within the range (1 to upperLimit).
• Calculate and display the average of all numbers within the range (1 to upperLimit).
• Calculate and display the total number of numbers within the range (1 to upperLimit).
Sample output for the wrong input:
[image: Uz89tPV.png]
Sample output for the wrong input:
[image: 1Dw0vOn.png]
Sample output for the correct input:
[image: ZYZEfvz.png]
Deadline:
The deadline to submit your assignment solution is 01/06/2020. Your assignment must be submitted within the due date through VULMS. No assignment will be accepted through email after the due date.
Re: CS441 Assignment 2 Solution and Discussion
Assignment No. 02
SEMESTER Spring 2020
CS441- Big Data Concepts
Total Marks: 20
Due Date: 18/06/2020
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/students).
Software allowed to develop Assignment
Python editor
Objectives:
To enable students to write, execute a program in Python. Moreover to familiarize students with the concepts of:
• Classes and objects
• Constructor
• Object declaration
• Methods/functions calling
Assignment Submission Instructions
You have to submit only.py file on the Assignments interface of CS441 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.
Lectures Covered: This assignment covers Weeks # 03 - 05
Deadline
Your assignment must be uploaded/submitted on or before 18/06/2020.
Question statement:
Write a Python program that will create a class named Employee.
This class will have 4 data members:
ID
Name
Address
Designation
The Employee class will have the following setter functions:
setID(), which takes a single parameter of appropriate data type
setName (), which takes a single parameter of appropriate data type
setAddress(), which takes a single parameter of appropriate data type
setDesignation(), which takes a single parameter of appropriate data type
The Employee class will have the following getter functions:
getID()
getName()
getAddress()
getDesignation()
You are required to write a default constructor for this class.
In the default constructor, you will initialize all the data members with the its default values. The message “Default constructor called” should be displayed whenever an object is created with the default constructor.
Now, create an object by using the default constructor and display the values of data members through calling getters functions.
Then set the values of the data members by calling the setters functions and then display its values by calling getters functions.
Sample Output:
[image: JFfMC4w.png]
To solve this assignment, you need to install latest Python compiler or you can run (check) your code through online compiler at the following link:
https://www.onlinegdb.com/online_python_compiler
=====================================Ended=======================================
For any query about the assignment, contact at CS441@vu.edu.pk
GOOD LUCK
Assignment No. 02
SEMESTER Fall 2019
CS441- Big Data Concepts
Total Marks: 20
Due Date: 28/09/2019
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/students).
Software allowed to develop Assignment
Python editor
Objectives:
To enable students to write, execute a program in Python. Moreover to familiarize students with the concepts of:
• Classes and objects
• Constructor
• Object declaration
• Methods/functions calling
Assignment Submission Instructions
You have to submit only.py file on the Assignments interface of CS441 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.
Lectures Covered: This assignment covers Weeks # 03 - 05
Deadline
Your assignment must be uploaded/submitted on or before 28/09/2019.
Question statement:
Write a Python program that will create a class named Product.
This class will have 4 data members:
Name
Brand
Price
Quantity
The Product class will have the following setter functions:
setName (), which takes a single parameter
setBrand(), which takes a single parameter
setPrice(), which takes a single parameter
setQuantity(), which takes a single parameter
The Product class will have the following getter functions:
getName()
getBrand()
getPrice()
getQuantity()
You are required to write a parameterized constructor for this class.
In parameterized constructor, you will initialize all the data members with the values passed to it as an arguments. The message “Parameterized constructor called” should be displayed whenever an object is created with the parameterized constructor.
Now, create an object by using the parameterized constructor and display the values of data members through calling getters functions.
Then set the values of the data members by calling the setters functions and then display its values by calling getters functions.
Sample Output:
[image: RUT8bno.png]
To solve this assignment, you need to install latest Python compiler or you can run (check) your code through online compiler at the following link:
https://www.onlinegdb.com/online_python_compiler
=====================================Ended=======================================
For any query about the assignment, contact at CS441@vu.edu.pk
GOOD LUCK
Assignment No. 03 (Graded)
SEMESTER Fall 2019
CS441- Big Data Concepts Total Marks: 20
Due Date: 20-01-2020
Instructions
Please read the following instructions carefully before submitting the assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after the due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/students).
Objectives:
To enable students to write and execute different HivQL queries like:
• Create database
• Create table
• Load data in a table
• Select query
Lectures Covered: This assignment covers Topics of Week-10.
Assignment Submission Instructions
You have to submit only .doc file on the Assignments interface of CS441 on VULMS. An assignment submitted in any other format will not be accepted and will be graded zero marks.
You can visit the following link in order to write the HivQL queries with the help of online editor:
https://demo.gethue.com/hue/accounts/login?next=/hue
Kindly provide user name and password as demo in order to access the editor and to write and run different HIVQL queries.
For any query about the assignment, contact at CS441@vu.edu.pk
GOOD LUCK
Marks: 20
Problem Statement:
You are required to write HiveQL queries for the following tasks:
Create a database named as “VU”.
Create the following table named as “Student” in the “VU” database:
Field Name
Data type
Std-ID
int
Std-Name
String
Std-Fname
String
CGPA
Float
Cell No
String
Study Program
String
Write a Hive query that adds the following rows in the “Student” table. Consider that the following data is stored in a text file named as “Std-Data.txt” in /home/user directory.
101
Kamran
Usman
3.0
0300-0000000
BCS
102
Arshad
Anwaar
2.75
0321-1111111
MCS
103
Waqar
Jehanzeb
3.5
0345-2222222
MBA
104
Saad
Ameen
2.25
0312-3333333
MCS
105
Pervez
Khalid
3.75
0333-4444444
BCS
Write a Hive query that display all the information of those students whose CGPA is equal or greater than 3.0.
Write a Hive query that find the total number of students in each study program.
Assignment No. 1
Semester: Fall 2019
CS441 – Big Data Concepts
Total Marks: 20
Due Date: 14/11/2019
Lectures covered:
Week 1 to week 3
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/students).
Software allowed to develop Assignment
Python editor
Objectives:
To enable the students to write and execute a program in Python. Moreover to familiarize students with the concepts of:
• Variables
• Operators
• Conditions
• Loop structures
Assignment Submission Instructions
You have to submit only.py file on the Assignments interface of CS441 on VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.
Assignment
Write a program in Pyton programming language, which allows the user to input an integer value for a variable named upprtLimit. Based on the input value, the program should perform the following tasks:
• Find the even numbers within the given range (0 to upperLimit) and display all the even numbers on the screen.
• Find the odd numbers within the given range (0 to upperLimit) and display all the odd numbers on the screen.
• Calculate and display the sum of all even numbers within the given range (0 to upperLimit).
• Calculate and display the sum of all odd numbers within the given range (0 to upperLimit).
• Display the total number of even and odd numbers within the given range (0 to upperLimit).
For example, if a user enters upperLimit=20, then the sample output will be:
Sample output:
[image: n47ASQS.png]
Deadline:
The deadline to submit your assignment solution is 14/11/2019. Your assignment must be submitted within the due date through VULMS. No assignment will be accepted through email after the due date.