Question: Note: This is must be in VB.Net This exercise creates and works with Modules, Subs and Functions. We will also be working with String Functions.

Note: This is must be in VB.Net

This exercise creates and works with Modules, Subs and Functions. We will also be working with String Functions.

-To promote code reuse, create a module that will hold the subs and functions in this homework. Name it with your initials followed by the word module. For example, mine would be jhgModule.mod.

-Create a Function that would take a string as input, and return the string such that

It has no leading or trailing spaces

The first letter is capitalized

All letters following the first are in lower case

Pick an appropriate name for your function

-Create a function that will find the area and circumference of a circle given a radius. You need 4 parameters for the function (the radius, area, circumference, and error), where the error would contain any error message that occurred as a result of the calculations. The area and circumference should be returned as parameters to the function. The value returned by the function should be False if any function occurred in the function and True if there was no error. The function should be able to handle integer as well as decimal radii.

-Create a function that will take a string, a string delimiter and return a string array which contains all of the fields found in the string that were separated by the delimiter. If no delimiter is found in the string, then the array should contain a single field consisting of the whole original string.

The build in Beep function will sound the system beep when executed.

-Create your own function that will allow you to select from at least three other tones/sounds that can be played. Note, this can be done different ways. You can specify a specific frequency and duration to play the tone using the VB command System.Console.Beep(freq, duration). Things to consider How will the user specify one of your available tones?

-Build a function that will take a sting that could contain multiple paragraph marks, and replace those paragraph marks with spaces. However, if there are two paragraph marks in a row, then replace them with a single paragraph mark. So for example for the following:

Would be converted to:

This Is One Paragraph.

Second Paragraph

The trick here is to first replace the double paragraph marks with something unique (I typically use @@@), then replace the single paragraph marks, and finally replace your special marks with a single paragraph.

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!