Question

Astronomy helper Create an application that displays the following menu: select a planet 1. Mercury 2....

Astronomy helper

Create an application that displays the following menu:

select a planet 1. Mercury 2. Venus 3. Earth 4. Mars 5. exit the program Enter your selection. When the user selects a planet from the menu, the program should display data about the planet's average distance from the sun, the planet's surface temperature. Use the following data in your program: Mercury Average distance from the sun ---------- 57.9 million kilometers Mass---------------3.31 x 10^23kg surface temperature------------ -173 to 430 degrees Celsius Venus Average distance from the sun----------- 108.2 million kilometers Mass--------------- 4.87x10^24 kg surface temperature------------ 472 degrees Celsius Earth Average distance from the sun----------- 149.6 million kilometers Mass--------------- 5.967x10^24 kg surface temperature------------ -50 to 50degrees Celsius Mars Average distance from the sun----------- 227.9 million kilometers Mass--------------- 0.6424x10^24 kg surface temperature------------ -140 to 20 degrees Celsius

Pseudocode and flowchart Programming!!!!! help needed. Thanks

0 0
Add a comment Improve this question Transcribed image text
Answer #1

PSEUDOCODE:

START
Declare int planet
Print " Select a planet\n
1. Mercury\n
2. Venus\n
3. Earth\n
4. Mars\n
5. exit the program\n
Enter your selection: "
Input planet
  
If planet == 1
Print " Mercury\n
Average distance from the sun: 57.9 million km
Mass: 3.31 x 10^23 kg\n
Surface temperature: -173 to 430 degrees Celsius"
Else If planet == 2
Print " Venus\n
Average distance from the sun: 108.2 million km
Mass: 4.87 x 10^24 kg\n
Surface temperature: 472 degrees Celsius"
Else If planet == 3
Print " Earth\n
Average distance from the sun - 149.6 million km
Mass: 5.967 x 10^24 kg\n
Surface temperature: -50 to 50 degrees Celsius"
Else If planet == 4
Print " Mars\n
Average distance from the sun: 227.9 million km
Mass: 0.6424 x 10^24 kg\n
Surface temperature: -140 to 20 degrees Celsius"
Else If planet == 5
Print "Good Bye!"
Else
Go to START
END

FLOWCHART:

Add a comment
Know the answer?
Add Answer to:
Astronomy helper Create an application that displays the following menu: select a planet 1. Mercury 2....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • school required its students to wear uniforms, the pass rate in math increas und percentages to...

    school required its students to wear uniforms, the pass rate in math increas und percentages to the nearest tenth] percen 3 points] ent to 71 percent. The new pass rate ispercentage points above the old b) The new rate is percent more than the old rate c) The new pass rate ispercent of the old pass rate. Problem-16: In also may have mentioned that the scale factor was about 1 to 160 million. Use the follow the exact scale factor:...

  • VISUAL STUDIO - WINDOWS FORM APP (C#) - PLEASE MAKE SURE TO SHOW ALL CODE &...

    VISUAL STUDIO - WINDOWS FORM APP (C#) - PLEASE MAKE SURE TO SHOW ALL CODE & ANSWER/FOLLOW ALL THE QUESTIONS IN THE ASSIGNMENT! Planet Info Help When planning this project, review the concept of accessing object properties on another form. Form2.IblMessage.Text = "1122.25" or you can put a string or object instead of numbers You can then create one form for the Planets information and set all the properties before you display the Planet Form For the pictures of the...

  • Page 3 of 6 10. Which of the following is correct? a) The rotation axes of...

    Page 3 of 6 10. Which of the following is correct? a) The rotation axes of planets are always perpendicular to their orbital plane (the ecliptic). b) No planet's orbital inclination is more than 20 degrees from the ecliptic. c) Planets orbits are circular. d) Planets always rotate and revolve in the same direction. 11. Which of the following is not a real difference between asteroids and comets? a) Asteroids are made mostly of rock and comets are made mostly...

  • 3) Consider the planet Mercury which has mass 3.34 x1023 kg, radius 2.44x10 m, semimajor axis...

    3) Consider the planet Mercury which has mass 3.34 x1023 kg, radius 2.44x10 m, semimajor axis 5.79x1010 m, and eccentricity .206. a) What is the acceleration due to gravity on the surface of Mercury? b) What is the escape velocity from the surface of Mercury? c) Calculate the force exerted on Mercury by the sun at its perihelion and appihelion. d) What are the perihelion and appihelion velocities of Mercury? e) What is Mercury's angular momentum at these two locations?...

  • In a newly discovered exoplanetary system one planet orbits its star in 56 days with an...

    In a newly discovered exoplanetary system one planet orbits its star in 56 days with an average orbital radius of 107,588,122 kilometers. It is observed that another planet in the same system has orbital period of 373 days. What is its average orbital radius of the second planet? Express your answer in kilometers, use scientific notation and round the coefficient to two decimals. In a newly discovered exoplanetary system one planet orbits its star in 57 days with an average...

  • 11. Which of the following does the atmosphere of Mercury contain? a) Sulfuric acid b) Methane...

    11. Which of the following does the atmosphere of Mercury contain? a) Sulfuric acid b) Methane gas d) Mercury has no atmosphere of any kind c) Oxygen and nitrogen e) none of the above 12. Knowing that it takes about 8 minutes for the sun light to reach the earth, approximately how long does it take for the sun light to reach the planet Saturn? a) 8 minutes b) 40 minutes c) 3 hours and fifty minutes d) five hours...

  • Before you start doing this code Read carefully there is a format that you have to...

    Before you start doing this code Read carefully there is a format that you have to follow HERE IS THE FORMAT YOU MUST USE FOR HW #2 - NOTE THE IF ELSE IF...not IF IF IF HW #2 Format : Instructions: This program will generate some information for a user about interplanetary travel (pretend we can travel easily to other planets for this problem). This program will perform calculations concerning weight on various planets as well as travel time between...

  • 2) Planet Velocities and Energy (10 pts) We talked about how planet formation involves the collisions...

    2) Planet Velocities and Energy (10 pts) We talked about how planet formation involves the collisions of bodies (planetesimals, embryos) leading to the growth (and heating) of a planet. Let's think about the velocities and energies involved here. a) The speed of a body in its orbit around the Sun is given by the equation V2= GM.[(2/r) - (1/a)] Here Vis the speed of the body in m/s, G is the gravitational constant, M. is the mass of the Sun...

  • The drilling technique known as ________ is causing much controversy in drilling oil shales. Panning Scrubbing...

    The drilling technique known as ________ is causing much controversy in drilling oil shales. Panning Scrubbing Fracking (hydraulic fracturing) Horizontal drilling Which of these elements may be the fuel of the future? Oxygen Hydrogen Helium Carbon Ohio has a lot of coal. What grade is it? Lignite Anthracite Bituminous Sub-bituminous In Ohio, the entrances to abandoned underground mines are cleaned and barred so _______ can live in them. Ground hogs Bats Raccons Moles As the solar system was forming, _________...

  • Find the force of gravity býtween a object (mass = 9.0 kg) and another planet (mass=8.6*10^...

    Find the force of gravity býtween a object (mass = 9.0 kg) and another planet (mass=8.6*10^ 23 kg) when the planet at its closest to Earth dis * tan c * e = 9.2x 10^ 10 m) . Express your answer to two significant figures and include the appropriate units. Using the formula for gravity, find the force of gravity on a 6.1 kg mass at Earth's surface. (The mass of Earth of 6*10^ 24 kg , and its radius...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT