Navigation

    Cyberian
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Pro Blog
    • Users
    • Groups
    • Unsolved
    • Solved
    Quiz 100% Result
    • CS441 Assignment 1 Solution and Discussion

      zaasmi

      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:
      0dc57223-3af8-49ca-a7ce-e95a5d2ec81f-image.png

      Sample output for the wrong input:

      ad04a7df-09b6-41d8-8ad8-d1c79cba3c0d-image.png

      Sample output for the correct input:

      cbc6325a-a282-467b-a7dc-01cb8fe23173-image.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.

      CS441 - Big Data Concepts
    • CS441 Assignment 2 Solution and Discussion

      zaasmi

      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:
      ede5c023-3492-4a31-960f-3f69faf84ff8-image.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 [email protected]

      GOOD LUCK

      CS441 - Big Data Concepts
    • CS441 Assignment 2 Solution and Discussion

      zareen

      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:
      557f4778-6ab5-4dd1-b364-f463824e31e7-image.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 [email protected]

      GOOD LUCK

      CS441 - Big Data Concepts
    • CS441 Assignment 3 Solution and Discussion

      zareen

      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 [email protected]
      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.
      CS441 - Big Data Concepts
    • CS441 Assignment 1 Solution and Discussion

      zareen

      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:
      ab206076-1e63-433c-8c67-8b6ecaeee00f-image.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.

      CS441 - Big Data Concepts

    SOLVED CS441 Assignment 2 Solution and Discussion

    CS441 - Big Data Concepts
    assignment 2 cs441 discussion fall 2019 solution
    1
    2
    4
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zareen
      zareen Cyberian's Gold last edited by

      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:

      1. Name
      2. Brand
      3. Price
      4. 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:
      557f4778-6ab5-4dd1-b364-f463824e31e7-image.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 [email protected]

      GOOD LUCK

      1 Reply Last reply Reply Quote 0
      • zareen
        zareen Cyberian's Gold last edited by

        Solution:

        class Product:
            
            Name = "NULL"
            Brand= "NULL"
            Price= 0
            Quantity= 0
        
                 
                
            def __init__(self, na, br, pr, qty):
                print
                print "--------------------------------"
                print "Pametarized Constructor called:"
                print "--------------------------------"
                self.Name = na
                self.Brand = br
                self.Price = pr
                self.Quantity=qty
                
                      
            def setName(self, n):
                self.Name = n
                
            def setBrand(self, b):
                self.Brand=b
                
            def setPrice(self, p):
                self.Price=p
                
            def setQuantity(self, q):
                self.Quantity=q
        
                
        
            def getName(self):
                return self.Name
            
            def getBrand(self):
                return self.Brand
        
            def getPrice(self):
                return self.Price
            
            def getQuantity(self):
                return self.Quantity
            
        
        P1= Product("Computer","DELL",48000,5)
        
        print
        print "Object values initialized through Constructor:"
        print
        print "Name: " , P1.getName()
        print "Brand: ", P1.getBrand()
        print "Price: ", P1.getPrice()
        print "Quantity: ", P1.getQuantity()
        
        
        P1.setName("Cloths")
        P1.setBrand("Bonanza")
        P1.setPrice(4500)
        P1.setQuantity(10)
        print
        print "-------------------------------------------------"
        print
        print "Object values assigend thorugh setter functions:"
        
        print
        print "Name: " , P1.getName()
        print "Brand: ", P1.getBrand()
        print "Price: ", P1.getPrice()
        print "Quantity: ", P1.getQuantity()
        
        1 Reply Last reply Reply Quote 0
        • zareen
          zareen Cyberian's Gold last edited by

          Solution:

          class Product:
              
              Name = "NULL"
              Brand= "NULL"
              Price= 0
              Quantity= 0
          
                   
                  
              def __init__(self, na, br, pr, qty):
                  print
                  print "--------------------------------"
                  print "Pametarized Constructor called:"
                  print "--------------------------------"
                  self.Name = na
                  self.Brand = br
                  self.Price = pr
                  self.Quantity=qty
                  
                        
              def setName(self, n):
                  self.Name = n
                  
              def setBrand(self, b):
                  self.Brand=b
                  
              def setPrice(self, p):
                  self.Price=p
                  
              def setQuantity(self, q):
                  self.Quantity=q
          
                  
          
              def getName(self):
                  return self.Name
              
              def getBrand(self):
                  return self.Brand
          
              def getPrice(self):
                  return self.Price
              
              def getQuantity(self):
                  return self.Quantity
              
          
          P1= Product("Computer","DELL",48000,5)
          
          print
          print "Object values initialized through Constructor:"
          print
          print "Name: " , P1.getName()
          print "Brand: ", P1.getBrand()
          print "Price: ", P1.getPrice()
          print "Quantity: ", P1.getQuantity()
          
          
          P1.setName("Cloths")
          P1.setBrand("Bonanza")
          P1.setPrice(4500)
          P1.setQuantity(10)
          print
          print "-------------------------------------------------"
          print
          print "Object values assigend thorugh setter functions:"
          
          print
          print "Name: " , P1.getName()
          print "Brand: ", P1.getBrand()
          print "Price: ", P1.getPrice()
          print "Quantity: ", P1.getQuantity()
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          50% Off on Your FEE Join US!

          Quiz 100% Result If you want to know how you can join us and get 50% Discout on your FEE ask Cyberian in Chat Room! Quiz 100% Result Quiz 100% Result
          solution1241 discussion1193 fall 2019813 assignment 1425 assignment 2295 spring 2020265 gdb 1246 assignment 382 crw10174 spring 201955
          | |
          Copyright © 2021 Cyberian Inc. Pakistan | Contributors
          Live Chat