Saturday, February 8, 2014

On this link help find 16 comp. parts and it's function.need help?




babygirl


http://blackboard.wcpss.net/webapps/portal/frameset.jsp?tab=courses&url=%2Fbin%2Fcommon%2Fcourse.pl%3Fcourse_id%3D_7288_1
Then Click on: External Links
And scroll down to: Journey Inside
REMEMBER: THERE SHOULD BE 16 COMP. PARTS



Answer
1- keyboard - character input, typing.
2- mouse - pointer input, pointing and clicking
3- microphone - audio input, talking.
4- speakers - audio output
5- camera - visual input, pictures
6- monitor - visual output, "the screen"
7- optical drive - storage, audio input (CD), audio-visual input (DVD)
8- hard drive - storage
9- read-only memory (ROM) - storage
10- microprocessor - processing ("central processing unit, CPU)
11- Random Access Memory (RAM) - storage
12- Motherboard - connects the parts together.
13 - Scanner - visual input
14 - Printer - Hard copy output

And that's all the parts that are labeled. Calling out the 2nd speaker as "another speaker" seems cheesy. So I need to name some unlabeled parts.

15 - the "system" enclosure - contains the motherboard, storage and RAM, ROM, and processor.
16- Video card - visual output. Drives the display on the monitor screen. Modern ones also do some processing of the display data to relieve the CPU of the burden of trying to make video games be fast.

17- Bonus - Ribbon cable - connects the hard drive and optical drive to the motherboard.

Things not shown: (they aren't made by Intel, the site's sponsor, so they "aren't important").

18- Power cables. - Provides electricity to the devices so they can operate. I expect the setup shown probably has about 5 power cords (printer, scanner, system enclosure, speakers, monitor).
19- Surge suppressor - Provides outlets for all the power cables. Keeps power surges from frying the expensive computer equipment. A UPS (uninterruptable power supply) can look like a fat surge suppressor but has batteries in it to keep the computer running through brief power outages. A UPS generally provides the protection of a surge suppressor too. A power strip looks much like a surge suppressor, but only provides power outlets, no surge protection.
20- Monitor cable. - Connects the video card to the monitor. Sometimes a permanent part of the monitor, sometimes separate.
21- Network cable.- That web cam isn't going to be very interesting without the network connection.
22- Network devices - e.g. cable modem, router. Connects the computer to the Internet.

Help with VB6 to VB.NET conversion!?




RjSowden


I'm asking this because I don't know anything about VB6 (It was around before I was born), and theirs no point in me having to spend 6 weeks learning all the functions ect... when their are others with a much better understanding who will get it right first time.

I need to convert this code :

Private WindowWidth
Private WindowHeight
Private threshold
Private rgbvalue

Private Sub Form_Load()
'
WindowWidth = 320
WindowHeight = 240
myy = 1

End Sub

Private Sub Timer1_Timer()

Dim R As Long
Dim G As Long
Dim B As Long

Dim myx
Dim myy
Dim rgbvalue

threshold = Slider1.Value '1600000 '3876853 'Reverse BGR hex value for a red colour
Text1.Text = threshold
threshold = 1585276

myy = 1

mynumber = 1
mytextnumber$ = mynumber

Form1.Picture3 = LoadPicture("D:\Colin Ord\3d scanner\3D Scanner RT 2009\rgb.jpg")

mytextnumber$ = "D:\Colin Ord\3d scanner\3D Scanner RT 2009\" & "1.jpg"

On Error GoTo ErrorHandler

ErrorHandler:
If Err.Number = 53 Or 481 Then
'Debug.Print "Some problem with loading jpg image."
Resume Next
End If

Picture1 = LoadPicture(mytextnumber$)

For xcnt = 0 To WindowWidth
If Picture1.Point(xcnt, 30) > threshold Then '100000 Then
origin = xcnt

GoTo start:
End If
Next

start:

For myy = 0 To WindowHeight

For myx = 0 To WindowWidth
If Picture1.Point(myx, myy) > threshold Then '1000000 Then
GoTo here:
End If
Next

here:

Picture1.PSet (myx, myy), RGB(255, 255, 0)
Picture1.Line (0, 30)-(WindowWidth, 30), RGB(0, 255, 0)

If Form1.Picture3.Point(myx, myy) > 100000 Then
rgbvalue = Form1.Picture3.Point(myx, myy)
End If

rotx = origin - myx
roty = myy * 2
rotz = (rotx + myx) / 2

'Output file
Open "D:\Colin Ord\3d scanner\3D Scanner RT 2009\freescanRGB_object_01.asc" For Append As #1

'Read RGB values from hex pixel colour
R = &HFF& And rgbvalue
G = (&HFF00& And rgbvalue) \ 256
B = (&HFF0000 And rgbvalue) \ 65536

' Aligns scan with laser angle offset and skew
rot = 30 * 0.0174532 '57.29577951
rotzz = rotz * Cos(rot) - myx * Sin(rot)
rotxx = rotz * Sin(rot) + myx * Cos(rot)
rotyy = roty 'myy '/ 2

'create the vertex string - 'X Y Z R G B'
Print #1, ((rotxx + rotx) & " " & (rotyy / 2) & " " & ((rotzz * -2) * 2) & " " & R & " " & G & " " & B)
Close #1

'LASER LINE PREVIEW BOX- Draws each vertex with a red dot.
Picture2.PSet (myx, myy), RGB(255, 0, 0)
Next

End Sub

...Into VB.NET So I can tweak it and put it into my own application. I got it from text right off the internet, so I cant try to import it into .NET and let that convert it for me, because I cant save it. Thanks to everyone who can give advice, and I'll definitely give out a best answer. Thanks so much again in advance!
I do know that the Timer class doe's need a handler. I know VB.NET well. Picture3 defines a picture box control



Answer
It looks like either your code is not complete or there is a reference library that you're going to need for this.

Form1.Picture3 = LoadPicture("D:\Colin Ord\3d scanner\3D Scanner RT 2009\rgb.jpg")

LoadPicture is not defined anywhere in the code you posted. There is also nothing listed here to make the Timer1_Timer sub run.

You're going to have to find the missing parts to this project if you want to use it as written. Otherwise you're going to have to disect it pulling out bits & pieces to make it work for you.




Powered by Yahoo! Answers

Title Post: On this link help find 16 comp. parts and it's function.need help?
Rating: 100% based on 99998 ratings. 5 user reviews.
Author: Yukie

Thanks For Coming To My Blog

No comments:

Post a Comment