Question
I need help coding this assignment in python input In the input phase of the program, set the console title to Program Name, display a
I need help coding this assignment in python
input
In the input phase of the program, set the console title to "Program Name", display a formatted banner and then prompt the user for the limit to the prime numbers they want displayed. This input must be a whole number between the range of 2 and 100 inclusive. Should the user enter something invalid, then display an appropriate error message that describes the problem and then give the user the opportunity to input the limit again. Also, make sure that no data processing occurs until the user enters a valid input.
output
Only after getting a valid input, the program will calculate a list of prime numbers starting at 2, going up to the limit the user entered. Start by clearing the console window and displaying a formatted banner as per the example below. In addition to displaying the prime number numerically, you will also display a bar of '#' characters to represent the number. For example, the prime number 2 would be represented as "## 2".
Enter a number between 2 and 100: covfefe Error - Input must be a whole number. Enter a number between 2 and 100: 5.5 Error - Input must be a whole number. Enter a number between 2 and 109: 5000 Error - Number must be between 2 and 180. Enter a number between 2 and 100: 1 Error - Number must be between 2 and 108. Enter a number between 2 and 100: LAMPIC The following output screen example shows what your program should produce if the user entered limit was 25; Match this as closely as possible (colours optional): == Prime Numbers up to 25 == 2 3 ###5 7 ## ### # 1 un 11 ### 13 17 19 ### 23 Press [enter] to exit... Style Guide and DocumentationStep 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