Skip to main content

Posts

Showing posts from January, 2020

Coding Challenge - ASP.NET Program : Count number of occurrences in a given string with additional criteria - StringComparison.InvariantCultureIgnoreCase

 Write a ASP.NET with C# program to achieve the following Given a sentence, count each word for number of occurrences (Main Criteria: No repetition) Additional Criteria  Case should be ignored Comma should not be counted An extra space more than single space should be ignored CountWord.aspx.cs < div >             < table >                 < tr >                     < td > Enter the string                     </ td >                     < td >                         < asp : TextBox ID ="txtInputString" Width ="500px" runat ="server">                         </ asp : TextBox >                     </ td >                     < td >                         < asp : Button ID ="btnShowResult" runat ="server" OnClick ="btnShowResult_Click" Text ="Click for result" />                     </ td >      

Coding Challenge - ASP.NET Program : Given a string S, shift each character to its immediate right character (note: preserve the cases)

Write a ASP.NET with C# program to achieve the following  "Given a string Str, shift each character to its immediate right character (Main Criteria: preserve the cases)" Sample input : HeLlo Sample output :  IfMmp ShiftNext.aspx < div >             < table >                 < tr >                     < td > Enter the string                     </ td >                     < td >                         < asp : TextBox ID ="txtInputString" runat ="server">                         </ asp : TextBox >                     </ td >                     < td >                         < asp : Button ID ="btnShowResult" runat ="server" OnClick ="btnShowResult_Click" Text ="Click for result" />                     </ td >                 </ tr >                 < tr >                     &l

ASP.NET Programming Questions -- Coding Challenges

1) Write a program to achieve the following "Given a string S, shift each character to its immediate right character (note: preserve the cases)" 2)  Count number of occurrences in a given string with additional criteria 3) Write an ASP.NET program to do string manipulation based on set of rules All first character caps All Even numbers caps All Odd Numbers small Consider the strings are starting with 0 - Even number