Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this program, you create an advanced calculator. It should work like below: 1) Your program should keep executing (looping) until stopped by a user.
In this program, you create an advanced calculator. It should work like below: 1) Your program should keep executing (looping) until stopped by a user. 2) When your program is executed, logically it behaves like the following: a. Display a short paragraph to explain how to use your application, including all calculations that can be performed as shown below. Put this paragraph in a rectangular box created using the "+" symbol. b. You can get multiple input using the split 0 Method to ask user to enter the first number x, followed by an operator and then the second number, separated by a separator like ",,". c. The operator can be any one from the following list: + for addition - for subtraction / for division * for multiplication M or % for modulus or remainder calculation D for integer division for exponential calculation d. You need to display the above operator choices in a tabular format similar to this: operator+/meaningadditionsubtractiondivmultiplication e. If instead of entering an expression, the letter S is entered, double check users' intention, "Are you sure? Please enter "Yes" or "No". If "Yes" is entered, exit the program; otherwise "continue" to run the program. 3) Then the output will be displayed like this: The calculation result is: 9mod2=1 (\#Note: the whole expression must be displayed, e.g., 3+5=8 ) 4) After the output is displayed, ask "Do you want to do more calculations? Yes or No." If Yes, loop back to the begining. Otherwise, quit the application. Other Requirements: - Follow the best practice in coding. Include a DocString section in the beginning of your program. - Include comment lines properly in your code to explain major lines of code. - Be sure to follow variable naming rules. - Use proper data types for your variables. - Use blank lines to improve output display. In this program, you create an advanced calculator. It should work like below: 1) Your program should keep executing (looping) until stopped by a user. 2) When your program is executed, logically it behaves like the following: a. Display a short paragraph to explain how to use your application, including all calculations that can be performed as shown below. Put this paragraph in a rectangular box created using the "+" symbol. b. You can get multiple input using the split 0 Method to ask user to enter the first number x, followed by an operator and then the second number, separated by a separator like ",,". c. The operator can be any one from the following list: + for addition - for subtraction / for division * for multiplication M or % for modulus or remainder calculation D for integer division for exponential calculation d. You need to display the above operator choices in a tabular format similar to this: operator+/meaningadditionsubtractiondivmultiplication e. If instead of entering an expression, the letter S is entered, double check users' intention, "Are you sure? Please enter "Yes" or "No". If "Yes" is entered, exit the program; otherwise "continue" to run the program. 3) Then the output will be displayed like this: The calculation result is: 9mod2=1 (\#Note: the whole expression must be displayed, e.g., 3+5=8 ) 4) After the output is displayed, ask "Do you want to do more calculations? Yes or No." If Yes, loop back to the begining. Otherwise, quit the application. Other Requirements: - Follow the best practice in coding. Include a DocString section in the beginning of your program. - Include comment lines properly in your code to explain major lines of code. - Be sure to follow variable naming rules. - Use proper data types for your variables. - Use blank lines to improve output display
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