Question: Help please Overview Simulate a string checker you often find on web forms to make sure the user only entered digits. Objectives Be able to
Help please
Overview Simulate a string checker you often find on web forms to make sure the user only entered digits. Objectives Be able to use a string method, along with branching. Description Write a program that takes in a string representing an integer as input, and outputs Your input contains only digits if every character is a digit 0-9. Otherwise, your program outputs Your input contains more than just digits Example runs of the program: Enter an integer: 1995 Your input contains only digits Enter an integer: 1995 ! Your input contains more than just digits Enter an integer: 42,000 Your input contains more than just digits Note: This Lab contains hidden test cases. This means that there are some test cases where zyBooks will not show you what it is inputting. nor where your output may be wrong. But if you do the visible test cases properly, you should also pass all of the hidden test cases
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
