We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Question No. 01:

  1. a.   Being a member of a software development team which requires developing software for defense organization, needing to run for more than 20 years. Which of the following programming language you will prefer? Justify your answer with solid arguments.                                                                         Marks: 04

i)                    SNOBAL

ii)                  Ada

iii)                FORTRAN

    

       b. Write the program in SNOBOL that outputs the square of numbers between 1 and 15.                Marks: 06

 

Question No. 02:

Ada is one of the strongest and standardized programming languages. Like C/C++, Ada also has rich set of   operators. Consider the following C++ code and write code in Ada programming language to get the similar results by using the same variables, loop etc.                                                                                                   Marks : 10

 

#include<iostream.h>

 

main (int argc, char *argv[])

 

{

    int n;

    int i=1;

   int fact=1;

 cout"please enter a number\n";

 cin>>n;

 

 if(n<=1)

 return 1;

 

 while(i<n)

 {

 fact= fact*i;

 i++;   

}

coutn"! ="fact; 

system("pause"); 

 }

           

=====================================Ended=======================================

 

             For any query about the assignment, contact at CS508@vu.edu.pk

GOOD LUCK

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2198

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Ada was designed for military projects and its programs are portable for embedded military quipment.

Adavantages of Ada 95:
Ada is one language, 
Ada includes tasking as a part of the language.
Ada has stronger typing.
Ada provides better control over procedure parameter access modes.
Ada includes modules.
Ada is more portable 
Ada has no equivalent to Pascal's "with" statement (if you've maintained a
lot of Pascal code, you know why this is an advantage).
Since Ada was mandated by the DOD a continued presence is assured.
Ada includes machine representation clauses.

Most of the features (except stronger typing) that are available in Ada are
available in one way or another in various dialects of Pascal. They are
just not portable and often awkward.

Ada is a modern programming language designed for large, long-lived applications – and embedded systems in particular – where safety and security are essential.

QUESTION 2 KA KOI SOLUTION DO PLEASE ANY GENIOUS

koi second question ka idea b share kr dy 

Haya read kar lo

Subprograms
In Ada, there are two types of subprograms: procedures and functions. Unlike C, we can
also have nesting of subprograms. A subprogram defined inside another subprogram an
be used by its parent, children, or sibling subprograms only.
This is demonstrated in the following example:
Procedure My_procedure(x, y : IN OUT integer) is

function aux_func(a : Integer) return integer is
Temp : float;
begin

return integer(temp) * a; -- retrun temp * a is not allowed
end aux_func;

begin -- begin of My_procedure

aux_func(x);

end My_procedure;

koi to send kar da solution

I cant solve the quetion 2 any one plz help 

share the code today is extend day 

Here is a simple SNOBOL4 program to add the integers between 1 and 1000:

                sum = 0           
term = 1
loop sum = sum + term
term = term + 1
LE(term,1000) :s(loop)
OUTPUT = "The sum is " sum
END

2nd question 

idea

i complete my assignment   

thanks bro.. i completed  2nd q part 2 just few minites ago.. just thori si changes karni thi.. :)

welcome bro

RSS

Latest Activity

Aliya replied to + M.Tariq Malik's discussion CS504 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS504 Software Engineering - I
5 minutes ago
Aliya joined + M.Tariq Malik's group
5 minutes ago
+ ! ! ! ! ! NoOr E KaYeNaT updated their profile
7 minutes ago
Nayab replied to + M.Tariq Malik's discussion My First Day Earning On Hapo App ! You Can also Earn
14 minutes ago
+ " J ɨ y α •" ⋆ replied to + " J ɨ y α •" ⋆'s discussion Let's celebrate the Birthday of our Beloved Mod + "αяsαℓ " Ќąƶµяɨ •"
16 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + " J ɨ y α •" ⋆'s discussion Let's celebrate the Birthday of our Beloved Mod + "αяsαℓ " Ќąƶµяɨ •"
25 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + " J ɨ y α •" ⋆'s discussion Let's celebrate the Birthday of our Beloved Mod + "αяsαℓ " Ќąƶµяɨ •"
25 minutes ago
Kanwal posted a photo
26 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to ملالٖ یار's discussion Who can save u ?
29 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked ملالٖ یار's discussion Who can save u ?
30 minutes ago
Nishat liked + ℱȺℋ££M ᏕȺQǐβ's discussion ╰☆╮Mid Term Papers Solving Techniques During Paper Do These Steps╰☆╮
42 minutes ago
haniya liked + M.Tariq Malik's discussion MTH401 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
43 minutes ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.