Question: Include: Main loop that asks for any string Handling of all possilbe exit commands Checking of symmetrical string and printing message Printing of message with

Demonstrate a flow chart and display a program in Python that calculates 

Include:

Main loop that asks for any string

Handling of all possilbe exit commands

Checking of symmetrical string and printing message

Printing of message with string lenght and string in reverse

Testing: You have tested your program for atleast one set of values

Comments: Add necessary comments to explain the process

the value of ffrom the following equations. Prompt the user to enter 

Demonstrate a flow chart and display a program in Python that calculates the value of ffrom the following equations. Prompt the user to enter values for a, b0, d, and n. Add appropriate checks to make sure that all of them are positive integers. Please note that is a summation symbol, which can be implemented using loops. The loop limits are given as i=1 to i=n. Also, note that bi-1 is not a separate variable. It is the value of same b variable from the last iteration of the loop. For example, if user enters the value for 60 to be 5, then for i=1: 6b1 = 61 -1 +3 and b1-1 = b0 so b1 = 5+3=8 Draw the flow chart first and then implement your flow chart in Python. Include: A flow chart that shows the complete process to solve this problem User Input and Validation (if the input is not a correct print descriptive error) Code to calculate bi Summation Implementation and display the output Testing: You have tested your program for at least one set of values Comments: Add necessary comments to explain the process Question 2: Demonstrate a program in which you ask user to enter a string in a loop. If user enters 'Exit' then you print an "Exiting, good by" message and finish the execution of program. If user enters a symmetrical string then your print the message "Its a Palindrome!" and then programe continues for next input. If user enters any other string you print the length of the string and the string in reverse order and then program continues to ask user for a new string. Please note the following: A string is symmetrical if string is equal to its reverse string (eg: ama, abba, ambma, etc (there are infintly many such strings)). Your prorgam should exit when user enters word exit with any combination of Upper and Lower case letters (eg: Exit, exit exit, exIT etc are all valid exit commands) Exiting the program means terminating the execution. This can be implemented using break statement in the loop. please do not use exit() function in jupyter becasue it kills the kernel.

Step by Step Solution

3.39 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Question 1 Flowchart Start Input values for a b d and n Check if all inputs are positive i... View full answer

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 Programming Questions!