sfurlow2 0 Light Poster

For our class, we're supposed to simulate a moon lander program. For a given starting value for the height (200 feet above the surface), amount of fuel (100 pounds of fuel), and velocity (0 ft/sec), we're supposed to simulate a ship landing on the surface of the moon, depending on whether or not the user wants to fire the ship's rocket boosters (it adds a random number between 2.5 and 3.5 to the velocity, but decreases the ship's fuel supply). This program operates on virtual seconds (one second passes every time the user inputs whether they want to fire the boosters or not). I pretty much have the calculations figured out. The problem is that we're supposed to do a visual representation of the ship landing on the surface. There must be a minimum of 20 lines used, and as many lines as we want. Every virtual second, a representation must be shown on the screen of approximately where the lander is with respect to the surface of the moon, using the height that is calculated. Can anyone help me with how to represent the ship on the screen? The furthest progress we've made in class so far is fairly simple functions, so please, nothing too complex. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.