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

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!