Monday, 15 October 2007

Peters Petrol Pumps

I have now made my interface designs for Peter Petrol Pumps. Thes can be seen below. I will now move on the design the code behind the interface which is the difficult bit!

The user will first click on the petrol pump below in simulation of getting petrol.




Followed by:



Tuesday, 9 October 2007

Peter's Petrol Pumps

I will now be starting my AS Module 3 repeat. I will be using MS Visual Basic to make my program. I hope to have it finished by Halloween.

Binary Tasks 22-25

Task 22
a) 100
b) 00100
c) 11011
d) 11.010
e) 1.0100
f) It must be moved 3 places to the right
g) 011
h) 10100011

Task 23

a) The left digit is 1
b) 1.010110000
c) 000001
d) It must be moved 1 place to the right
e) 1.010100000
f) 1.0101
g) -1.00625

Task 24

a) The left digit is 1
b) 1010011010
c) 000111
d) It must be moved 7 places to the right
e) 1011001.10
f) 1011001.1
g) 89.5


Task 25

a) The left digit is 1
b) 1.011111111
c) -0.100000001
d) The left digit is 1
e) 11111
f) It must be moved 1 place to the left
g) -0.0100000001
h) -0.0100000001
i)

Binary Tasks 17-21

Task 17

a) 1100.1
b) 0.110010000
c) It must be moved 4 places to the right
d) 0110010000000100



Task 18

a) 10.11
b) 0.101100000
c) It must be moved 2 places to the right
d) 000010
e) 0101100000000010



Task 19

a) The left digit is 1
b) 1.0111
c) 0.1001
d) It must be moved 2 places to the right
e) 010.01
f) 10.01
g) 2.25


Task 20

a) The left digit is 1
b) 1.0011
c) 0.1101
d) 111= -3
e) 0.0001101
f) 0.0001101
g) -0.1015625


Task 21
a) 1.1
b) 0001.1
c) 1110.1
d) 1.0100
e) It must be moved 1 place to the right
f) 001
g) 10100001

Binary Tasks 12-16

Task 12

a) 10.01
b) 0.1001
c) It must to 2 places to the right
d) 010
e) 01001010


Task 13

a) 1.1
b) 0.1100
c) It must be moved 1 place to the right
d) 001
e) 01100001



Task 14

a) The left digit is 0
b) 0111101000
c) The left digit is 0
d) +3
e) 0111100000
f) 1111.1
g) 30.5


Task 15
a) The left digit is 0
b) 0.110000110
c) The left digit is 0
d) +6
e) It must move 6 places to the right
f) 49.75


Task 16
a) The left digit is 0
b) 0.100000000
c) The left digit is 0
d) -3
e) It must move 3 places to the left
f) 0.0001000000
g) 0.001
h) 0.0625

Binary Tasks 6-11

Task 6

a) -15
b) -7
c) 2
d) 8
e) -2
f) 14

Task 7

a)-60
b)-40
c)+49


Task 8

a) 15.5
b) 0.5
c) 24.125

Task 9

a) 00100110
b) 01010100
c) 00111010
d) 00001001

Task 10

a) The left digit is 0
b) 01100
c) The left digit is 0
d) It must move right as it is positive
e) 0110.0
f) 110
g) 6

Task 11
a) The left digit is 0
b) 01110
c) The left digit is 1
d) -1
e) It must move left as it is negative
f) 0.0111
g) 0.0111

Binary Tasks 1-5

Task 1

a) -4, 2, 1
b) 3
c) -4

Task 2

a) -64, 32, 16, 8, 4, 2, 1
b) 63
c) -64

Task 3

a) 00100
b) 01000
c) 01011

Task 4

a)11100
b)10101
c)00010

Task 5

a) 10100
b) 10010
c) 11111