Question: Only Pseudocode!!! No Java or other languages An astronomy application displays information about the eight planets in our solar system. Write the logic for this

Only Pseudocode!!! No Java or other languages
An astronomy application displays information about the eight planets in our solar
system. Write the logic for this application in pseudocode:
a. Visit this web page: https://sciencing.com/order-planets-distance-sun-
8371065.html
Note I made a list from closest to farthest, so you didnt have to visit website
Mercury = 36 million miles from sun, Diameter = 3031 miles
Venus= 67.2 million miles from the sun, Diameter =7,521 miles.
Earth = 93 million miles away from the sun, Diameter = 7,926 miles
Mars = 483.6 million miles away from the sun, Diameter = 4,222 miles
Jupiter = 483.6 million miles away from the sun, Diameter = 88,729 miles
Saturn = 886.7 million miles away from the sun, Diameter =74,600 miles
Uranus = 1,784.0 million miles away from the sun, diameter = 32,600 miles
Neptune = farthest planet from the sun at 2,794.4 million miles, Diameter = 30,200 miles
b. Note down each planets name, distance from the sun, and diameter
c. Write the program such that it:
i. Displays a numbered list of the planets that includes
1. Planet number (1 is the planet closest to the sun and 8 is the one farthest from it)
2. Planets name
3. Distance from the sun
4. Diameter
Here is a sample of the required format of output: Planet #1: Mercury is 36 million miles from the sun and has a diameter of 3031 miles
ii. Allows the user to enter the number of any planet, and displays output similar to that shown above, for that planet, e.g., if the user entered 1, the output would be the sentence shown above. If the user enters an invalid planet number, such as zero or 9, the program must display an error message.
iii. Allows the user to enter the numbers of any two planets, and outputs both their names as well as their distance from each other. If the user enters an invalid planet number, such as zero or 9, the program must display an error message.
Note: (ii) and (iii) above must be accomplished without any search being
performed
Here are some examples of this chapter
 Only Pseudocode!!! No Java or other languages An astronomy application displays
information about the eight planets in our solar system. Write the logic
for this application in pseudocode: a. Visit this web page: https://sciencing.com/order-planets-distance-sun- 8371065.html
Here is example of another person but I didnt see step iii and looks like some was in Java.
Note I made a list from closest to farthest, so you didnt
have to visit website Mercury = 36 million miles from sun, Diameter

Chapter 6 ExamplespdTX + 1 of 7 Programming Exercise 1, page 267 Design the logie for a program that allows a user to enter 12 numbers, then displays them in the reverse order of their entry a. Answer: start Declarations Declare a constant for the size of the array num count num index num MAX num numbers [MAX NUMBERS] . 0,0,0,0,0,0,0,0 -12 Declare the array. fill it with zeroes output "elcome to the Reverser." output This program will accept a set of ", MAX NUMBERS numbers and display them in reverse order of entry" Set count to zero, which accomplishes two things I. Set our ruming count of spots in the array that have currently been used to zero (we have not used any spots yet) The count variable will also be used to keep track of which array index we will be using next. Right now, since we have yet to store anything in the array, we are at index zero. count0 2. Type here to search

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!