Saturday, March 20, 2010

Yu-gi-oh Duel Academy Gameshark

Lab 4 COMPUTER TASK 2

SUCH? AKI LES DEJO COMPUTER TASK BEFORE REMEMBER SEND TO 11.59 PM SUNDAY OR NOOOO xD!

1) Design algorithms solve the following problems:
Repaired a puncture on a bicycle.
· Make popcorn in a pot on the fire with oil, salt and corn.
· Chat on msn.
• Invite a child (a) to exit.

2) Identifiers are names of variables, usually consist of several alphanumeric characters, which is usually the first letter. Do not use reserved words as identifiers programming language.
Which of the following identifiers are not valid?
a) X5
b) R2D2
c) _Ray
d) ZZZZZ
e) 3A i) aX_2
f) N14 j) casa10
g) 45 k) m + n
h) B ∞ l) mn +

3) Evaluate the following expression for A = 4, B = 5, C = 1
B * A - B ^ 2 / 4 * C

4) Evaluate the expression
4 / 2 * 3 / 6 + 6 / 2 / 1 / 5 ^ 2 / 4 * 2

5) Get the value of each following arithmetic expressions:
• 7 div 2
· 0 mod 5 div 3
• 12 • 12 mod 3

• 7 * 10 to 50 mod 3 * 4 + 9
° (7 * (10 - 5) mod 3) * 4 + 9


the following exercises to design the algorithm flowchart and pseudocode.

6) Determine the area of \u200b\u200ba trapezoid from the base and height.
7) Determine the volume and area of \u200b\u200ba sphere.
8) Enter a three digit number and print that number with its digits in reverse order. Example, if you enter must then print 567 765.
9) Given two points in the Cartesian plane with coordinates X and Y. Find the distance between two points.
10) Since the sides of a triangle, determine the area and perimeter.
11) Keyboard input two numbers and determine if the second is a multiple of the first.

HAVE A FUN WEEKEND
BYE BYE!

0 comments:

Post a Comment