We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
Understand and get hands on experience of:
Write a program in Ada language which will copy chunks of data from source to destination array.
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.
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.
+ Click Here To Join also Our facebook study Group...How to Join Subject Study Groups & Get Helping Material?..
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
lms k download section ya phr direct GNAT ki website sy. 180 MB's ka software ha
yes me ne 2no download ker liye hen application or run b ker liya or assignment b ho gai thanks
plz ap code to share kar dy plzz
lms se download kren ap
sirf link diya he us k through kren ap sara
me ne esi k steps follow kiye hen
check this video. is mein asssignment kis software mein banani hai or usy kaise download kerna hai sub kuch hai
Thanks bhai junaid ho gya but agrap bta den k hum file submit kn se format me kren g to acha ho ga plzzzzzzzzzz jis me code run howa he wo hi submit kerwa den
bc123456789.ali likha he yani meri id k sath .ali likha he us ko kxe remove kren g ho jai k nai jse link me jo video he us me likha he Junaid.ali to ye sb k code output me show ho ga jab hum build kren g
plzz ki sai code share kary
plzz koi sai code share kar dy mery code ma error a raha ha plzzz
WITH Ada.Integer_Text_IO; USE Ada.Integer_Text_IO;
WITH Ada.Text_IO; USE Ada.Text_IO;
PROCEDURE Assignment 2 IS
TYPE MyArray IS ARRAY(1..16) OF Integer;
PROCEDURE PUT(A: MyArray) IS
FOR B IN A'RANGE LOOP
Put (A(B), Width =>4);
A: MyArray := (11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26);
C: MyArray := A;
Put_Line ("Chunks of Source array:");
Put_Line ("Chunks of Destination array:");
C(1..4) := A(9..12);
C(5..8) := A(1..4);
C(9..12) := A(13..16);
C(13..16) := A(5..8);
END Assignment 2;
Can I see the code for this?