Question: Draw a flowchart that reads 1 number as an input and calculates and prints the square of the number . b .Write an algorithm for
Draw a flowchart that reads 1 number as an input and calculates and prints the square of the number
. b .Write an algorithm for part a.
c. Consider that a program must get 10 numbers from input and calculate and print the square of each number. How would you modify your algorithm and your flow char from part a and b to accommodate this new condition?
d .Consider unlike part c, the number of inputs is not clear up front. Your program must get the first number and calculate and print its square. Then program asks user to keep going or quit the program. The program must follow the next step upon the answer of user. Draw a flowchart and write a pseudocode to solve this new condition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
