The vowel checker was written to check
whether or not a selected vowel appears in
the name that is entered in the Edit
component. RadioButtons are used to select
the vowel. An Edit component is used to
input the name.
The btnCheck and btnLength are Disabled
initially.
The btnConvert removes the blanks and
converts the string in the Edit component
to UpperCase. The btnCheck will determine the position of the selected vowel, and
assign the result to the caption of lblResult. The btnLength will determine the number of characters in
the Edit component. If there are less than 5 the form colour is changed to red, less than 10 the colour
changes to green, less than 20 the colour changes to blue and 20 or more the colour changes to yellow.
The btnReset changes the form as given above.
i) Write the code for the event handler for the OnClick event of btnConvert. (4)
ii) Write the code for the event handler for the OnClick event of btnLength so that the length of
the string is determined and the colour of the form changes accordingly. (8)
iii) Give a print screen of the interface that YOU used for the programming of this question. Marks
1
Expert's answer
2012-04-05T09:41:49-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment