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

www.vustudents.ning.com

 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

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

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

Views: 1512

.

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

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

Attachments:

### Replies to This Discussion

Assalam-O-Allaekum

Dear All Fellows....

Please share your comments, suggestion and discussion regarding Assignment No-2 Graded, Final date is 26/5/2014.... Hurry up and one step forward to solve this assignment ......

Best Wishes

We have to create 2 functions that will return the multiplication and division of given variables (2 (we can use 1 variable 3 times) variable for multiplication and 2 for division).

Then we call the functions in the main procedure give them values to calculate, save them in two variables then we multiply those two variable with each other to get the volume of the sphere.

All information can be learned through simple Google search.

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.

Basic Concepts of ada programming languge is

hello friends code is here

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: " & natural'image(result2));
end Exercise;

Thank you bahi.

But sorry to say it is not compiling. The error is shown below.

`gcc -c exercise.adb exercise.adb:15:41: expected type "Standard.Integer" exercise.adb:15:41: found type "Standard.Float" gnatmake: "exercise.adb" compilation error`

change Put_Line("Number: " & natural'image(result2));

into Put_Line("Number: " & float'image(result2));

koi correct code share krdy plz

We are waiting for correct code of Ada .....

frndz is this number correct

`Number:  4.18667E+00 as a result?`

doll koi hint e day do yar...

## Latest Activity

12 minutes ago
M Abdul Wahab Khalid joined +M.Tariq Malik's group

### CS401 Computer Architecture and Assembly Language Programming

29 minutes ago
Shahid and Rabia Imran are now friends
36 minutes ago
55 minutes ago
55 minutes ago
+M.Tariq Malik's discussion was featured

### MTH101 Calculus And Analytical Geometry Practice Questions Solutions Lectures 1 to 22

55 minutes ago
55 minutes ago
+M.Tariq Malik added a discussion to the group MTH101 Calculus And Analytical Geometry

### MTH101 Calculus And Analytical Geometry Practice Questions Solutions Lectures 1 to 22

56 minutes ago
+M.Tariq Malik added a discussion to the group MGT402 Cost & Management Accounting

58 minutes ago

1

2

3