Question: VISUAL BASIC: Write a program that counts the number of words and letters in a sentence input by the user. Use functions to perform the

VISUAL BASIC: Write a program that counts the number of words and letters in a sentence input by the user. Use functions to perform the calculations. Assume that the number of words is one more than the number of spaces. 1. I need a function that counts the words with a For Loop and also a seperate function that counts the letters with a For Loop.

2. The program also needs to be prepared for a bad user that might input zero words or numbers.

Thanks! If you could explain the answer that would be nice too. Im just having trouble with how to set this all up. My teacher gave us a hint for the loop to count the letters. I think he said have i in the first position of the substring. Im just confused.VISUAL BASIC: Write a program that counts the number of words and

Analyze a Sentence Sentence Analyze Sentence Number of words: 5

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!