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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started