Question: 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,

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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!