Question: You are required to write an interactive program that prompts the user for two integers A and Y and performs the following tasks: Adds two

You are required to write an interactive program that prompts the user for two integers A and Y and performs the following tasks:

Adds two numbers and stores them into X and Y.

Subtracts Y from X.

Multiplies X and Y.

Divides X by Y.

Finds which numbers is larger.

Finds the average of X and Y.

Prints all the results

Program requirements:

- You must submit a structure chart (must be drawn using a MS office or another application) indicating the pictorial solution with all functions and the main.

- The program must contain 8 functions using necessary parameters. These functions include a function to read and 7 other functions to perfume each of the above tasks.

- The program should be fully documented.

- You must submit a hard copy of the source and a properly labeled output.

- You should submit a digital copy of source code (in class).

- Test your program for different values using different set of data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!