Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need the missing code by following instuction! Please HELP ME! a) Write a function called strictOrder that takes in three integers as parameters and
I need the missing code by following instuction! Please HELP ME!
a) Write a function called strictOrder that takes in three integers as parameters and returns the string increasing if they are in increasing order, decreasing if they are in decreasing order, and neither otherwise. Here, increasing means "strictly increasing, with each value larger than its predecessor. The sequence 3 4 4 would not be considered increasing. Use a main function to ask the user for the three numbers and call the strictOrder function. ## Name # Strict Order Program # Function to determine if the numbers are strictly in order or not def strictOrder (numi, num2, num3): # missing code goes here # main function def main() : # missing code needed to ask the user for the numbers # missing code needed to call the strictOrder function # and to store the value in a string variable # missing code needed to print the result to the user main() Navigator and Driver switch roles!! b) Add a function called lenientOrder to your program that takes in three integers as parameters and returns the string "increasing if they are in increasing order, decreasing if they are in decreasing order, and neither otherwise. In lenient mode 3 4 4 would be considered increasing and the sequence 4 4 4 would be considered both increasing and decreasing. Update your main method that asks the user if they would like their numbers to be compared in lenient more or strict mode. Call the proper function accordingly and display the resultsStep 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