Visual Basic Please Create Windows Forms Application Called License Key Project Given Lice Q37277258

Visual Basic Please: Create a Windows Forms application calledLicense Key project. You are given a license key as a string S thatconsists only alphanumeric characters and dashes. When giving anumber K, you will reformat the string such that each groupcontains exactly K characters, except for the first group whichcould be shorter than K, but still must contain at least onecharacter. Furthermore, there must be a dash inserted between twogroups and all lowercase characters should be converted touppercase characters.

ex) Input: S = “5F3Z-2e-9-w”, K = 4

Output: “5F3Z-2E9W”

==============================================================================

Input: S = “2-5g-3-J”, K = 2

Output: “2-5G-3J”


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.