Skip to content

CS508 - Modern Programming Languages

3 Topics 138 Posts
  • Please share mid term past papers

    Pinned mid term spring 2019 solved papers
    12
    0 Votes
    12 Posts
    3k Views
    M
    Smalltalk was the first purest ______ language and pioneered graphical user interface. Object Oriented Which of the following is the incorrect option form the following statements regarding ‘objectives of learning new languages’ ? Help in understanding the language privacy policy. Binary operator in SNOBOL must has at least _____ spaces on both sides. 1 A space is used as ______ for concatenation. Operator Sign is used for ______ in SONOBOL. Line Continuation Following are some of the reasons for studying concepts related to different programming languages EXCEPT Increased capability to design communication links COBOL was the first language that brings the concept of _________ . Structure A language evaluation criteria includes following factor EXCEPT Modularity
  • 0 Votes
    2 Posts
    592 Views
    Tahir BalochT
    Please share ideas solution
  • 0 Votes
    3 Posts
    876 Views
    zaasmiZ
    main.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with per; use per; with Mn; use Mn; procedure main is -- Creating object of type Men men1 : Men; len: Natural; Begin -- Taking input ID Put_Line("Enter ID : "); Get_Line(men1.ID, len); -- Taking input Name Put_Line("Enter Name : "); Get_Line(men1.Name, len); -- Taking input Gender Put_Line("Enter Gender : "); Get_Line(men1.Gender, len); -- Taking input Height Put_Line("Enter Height : "); Get(men1.Height); -- Taking input Age Put_Line("Enter Age : "); Get(men1.Age); new_line(2); -- Print Function calling print(men1); new_line(3); end main; per.ads package Per is type Person is tagged record Name: String(1..30):= " "; Age: Integer :=0; Gender: String(1..10) := " "; end record; procedure print(Self : in out Person); end Per; main.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; package body Per is procedure print(Self : in out Person) is begin Put_Line("Name is " & Self.Name); Put_Line("Age is " & Integer'Image (Self.Age)); Put_Line("Gender is " & Self.Gender); end print; end Per; mn.ads with per; use per; package Mn is type Men is new Person with record Height: Float := 0.0; ID: String(1..15) := " "; end record; overriding procedure print(Self : in out Men); end Mn; mn.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with per; use per; package body Mn is procedure print(Self : in out Men) is begin Put_Line("ID is " & Self.ID); Put_Line("Name is " & Self.Name); Put_Line("Age is " & Integer'Image (Self.Age)); Put_Line("Gender is " & Self.Gender); Put_Line("Height is " & Float'Image (Self.Height)); end print; end Mn;
  • CS508 Assignment 1
 Solution and Discussion

    Solved cs508 assignment 1 solution discussion spring 2020
    3
    0 Votes
    3 Posts
    2k Views
    zaasmiZ
    https://www.youtube.com/watch?v=suvkPZTheK0 Solution 100% outer = 1 OUTLOOP OUTPUT = 'Outer ' outer outer = outer + 1 iner = 1 INLOOP OUTPUT = 'Iner ' iner iner = iner + 1 LE(iner, 22) : S(INLOOP) LE(outer, 11) : S(OUTLOOP) OUTPUT = 'My id is BC120401122' END
How to Build a $1,000/Month PAK VS BAN Live Live Cricket Streaming
File Sharing

1

Online

3.0k

Users

2.8k

Topics

8.2k

Posts
| |