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.

Assignment No. 02 Semester: Spring 2014 Modern Programming Languages (CS508) | Due Date: 28/05/2014

Assignment No. 02
Semester: Spring 2014
Modern Programming Languages  (CS508)

 

Total Marks: 20

 

Due Date:  28/05/2014

 

Instructions:

Please read the following instructions carefully before submitting assignment:

 

  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your MS Word File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted/graded in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be graded.
  • You will submit solution only in Microsoft Word File.

 

Objectives:

 

To understand and familiarize with ADA Language.

 

 

For any query about the assignment, contact at cs508@vu.edu.pk or through MDB.

Assignment Questions

 

Question                                                                                                        

                       Marks 10     

 



To find the area of a sphere we use following formula  


Write a complete program in Ada to solve this formula. Note that each mathematical operator (such as multiplication and division) should be solved in a separate subprogram.

 

In the main program you will use 7 as the value of r.

Your program will display the final result and your VU student id.

 

Hint : You need to solve equation (4 / 3  ) *( 3.14 * r * r *r)

 

 

Question                                                                                                                               Marks 10     

 

You will go to page http://www.compileonline.com/compile_ada_online.php

 

Paste you code written in the Question 1 in right hand pan and press Compile & Execute button, then you will take screen shot of the output and paste in your solution file.  As shown below

 

 

 

BEST OF 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: 1503

.

+ 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

bro main n bi isi page s help li hai ap bi kr lo

Muhammad waseem n jo code dia hai vo theak bs thori c changing kr lain ho jaye ga 

sir n kaha hai k main program main final result r vu studentID 2no display honi chahe

plz frndz koi btaye ga k hm ID kaise mention krain gain program main

"Your program will display the final result and your VU student id."

Add this also before "end Exercise"

Put_Line("your Id");

answer is 1436.0266

correct me if i am wrong...

my answer is 

1.43603E+03 its correct due to written in exponent. 

yes my answer is also the same in the output...

i think everyone has completed the assignment, but remember you have to make 2 functions, one for division and one for multiplication...

every one upload solution please 

yar koi to upload ker dy es assignment ka solution. time khatam hony wala hy

AOA

Dear Alls, please upload Assignment Solution with thanks... Late due to illness....

with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;

procedure Exercise is
r : integer := 7;
result1 : integer;
result2 : float;
number1 : float :=3.0;
number2 : float :=4.0;
begin
result1 := r*r*r;
result2 := (number2/number1)*3.14;
Put_Line("Number: " & float'image(result2));
end Exercise;

and display you id ...... Put_Line("BC000000"); like that..

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Sweet Candy: this solutions is incomplete because we have to write 2 functions the purpose of division and multiplication but you haven't used any function...

RSS

Latest Activity

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

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

.