Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to continuously receives an entry from a user, and then: a. If the user entry is an string, count the number of
Write a program to continuously receives an entry from a user, and then: a. If the user entry is an string, count the number of vowel letters (A,E,I,O,U) and print it. For example: If user enters "Hello Friends" The number of vowels include: 3 (e o i e) b. If the number is float, calculate the number of decimal places For example: If user enters 1.98765456 The number of decimal places will be: 8 c. If the number is integer and is even, the program should stop working. For example: If user enters 10 The program should stop d. If the number is odd, find the list of factors. For example: If user enters 15 The factors include: [15,5,3,1,1,3,5,15] Note: you can assume that user enters the string in quotations
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