Question: Lab 3A Write a Python program that adds, multiplies, subtracts, and divides two integer numbers, and displays the results on the screen. The program should
Lab 3A Write a Python program that adds, multiplies, subtracts, and divides two integer numbers, and displays the results on the screen. The program should get the two numbers from the user using the input statement.
Further, the program should define four void functions, as follows: 1. A function to add the two numbers and print the result. The function should use two parameters to receive the numbers. 2. A function to subtract the two numbers and print the result. The function should use two parameters to receive the numbers. 3. A function to multiply the two numbers and print the result. The function should use two parameters to receive the numbers. 4. A function to divide the two numbers and print the result. The function should use two parameters to receive the numbers.
Make a call for each function from your main program passing the two numbers as arguments. Add the following comments to your program. Also, add comments describing the purpose of each function. # Program description: # Author: # Date Written:
Sample input and output of the program is shown below.
Sample Input
Enter the first number: 50
Enter the second number: 25
Sample Output
The sum of the two numbers = 75
The difference of the two numbers = 25
The product of the two numbers = 1250
The division of the two numbers = 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
