Tuesday, July 31, 2012

Augmented Reality


1.       Define augmented reality (AR). Augmented Reality is a type of virtual reality that aims to duplicate the world's environment in a computer. An augmented reality system generates a composite view for the user that is the combination of the real scene viewed by the user and a virtual scene generated by the computer that augments the scene with additional information. 



2.       Provide some examples of how augmented reality might be used.
-Picking furniture
-Finding Places/ Find out out street names
-Interactive Prints
-Update on social network
-Happenings around you

3.       Traditionally a user would use text entry to search for  information in say Maps or  a search engine. How does AR offer a different alternative?
An Android smartphone is an ideal tool for travelers because all sort of tools can be pack on this portable device–we have maps, navigation apps, local business finder apps, and many more. A compass is also one of the essential tools for travelers and explorers. This tool can be used for pointing to the right direction. The 3D Compass + (AR Compass) app is your augmented reality compass app on your mobile phone.The app primarily works as a compass on your mobile phone. Using the phone’s camera, the app displays the actual image of where you are going with an augmented compass on top of it. You can also change the compass into a Rose Compass, Marine Compass, and Artificial Vertical Compass. The app also utilizes your phone’s GPS and displays the map on the screen, making your phone an excellent navigation tool. The address of your location is also displayed in the app. 


4.       How might the following people make use of AR;
●        A mechanic: Use it as blueprints for projects. 
●        An interior decorator: It can be used to demonstrate what a certain furniture would appear like in a room and what an ideas can look like when the room is completed.
●        A student: A student can use augmented reality when they on a school excursion, so as they are exploring they can find out extra information. 

Magic 8-ball

Add all the components:








Edit the blocks to make the sound and random outcomes to work:



















(optional) you can adjust it so when the phone is shaken, the 8 ball works. 
From the Sensors palette, drag over an AccelerometerSensor sensor component. Notice that it automatically drops down to the “Non-visible components” area of the Viewer window.


The final app should look like this on the emulator: 



Sunday, July 29, 2012

Hello Purr App

Steps:
1) From the Basic palette, drag and drop the Button component to Screen1 (#1). In the Properties pane, under Image, click on the text "none..." and click "Add…" (#2). Select the the kitty.png file you downloaded earlier (#3).
















2) Delete "Text for Button1" listed under the Text property using the Backspace key. Your Designer should look like this:














3) From the Basic palette, drag and drop the Label component to the Viewer (#1), placing it below the picture of the kitty. It will appear under your list of components as Label1.












4) Step 4. Under Palette, click on the Media drawer and drag out a Sound component and place it in the Viewer (#1). Wherever you drop it, it will appear in the area at the bottom of the Viewer marked Non-visible components. Under the Media pane, Click Add... (#2) Upload the meow.mp3 file to this project (#3). Under the Properties pane, click None... to change the Sound1 component's Source to meow.mp3 (#4).


















These are the buttons that have to be added in order to play the sound. 

















The Final thing should look like this on the emulator: 

Tuesday, July 24, 2012

PSEUDOCODE COMMANDS

Examples: 


1. If......then
else.....
This example is a selection because you are making a choice. 

2. Do While....EndDo 
This example is a repetition.

3. Repeat.....Until.......
This example is a repeition.
Keywords:
  • Initialize (set to an initial value)
  • Input (get a value)
  • Print (output to hard copy)
Note:
  • You can have Pretest repetition. 
  • You can also have Post Test repetition.


PSEUDOCODE EXAMPLE:
"Filling a bath with 80L"

Begin

Initialize Volume=0  

Turn on tap

Repeat 

Wait 1 minute

Until Volume=80

Turn off tap

End. 
  

PSEUDOCODE

  • Type of English
  • Uses common words
  • Informal structure -(no set rules)
  • The purpose is trying to describe an algorithm in text that resembles code. 

Sunday, July 15, 2012

Flowchart Basics

What is a flowchart?
The flowchart is a means of visually presenting the flow of data through an information processing systems, the operations performed within the system and the sequence in which they are performed.

Describe the basic flowchart symbols for:
With the decision making symbol (diamond) and the process symbol (rectangle), what are the rules for how many lines may enter and leave the symbol.

Only one flow line should come out from a process symbol.



Only one flow line should enter a decision symbol, but two or three flow lines, one for each possible answer, should leave the decision symbol.

A flowchart for a coin toss where heads means Mary pays for the pizza and Tales means Bill pays.


Algorithms


What is an Algorithm?
An unambiguous set of steps, which when performed correctly by a processor, will result in a process being carried out in a finite time.

What two properties of the algorithm enable it to correctly describe the solution to the problem of making a cup of coffee?
The two properties of the algorithm is that it is specific and it is in the correct sequence.

Define Algorithms for the following processes.


Posting a letter.
1. Get a pen and piece of paper.
2. Write the letter.
3. Put the letter in the envelope.
4. Write the posting address on the envelope.
5. Write on the back side of the envelope, who the letter is from and the return address.
6. Put a stamp on the envelope.
7. Post the letter at your local post office. 

Making toast.
1. Turn on the toaster.
2. Get a slice of bread.
3. Place the slice of bread in the toaster.
4. Push the lever down on the toaster.
5. Wait for 2-3 mintues, until the bread slice pops out.
6. Spread desired amount of jam or butter on the toasted slice of bread.

Calling a friend on the phone.
1. Pick up the phone.
2. Dial the number on the phone.
3. Press the talk button.
4.Wait for the person to pick up if person doesnt pick up,call again.
5. Have fun chatting with your friend!