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

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


+ Click Here To Join also Our facebook study Group.


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


See Your Saved Posts Timeline

Views: 2177

.

+ http://bit.ly/vucodes (Vu Study Groups By Subject Codes Wise)

Attachments:

Replies to This Discussion

Question 1 part 2 idea;

   define('ssq(a)i') :(ssq_end)
ssq i = i + 1; ssq = ssq + (a<i> * a<i>) :s(sumsq)f(return)
ssq_end

* # Fill array, test and display
str = '1 2 3 5 7 11 13 17 19 23'; a = array(10)
loop i = i + 1; str len(p) span('0123456789') . a<i> @p :s(loop)
output = str ' -> ' sumsq(a)
end

yrrrrrrr perhaya he nhi aur fortran sonobal me inhe assignment bna k do How is it possible yrrrrrrr kia ye khula tazad nhi?????????????????

yahan sb chezon mai he tazad ha

itna simple progrm to hai handout py sir nay syntex define to kiye hi agar ni smjhe ati to net py daikh lo...

I don't like this course.

ek to lectures b complete ni hoty na un ki practice hoti ha or sth he assignments aa jati hain ...............

:P

question # 1 a part  k liye Ada programming language thek rhy gi kia???

koi to discussion kro kal last date ha.........

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

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

Question 1 part 2 idea;
define('ssq(a)i') :(ssq_end)
ssq i = i + 1; ssq = ssq + (a<i> * a<i>) :s(sumsq)f(return)
ssq_end

* # Fill array, test and display
str = '1 2 3 5 7 11 13 17 19 23'; a = array(10)
loop i = i + 1; str len(p) span('0123456789') . a<i> @p :s(loop)
output = str ' -> ' sumsq(a)
end

RSS

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

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