// Program name: Numbers Functions // Purpose: Performs four arithmetic operations on two numbers // Author: Courtney Credle // Date last modified: 08-July-2017 Start // Declare variables Declare Numeric(num1, num2) // two numbers entered by user Declare Numeric sum // sum of two numbers Declare Numeric pro // product of two numbers Declare Numeric quotient // result of dividing two numbers Declare Numeric Modulus // result of modulus two numbers // Display program heading. ask for two numbers Display "This program performs arithmetic operations on the two numbers you enter." Display "Please enter the first number:" Input num1 Display "Please enter the second number: " Input num2 // Call the four modules, display the results sum = additional(num1,num2) Display "The sum of the two numbers is: " + sum pro = multiplication (num1,num2) Display "The product of the two numbers is: " + prod quotient = division(num1,num2) Display "The quotient of the two numbers is: " + quotient mod = modulas(num1,num2) Display "The modulus of the two number is: " + mod Stop Function Numeric addition(Numeric n1, Numeric n2) // Declare variables Declare Numeric result result = n1 + n2 Return result End Function Function Numeric multiplication(Numeric n1, Numeric n2) // Declare variables Declare Numeric result result = n1 * n2 Return result End Function Function Numberic division(Numeric n1, Numeric n2) // Declare variables Declare Numeric result result = n1 / n2 Return result End Function Function Numeric modulus(Numeric n1, Numeric n2) // Declare variables result = n1 % n2 Return result End Function // Thank the user and end program Display" Thank you!"