Question: PROVIDE FLOWCHART FOR EACH QUESTION Develop a flowchart and write a complete program that has one (1) function name Calc_Sqrt that calculate the square root
PROVIDE FLOWCHART FOR EACH QUESTION



Develop a flowchart and write a complete program that has one (1) function name Calc_Sqrt that calculate the square root of the input number from user in main function. Then, the function return the calculated square root value to main function to display. Expected output: The program will calculate the square root of the entered number Enter a number: 4 The square root of 4 is 2 Process exited after 3.579 seconds with return value o Press any key to continue ... You wish to create a simple educational game for pre-school children to learn number sorting of either descending or ascending. Develop the flowchart and write a program only supports 2-number sorting. Firstly, the program asks user for a preference, either descending (enter d' or 'D)' or ascending (enter a' or 'A'). Then, it asks user to enter 2 numbers to sort. Finally, it displays the sorted numbers in the preferred order. The entire process should consists of 4 user-defined functions as follows: i. Get user-preferred ordering . Get numbers . Process number ordering iv. Display the user-preferred order Example Output Display for user inputs (in red): Type your sorting preference? D Now, enter 2 numbers for sorting: 42 93 The descending order is 93 42 Write a program that performs arithmetic division. The program will use two integers, a and b (obtained from user), perform the division a/b and display the result of the division. Your program first asks user for the 2 integers in a function (Hint: use pass by reference). Then runs the calculation in another different function (Hint: you may use pass by value) and display the result in another function. Develop flowchart and write the complete program. Expected output: Enter two integer numbers: 6 3 The result of 6 / 3 is 2 Process exited after 9.303 seconds with return value o Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
