Amar Mali

Amar Mali

  • NA
  • 14
  • 777

cofusing me the question

Sep 27 2016 9:35 AM
Program 1: Write a program in Asp.Net C# accept two string from user to copy first user inputted string to another string with the number of copied characters and check whether a second user inputted is present in the first user inputted string or not? Replace first user inputted strings lowercase characters by uppercase and vice-versa also calculate the Highest frequency of character in the second user inputted? and sort a user string in ascending order? Ex: First user inputted string is: This is a string to be copied. Second user inputted string is: KAran213. Output: The user inputted first string is: This is a string to be copied. The user inputted second string is: KAran213. The Copied string is: This is a string to be copied. Number of characters copied: 31 The Second string is not exists in the string. After Case changed the string is: tHIS iS a tEST sTRING. The Highest frequency of character 'e' appears number of times: 4 After sorting the string appears like: 123AaKnr Program 2: Write a program which asks for a symbol, a width and a height and displays a hollow rectangle of that width and that height, using that number for the outer symbol, as in this example: Enter a symbol: 4 Enter the desired width: 3 Enter the desired height: 5 Output: 444 4 4 4 4 4 4 444 Program 3: Create a C# program to return the change of a purchase, using coins (or bills) as large as possible. Assume we have an unlimited amount of coins (or bills) of 100, 50, 20, 10, 5, 2 and 1, and there are no decimal places. Thus, the execution could be something like this: Ex.1 Price? 44 Paid? 100 Output: Your change is 56: 50 5 1 Ex.2 Price? 1 Paid? 100 Output: Your change is 99: 50 20 20 5 2 2

Answers (2)