Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

Give examples of behavioral indications of fraud.

Answered: 1 week ago

Question

What is management information systems?

Answered: 1 week ago

Question

a. How will the leader be selected?

Answered: 1 week ago