Hi there guys I need your help so badly as I can't finish my program. The instructions are: create a console application that instantiates a class with a method that takes in a string of values converts upper case to lower case and vice versa. The method also returns the string without special characters. Place your code in a short bond paper.
Method Name: ChangeCase
Class Name: Casing
Here's an example input and output:
INPUT: In$p!red4Progr@mming
OUTPUT: iNPRED4pROGRMMING
Use method: isupper, islower, isdigit etc.
Here what I've accomplished so far (Our professor said my draft is already correct but it still doesn't have any content just how the code is supposed to look like, this is like the skeleton of the program and also I'm not yet done with my loop because I don't know what to put inside... Please Help me)
Here's my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication5
{
class Program
{
static void Main(string[] args)
{
Casing c = new Casing(Console.ReadLine());
Console.WriteLine(c.Value);
Main();
}
}
class Casing
{
private string sValue;
public string Value
{
get { return sValue; }
set { sValue = value; }
}
public Casing(){}
public Casing(string value)
{
Value = ChangeCase(value);
}
public string ChangeCase(string value)
{
string changedValue ="";
for (int i = 0; i < value.Length; i++)
{