Upcoming SlideShare
Loading in …5
×

# Valueandvariables

215 views

Published on

Notes sa computer :)

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

• Be the first to like this

No Downloads
Views
Total views
215
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Valueandvariables

1. 1. Answer
2. 2. Speed*Distance Answer
3. 3. Speed*Distance
4. 4. A+B=C Answer
5. 5. A+B=C
6. 6. Weight = 3024 g Answer
7. 7. Weight = 3024 g
8. 8. Time = T + D Answer
9. 9. Time = T + D
10. 10. S*D = (5*5.2) Answer
11. 11. S*D = (5*5.2)
12. 12. Value Parameters can beused to supply informationto a procedure, but not out from it.
13. 13. Procedure Vehicle (var Time, Distance:real);Var speed:real;Begin speed := Time*Distance; writeln(‘The speed is:’, Speed:6:2);End;
14. 14. The Variable Parameters can be used to bring information into the procedure and/or passinformation from out of the procedure.
15. 15. Procedure Vehicle2 (Time, Distance:real);Var speed:real;Begin speed := Time*Distance; writeln(‘The speed is:’, Speed:6:2);End;BeginClrscr;Vehicle2(5,5.5);Readln;End.
16. 16. Program Subprograms; BeginUses crt; Clrscr;Var T, D : real; T:=5;Procedure Vehicle (var Time, Distance: D:=5.5;real); Vehicle (T,D);Var Speed: real; Vehicle2 (5,5.5);Begin Vehicle2 (T+5,5.5*2); Speed := Time*Distance; Vehicle2(T,D); writeln (‘the speed is:’ , speed:6:2); Readln;End; End.Procedure Vehicle2 (Time, Distance: real);Var Speed: real;Begin Speed := Time*Distance; writeln (‘the speed is:’ , speed:6:2);End;