Question
Use C# to Problem 1 (50 points): Ask the user to enter a string (e.g. Welcome to Saint Martins U!). Your program should count and
Use C# to
Problem 1 (50 points): Ask the user to enter a string (e.g. Welcome to Saint Martins U!). Your program should count and display the total number of vowels (A, E, I, O, U) count both uppercase and lowercase vowels in that given input. In the example above, the output should 9. [Hint: Convert the string to all upper (or all lower) case to safe having to check A or a for each vowel respectively.]
Problem 2 (50 points): Ask the user to enter a positive integer b. Validate the input (to make sure it is positive). Then output whether or not the number b is divisible by 3.
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