We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.


+ Link For Assignments, GDBs & Online Quizzes Solution


+ 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.

CS508 Assignment # 2 has been uploaded on VULMS covering lectures 1 to 17 . Its due date is Due Date: May. 24, 2017


            Understand and get hands on experience of:

  • Programming tool for Ada language like Ada GIDE or GPS (GNAT Programming Studio)
  • Array, Loop, Pieces the array and copy chunks(pieces) of array

Write a program in Ada language which will copy chunks of data from source to destination array.


Assignment Instructions:

In this program, you need to declare two arrays (one dimensional) of size sixteen (16) with names “Source” and “Destination”. Source array should contain numeric values from 11 to 26, as showing in below diagram. Then source array should be logically divided into four chunks. Each chunk will have four numeric values. Your program will copy the chunk of array from source array to destination array. Arrows shown in diagram will help you to see which chunk will copy at which location. After copying the chunks, display data of source and destination arrays as shown in sample output screen shot. 


Important Note:


Make sure that you copy a complete chunk using single statement instead of copying elements one by one. Marks will be deducted in case of copying data elements one by one.


+ 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)

Views: 3288


Replies to This Discussion

Check the link below for solution

Send solution

I download the ada gide but it is not working send link

Idea Solutuion for cs508

kiya ap bta skte hen k hum ye code kahan likhen g ??????????? i mean koi application something else?????plzzz bta den 

they have written above
Programming tool for Ada language like Ada GIDE or GPS (GNAT Programming Studio

Google it 

with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Hello is

type MyArray is array (1..16) of Integer;

procedure put(s: MyArray) is
for i in s'range loop
put(s(i), width=>4);
end loop;

end put;
s: MyArray := (11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26);
d: MyArray :=s;

Put_Line ("chunk of source array:");

Put_Line("chunks of destination array:");
d(1 .. 4) := s(9 .. 12);
d(5 .. 8) := s(1 .. 4);
d(9 .. 12) := s(12 .. 8);
d(13 .. 16) := s(5 .. 8);
end Hello;

compile kerty hoy error aa raha hay es code main

ada kaha se download krna hai plz help me send me the link 

Amna je aapko ada compilar download aur install karne ki koi zarorat nahi hain, aap na code leke sidha online ada compilar pe compile kare aur execute bhi.


es ka b kuch khas faida nai  u should have to download application 


Latest Activity

Looking For Something? Search Here

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

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