Interview Question in Visual Studio 2005
Interview Question :: Could comeone please help me with this please and yes i spent hours reading and trying it (really need help) |
It is a visual basic application , i am unsure how to start it that is my problem i know what has to be done but cant think of a proper way to write the code could some please help me though it.
here it is:
Write a VB.NET console application to calculate the volume (v) of a sphere given its radius (r). Name the solution Volume. Use the following formula: v = 4/3 p r3.
Have the program read in the radius from the user. The output screen should look as follows:
Volume Program
**************
By your name
Please enter the radius: 9.9
For a radius of 9.9, the volume is 99.9
Program Specifications:
• Use s value of PI (create as a constant in your program)
• The radius and volume can have decimal places (use data type double)
note using Microsoft Visual Studio 2005 |
|
|
|

Loading ...