Your main() function will call an input function (to input the numbers), a sorting function (to sort the numbers), and output function (to display the results sorted numbers). Accordingly passing any values as needed between all functions.Write one input function to input one number, returning that value via the return statement to the calling function. You will nto call tfunction 4 times to get all 4 values. (no reference parameters, pass by value parameters are okay, int function type).Write a sort function that sorts the 4 numbers from least to greatest. You may want to also use the swap function at the end of 9/16/2015 lecture to help. (must use reference parameters, no pass by value parameters, void function type)Write an output function to display the numbers sorted. (pasa by value parameters, void function type)Example program run:Tprogram will sort four numbers, from smallest value to the largest. When prompted, please enter four numbers.Please Enter Number 1: 44Please Enter Number 2: 33Please Enter Number 3: 22Please Enter Number 4: 11The Numbers Ordered: 11, 22, 33, 44.Grading criteria: 20 pts.no global variablesprogram must use a function with reference parameters,program must use a function that returns a value with a return statementprogram must be indented correctly,use meaningful variable and function names,produce correct output,use comments at beginning,use comments for each program component,use comments for each functionprint user instructions outuse comments throughout to document what is happening.
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]