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
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
Get step-by-step solutions from verified subject matter experts
