Sunday, May 10, 2009

The speed of light in a material is 0.48 c. What is the critical angle of a light ray at the interface between

the material and a vacuum?





a) 23 degrees


b) 29 degrees


c) 26 degrees


d) 20 degrees

The speed of light in a material is 0.48 c. What is the critical angle of a light ray at the interface between
The nearest answer is b.) : 29 degrees





That is because the angles of incidence ' i ' and refraction ' r ' are connected by Snell's Law:





n_i sin i = n_r sin r ; (N)





here, ' n_i ' and ' n_r ' are the corresponding "indices of refraction." Indices of refraction themselves satisfy:





c_n = c / n,





wher c_n is the speed of light in some given medium.





Because of this inverse speed relationship, (S) can be rewritten:





(sin i) / c_i = (sin r) / c_r , or sin i = (sin r) [c_i / c_r] . (S)





The critical angle ' i ' of a medium with a vacuum occurs when sin r = 90 deg., that is sin r = 1. So the angle is given by sin i = [0.48c] / c.





Thus i = sin^(-1) 0.48 = 28.685... degrees --- or 29 degrees, when rounded to the nearest degree.





Live long and prosper.

thank you cards

I want to write a program in C# which can interface to hyperterminal. Is this possible?

You know all of Windows tools have at least one DLL or Windows Service.


just you should find DLLs or Windows Services that hyper terminal uses them.


in your project reference them via "AddReference", then use the methods and functions of them.





You can search for the dll at "assembley" folder of your windows path

I want to write a program in C# which can interface to hyperterminal. Is this possible?
One way i have done to communicate with hyperterminal is to invoke the use of Win32 APIs...Depending on what you want to do with hyperterminal you may have to actually "inject" a DLL into its running process so that your DLL can have funn access to hyperterminal. However, if you just need to do certain types of actions you may not need to inject and can just invoke Win32 Apis directly from your other C# program..





To get access to Win32 Apis you need to check up a think called "P/Invoke" ... I've found that if i need to inject my DLL though i would find it easier to use C++ and comminucate with it using C# (while the DLL was injected) through a special Windows Message to communicate between apps...cant recall its "WM_" constant though...
Reply:the question is, why would you want to talk to hyperterminal. you can use .net's implementation of TAPI to use a modem programatically.





or you can use System.Net.Socket to talk to a telnet shell.





Makes no sense to use interop/pinvoke when you can code it the .Net way.


How to interface the USB port using C++?

I'm doing assignment on bluetooth and I'm using C++ as a tool to establish communication between my computer to the bluetooth module. I'm having problem to send data to the Bluetooth dongle (attached to the USB port) from the application developed using Visual C++. Your help on this topic is highly appreciated. Thank you.

How to interface the USB port using C++?
Search for "Bluetooth API" should give you some ideas. Do NOT access hardware directly if you don't have to!


How can creat a graphical interface by using C language?

who can creat a graphical interface by using C language? I need your help . Thank you very much!!! Can you give me an example?

How can creat a graphical interface by using C language?
Using a third party library.





http://en.wikipedia.org/wiki/Widget_tool...





Google terms: Widget toolkit, GUI toolkit, Win32 API, MFC, Winforms, GTK+, QT, FLTK, WxWidgets, etc.
Reply:I have been using Qt for a few months and like it. It is C++ not C though. There is a free version or a paid version if you are going to sell your code. It runs on windows, linux, and mac so your code could be portable. What are you doing with it? That will help you narrow it down.


How can somebody with minimal visual c++ programming knowledge create a web interface for a database?

I have a database on a local server and I want to export it's fields on a web page so anybody be able to edit and delete data from that database.are there any templates on the internet?where?

How can somebody with minimal visual c++ programming knowledge create a web interface for a database?
You only need a little bit of Visual studio and ASP.NET experience if you already have the database. But it's a good idea to use templates, save lots of time. I'm looking for one right now for my LAMP project, even my tutor prefers templates and doesn't require programming knowledge. There are thousands of templates and designs on the web and many are free. Here is a website for free templates you might like :


http://www.flashtemplatestore.com/free-t...

potential breakup song

How to interface java and C++ ?

I have a java/swing interface and C++ processing engine. How I execute C++ program from JAVA ? Right I have shell script in which java compiles C++ and writes the output to a file and JAVA reads it from there. Is there any better and elegant solution ?

How to interface java and C++ ?
JNI isn't strictly necessary here. There are other solutions that might work better for you. One is simply calling the executable from Java -


http://www.rgagnon.com/javadetails/java-...





Another is using XML-RPC. I've taken this route in the past when building processing engines in C++ because the engines stays loaded in memory and doesn't have to reside on the same machine.





From Java -


http://www-128.ibm.com/developerworks/xm...





From C++ -


http://xmlrpc-c.sourceforge.net/





Much of the XML-RPC stuff has been replaced by web services, but XML-RPC is much simpler and is very light weight.
Reply:You'll have to use JNI. It's not easy, but it can be done. Check out the link below for more information. You may need to google for tutorials and further data.


What component controls the network interface card of a P C?

No internet connectivity via an ethernet connection even when the NIC is replaced. Tried a second PCI slot without positive results. Please advise an alternative to resolve this connectivity issue;


Thank You


Tony

What component controls the network interface card of a P C?
The component that controls your NIC card is the BIOS of your motherboard. I would first check device manager and make sure your NIC card is identified (and has correct drivers) and is enabled. Second I would check your BIOS and make sure that your settings are correct for a PCI NIC card. Then make sure your cable is not defective. Make sure you have an incoming signal (power off/on modem and router)


If all is right and you have tried 2 different PCI slots then I would guess your card is fried. Try another.
Reply:you have to make sure you have the right driver installed, if you have a dell you can go to there website and download it for free,


just choose your model and your problem and download it


ifyou have already downloaded the driver then i dont know
Reply:First, I would look in the Device Manager to see if the NIC card appears, or if there is a yellow FLAG associated with the driver. If this is OK, then I would move on to software issues.





Let's assume that you are using Windows 2000 or Windows XP or Windows Vista. If you are using anything OLDER than that... consider spending time looking for a new computer.





Go into the Control Panel and open Network. Look at the adapter's protocols. You should have TCP/IP in the list. Click on that and look at the PROPERTIES. For most providers, you want AUTOMATIC, instead of static settings.





Open the Command Prompt, and use these commands to see if your Router or Provider is assigning you a proper IP.





type this, followed by the ENTER key:





ipconfig





You should see figures like this:





Ethernet adapter Local Area Connection:





Connection-specific DNS Suffix . :


IP Address. . . . . . . . . . . . : 192.168.1.104


Subnet Mask . . . . . . . . . . . : 255.255.255.0


Default Gateway . . . . . . . . . : 192.168.1.1





If you HAVE a Gateway address, then you should be working. Maybe you have to UNPLUG the Modem or Router for a few moments, so it LOGS in for you.





Good luck and Happy Computing!
Reply:Make sure your PCI slot is the exact type..


x1, x4,x8, x16... Most likely a 5 volt 32bit..
Reply:Check the cable. If connecting to a switch or router it must be a standard LAN cable, if to another computer it must be cross-over.
Reply:Hi





What are networking?





Since you tried replacing the nic card, You could try:





1. Reinstall device driver


2. Replacing the rj45 cable


3. Check that the hub etc you are connecting it too is working and not faulty.





Hope that helped


How to design a good API(applicaton programming interface) for a application in c++?

I want to know the best programming practice to program API (applicaton programming interface)

How to design a good API(applicaton programming interface) for a application in c++?
Create a couple of sample mini-applications that actually use the API. That will show you what users of the API want to call.


C++ Development Interface. Any recommendations?

I'm starting into some C++ tutorials and now I'm looking for a "Development Interface". It's kinda like a dreamweaver but for C++. Got any recommendations?

C++ Development Interface. Any recommendations?
use borland c++ or visual studio 2005 tht's the best ,..jordan told u about dev c++ ,..tht's not best for c++,. it is best for c..


anyway search for borland c++ on google or go borland.com and download the older version vich is borland 5.5
Reply:http://www.eclipse.org/cdt/


http://www.kdevelop.org/
Reply:The following have been recommended by Bjarne Stroustrup.





* Apple C++. It also comes with OS X on the developer tools CD.


* Bloodshed Dev-C++. A GCC-based (Mingw) IDE.


* Borland C++


* Cygwin (GNU C++)


* Digital Mars C++


* MINGW


* DJ Delorie's C++ development system for DOS/Windows


* GNU CC source


* Intel C++ for linux


* The LLVM Compiler Infrastructure (based on GCC).


* Microsoft Visual C++ Toolkit 2003


* Sun Studio.
Reply:I would download Dev c++, this is by far one of the best c++ editors. just google it. hope this helps.

love song

What is the programming code to interface the USB port using Visual C++?!?

I'm a student and doing my final year project in my university. This assignment requires me to transmit data/signal from the computer (prompt by the user via Graphic User Interface, developed using visual C++) to the Bluetooth dongle at the USB port.





I've completed doing the GUI and I'm having problem to make the data/signal able to transmit to the Bluetooth dongle attached at the USB port.





I look forward for ideas and opinions in getting the right programming code or method to fulfill the task.





Thank you.

What is the programming code to interface the USB port using Visual C++?!?
check out http://www.pscode.com for great source code samples.
Reply:Depending on what you want to do it may be a case of using the driver that came with the dongle to send the message using one of the protocols supported (bluetooth serial, OBEX or TCP/IP).





Otherwise, try here: www.usb.org


How to build robotic servo with standard Radio Controlled (R/C) interface?

Does anyone know where I can find instructions on how to build high torque robotic servo. I have purchased the most powerful R/C servos available and need more torque and travel. So I'm looking at building my own from scratch. I basically need it to function like a regular R/C servo but with much more torque and travel and it needs to plug into a standard R/C receiver. Thanks, Kevin.

How to build robotic servo with standard Radio Controlled (R/C) interface?
There is a magazine I found at the Barnes %26amp; Nobel bookstore about making robots. It's called SERVO. It's a nice and informative magazine. My son totally enjoyed it.


C# : Interface?

Yes, you can use interface in C#.

C# : Interface?
I don't understand the question
Reply:...yes, you can make an interface using c#?