For this assignment create pseudocode for a program that


For this assignment, create pseudocode for a program that asks the user for two numeric values, adds them together to find the sum, and then displays the result. As this chapter focuses on modularization, your solution is required to use separate methods for computing the sum and displaying the result. Therefore, create a separate method called computeSum that receives 2 numeric parameters, adds them together, and returns the result. Notice that this is similar to the computeTax method referenced in the "Before you begin" section above. Also create a separate method called displayValues that receives 3 numeric parameters and displays them for the user. In the main program, after declaring your variables, input a value for each of the two numbers from the user. Then call your first method called computeSum in order to calculate the sum. Notice that you will have to pass in the two numbers to method computeSum (values passed are called arguments). In the main program, after receiving the result from computeSum, insted of directly displaying the result, call method displayValues to display the values of the first number, the second number, and the sum. Remember to pass 3 arguments to the displayValues method.

Requirements: For full credit, make sure that your solution - in addition to the main program - has 2 methods defined. One calculates a sum and one displays the values of the numbers as well as the sum. Ensure that you have called each of these two methods from the main program.

Solution Preview :

Prepared by a verified Expert
Business Management: For this assignment create pseudocode for a program that
Reference No:- TGS02291927

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)