Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.image text in transcribed

Analyze a Sentence Sentence Analyze Sentence Number of words: 5

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

Students also viewed these Databases questions