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

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

+ 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: 1495

.

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

Attachments:

### Replies to This Discussion

Muhammad Junaid Arshad, What is the procedures and how to use them? Please explain and give us code with thanks....time is very short

ap ne function kaisae banaye hain ?

procedure se ya phir package se ??

procedure find is

var1 : Float := 4.0;
var2 : Float := 3.0;
var3 : Float := 7.0;
var4 : Float := 3.14;
var5 : Float;
var6 : Float;
var7 : Float;

function number_division(var1, var2 : Float) return FLOAT;
function number_division(var1, var2 : Float) return FLOAT is
begin

var5:= var1/ var2;
return var5;
end number_division;

function number_multiplication (var3, var4, var5 : FLOAT) return FLOAT;
function number_multiplication (var3, var4, var5 : FLOAT) return FLOAT is
begin
var6 := var3 * var3 * var3;
var6 := var6 * var4 * var5;
return var6;
end number_multiplication;

begin
put("ID: BC100200944");

var5 := number_division(var1, var2);
var6 := number_multiplication (var3, var4, var5);
put("The Result is: ");
var7 := var5 * var6;
put(var7);
end find;

NOTE: i might have mixed the logic somewhere because the answer is not correct, please correct the logic

anyway the functions will be used just like i have wrote in my code...

Good Luck...

:( mera ye error aa raha hai

Error - At least one procedure is required in main file

do u know keh kia problem ahi ?

ahhhh finally got mine :) Allhamdulillah :)

i think we have to pass value "7" in main.

Ap ne r ki value initialize ki hui hai, see this: In the main program you will use 7 as the value of r.

your error means that you must write code inside the 'procedure' it is like 'main' in C...

@ this is just an idea how to use the functions...

## Latest Activity

7 minutes ago
9 minutes ago
23 minutes ago
24 minutes ago
Alone Struggler liked + + + Haniya + + +'s discussion HAZRAT ALI (R.A)
26 minutes ago
26 minutes ago
30 minutes ago
Alone Struggler liked + + + Haniya + + +'s discussion FOR MY BEST FRIEND
31 minutes ago
38 minutes ago
Alone Struggler liked + + + Haniya + + +'s discussion WAQT DOST OR RELATION
38 minutes ago
53 minutes ago
Muhmmad Furqan Jalib posted a status
"someone have mgt211 past papers and also current papers then send it to me"
53 minutes ago

1

2

3