Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Weekly Assignment 1

The escape speed s (in metres per second) from the surface of a uniform solid spherical asteroid can be calculated
using the formula
s =

8GR
2
3
where G = 6.67310
11
Nm
2
/kg
2
is the universal gravitation constant, is the density of the asteroid in kilograms
per cubic metre, and R is the radius of the asteroid in metres.
Write a C# program to compute the escape speed from an asteroid of radius 900 m with density 6000 kg/m
3
.
Your program should output the computed escape speed to the console window.
You do not need to use any comments in your programs source code for this assignment, although normal
practice would be to comment variables with their units and report units on output quantities.
Once you have designed, compiled, and tested Weekly Assignment 1 to your satisfaction, rename the file as
wa1.txt and upload the file to the Weekly Assignment 1 dropbox as a plain text file. If you accidentally submit an
incorrect solution, you may submit another solution without penalty prior to the assignment deadline.
1 ECE 150Fall 2013
WilliamBishop, George Freeman, Paul Ward

You might also like