Sunday, April 29, 2012

TASK 4

Problem 1
1.1 Set gift card value to $50
1.2 set book value to $35
1.3 display 50
1.4 when puchase presses take 35 off the 50 and diplay it

Problem 2
2.1set 91 to 2.07
2.2 set 95 to 2.17
2.3 set diesel to 1.47
2.4 when increase pressed 91,95 & diesel variable timesed by 1.1
2.5 then display new values

Problem 3
3.1 const int wheelSize = 2.4
3.2 const int pie = 3.14
3.3 int wheelRotation
3.4 when button pressed calculate( pie * wheelSize*wheelSize)
3.5 display number 



Friday, April 27, 2012

Bits and Bytes

Bit; a single value either consisting of  "0" or "1" within the binary numeral system, these values symbolizing state  of electrical conductivity of a pin on a IC ether being pulled up to the power supply ( 1 )or pulled down to the ground ( 0 ).

Byte; This is a sequence of bits that can represent something like a letter on a keyboard. When you press any letter on a computer keyboard the computer recognizes it as specific sequence of binary values.

 This example says test; 01110100 01100101 01110011 01110100
                                            t                 e               s             t

16=65536
-32767
 32767
32= 4294967296
-2147483647
2147483647

Monday, April 23, 2012

Task 3

1 Setting variables
1.1 set first quater = Jan- Mar
1.2 set second quater = Arp-Jun
1.3 set third quater = Jul-sep
1.4 set fourth quater =Oct-Dec
1.5 set Temp


2 Display values
2.1 label.1 Text = This quater + first quater
2.2 label.2 Text = Next quater + Second quater
2.3 label.3 Text = Next following quater + Third quater
2.4 label.4 Text = last quater + fourth quater

3 Change variables
3.1 temp = first quater
3.2 first quater = second quater
3.3 second quater = third quater
3.4fourth quater = temp

24/4/2012

Questions

1.Four main features of a algorithm
 Must be broken into steeps
       //     //   very simple to read
   each step is a single instruction
   Must have a start and stop point

2. what language is an algorithm
 Your natural language

Monday, April 2, 2012