a. Design the logic for a program that allows a user to enter 12 numbers, then displays them in the reverse order of entry. b. Modify the reverse-display program so that the user can enter any amount of numbers up to 12 until a sentinel value is entered. ( I really could use more of a pseudocode rather than actual code. also an explanation of each step. The answer I got last time was just c++ code that including a few things we havent even covered in my class yet. )
Below we will just look at the pseudo code to do it
a) We need 12 numbers and store them , then show them in reverse order.
1) int x[12] //declare an array to store 12 elements
2) int number // declare a integer to hold value entered by user
3) do for i =0 to 11 step 4 //we need a for loop to ask user to enter values and loop till 11 as we need 12 values
4) x[i] = number // here in our code we can use printf and scanf to ask user to enter number and scan that value in number and whats shown here is store that number in array.
5) end for //loop ends.
6) do for i = 11 to 0 step 7 // loop from last index to first as we need to show data in reverse order.
7) //here use printf to display x[i] value to console.
b) Could you explain more what is exactly required in b part.
a. Design the logic for a program that allows a user to enter 12 numbers, then...
Design the logic for a program that allows a user to enter 10 numbers, then displays all of the numbers, the sum and average of the numbers. (Use array and loop.) the pseudocode in python please
Design the logic for a program that allows a user to enter 10 numbers, then displays the element number, value in the element, and its squared. The language is Python
Design the logic for a program that allows the user to enter a maximum of 10 numbers. If the use enters a -1 the input loop stops early. The value -1 is not data but a quit flag value that is not entered into the array. Then the program displays the count of the numbers entered and numeric average of the numbers (not including the -1 of course). After display the average of all the entered numbers, the program will...
Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in the array and then display the following data: The lowest number in the array The highest number in the array The total of the number in the array The average of the numbers in the array PLEASE GIVE THE PSEUDOCODE AND CODE IN C PROGRAMMING
write pseudocode to represent the logic of a program that allows the user to enter a value for the radius of a circle. The program calculates the diameter by multiplying the radius by 2, and then calculates the circumference by multiplying the diameter by 3.14. The program outputs both the diameter and the circumference.
Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print the sum of the numbers and their average. >>> totalSum =0 >>> count=0 >>> while True: number=input("Enter a number or press enter to quit:") if number =="": break totalSum += float(number) count+=1...
# C++ Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.
Design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amount. PLEASE MODULARIZED THE CODE PLEASE USE C PROGRAMMING AND ADD PSEUDOCODE
the author's pseudocode it follows this template 3 Design the logic for a program for Nos Encanta Tu Interés credit card company that a) Allows the user to enter their name, credit card number, beginning balane and monthly interest rate b) For the next full year (12 months), 1. Outputs the month number and the balance at the beginning of the month 2. Allows the user to enter the amount of their payment, and the amount of their purchases for...
must be in python p p+ 1 endwhile 2. Design a program that allows a user to enter any quantity of numbers until a negative number is entered. Then display the highest number and the lowest number