Question: Write a function called FindLarger that accepts two intarguments arg 1 and In the function, print the larger number on the screen Sample Output: Inside

Write a function called FindLarger that accepts two intarguments arg1 and
In the function, print the larger number on the screen
Sample Output:
Inside the Function, the Larger Number is: arg1 # assuming arg1 is larger
Where the function was called from, print the smaller number on the screen there (i.e., you will RETURN the smaller number)
Sample Output:
Outside the Function, the Smaller Number is: arg2 #assuming arg2 is smaller
Run the function for the following values of arg1 and arg2
arg1=5, arg2=10
arg1=9, arg 2=18
arg1=5, arg 2=5In the last Lab you (should have) created the FindLarger function.
In this assignment, modify that function in the following manner:
Inside the FindLarger function, when you decide which parameter is smaller/larger, send those numbers to ANOTHER function
Name the other function as FindRemainder
Inside FindRemainder...
Find the remainder (if any) by dividing the Larger Number by the Smaller Number
Display the Result as: The Remainder of ____/_____ is _____
The blanks in the previous bullet (____) will be filled by whatever arguments you send, and the result
So you will write two functions FindLarger, and FindRemainder. FindLarger outputs stay the same as the last Lab.
Final Output should look something like:
Inside the Function, the Larger Number is: _____
The Remainder of ____/_____ is _____
Outside the Function, the Smaller Number is: _____

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!