Question: Only Pseudocode!!!! No Java or other languages This questions is dealing with Arrays from chapter 6 from programming logic and design book. A rental car
Programming Exercise 1, page 267 a. Design the logic for a program that allows a user to enter 12 numbers, then displays them in the reverse order of their entry. Answer: Pseudocode start Declarations Declare a constant for the size of the array num count num index num MAX NUMBER = 12 num numbers(MAX NUMBERS] . 0,0,0,0,0,0,0,0, 0,0 Declare the array fill it with zeroes output "Welcome 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 wo things Set our running count of spots in the array that have currently been used. to cero (we have not used any spots vet) The count variable will also he used to keep track of which array index we will he using next. Right now, since we have yer to store anthing in the array, we are at index zero l. count O 2. Programming Exercise 1, page 267 a. Design the logic for a program that allows a user to enter 12 numbers, then displays them in the reverse order of their entry. Answer: Pseudocode start Declarations Declare a constant for the size of the array num count num index num MAX NUMBER = 12 num numbers(MAX NUMBERS] . 0,0,0,0,0,0,0,0, 0,0 Declare the array fill it with zeroes output "Welcome 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 wo things Set our running count of spots in the array that have currently been used. to cero (we have not used any spots vet) The count variable will also he used to keep track of which array index we will he using next. Right now, since we have yer to store anthing in the array, we are at index zero l. count O 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
