Assignment No. 01
 cSemester Spring 2019 Solution and Discussion


  • Cyberian's

    ![0_1557830172549_9cdfaa7d-59f6-4280-a45e-0ed473bde543-image.png](Uploading 100%)
    Assignment No. 01
    Semester Spring 2019
    CS508- Modern Programming Languages

    Total Marks: 20

    Due Date: May 14, 2019
    Instructions
    Please read the following instructions carefully before solving & submitting assignment:
    It should be clear that your assignment will not get any credit if:
    • The assignment is submitted after due date.
    • The submitted assignment does not open or file is corrupt.
    • The assignment is completely or partially copied from (other student or ditto copied from handouts or internet).
    • Student ID is not mentioned in the assignment File or name of file is other than student ID.
    • The assignment is not submitted in .doc or .docx format.
    Uploading instructions
    Your submission must include:
    • Assignment should be in .doc or .docx format.
    • Save your assignment with your ID (e.g. bx180200786.doc).
    Assignment submission through email is NOT acceptable
    Objective
    The objective of this assignment is to learn how we can evaluate different programming languages based on syntax.
    Note:
    Your answer must follow the below given specifications.
    • Font style: “Times New Roman”
    • Font color: “Black”
    • Font size: “12”
    • Bold for heading only.
    • Font in Italic is not allowed at all.
    • Your answer should be precise and to the point, avoid irrelevant detail.

    Lectures Covered: This assignment covers Lecture # 01 – 07
    Deadline
    Your assignment must be uploaded/submitted at or before May 14, 2019.

    Q1.(8 Marks)
    SR No

    Language Name

    For loop Syntax

    1

    JAVA

    for(int i=1;i<11;i++){ System.out.println(i);
    }

    2

    Python

    for x in range(1,11):
    print(x)

    3

    Kotlin

    for (i in 1..10) {
    println(i)
    }

    4

    Swift

    for i in 1...10 {
    print(i)
    }

    Given below is for loop syntax to ‘print 1 to 10 numbers’ in 4 different Programming languages:

    You are required to calculate points of each language on the basis of following aspects:

    1. Readability
    2. Reliability
    3. Cost/Programming effort
      You have total 30 points for each language.10 points for each aspect based on your opinion.
      Scale: 1 point lowest and 10 highest
      Q2.(12 Marks):
      Now explain each point according to winning language in each category for example if python has higher points in Readability then explain why this language has higher points in this section as compared to other languages given above. If there is a tie in 2 languages in the same category then explain both.
      Note: Only consider the code of each language which is written above while calculating the points.

Log in to reply
 

1
Online

26
Users

110
Topics

278
Posts