Click here to Skip to main content
15,039,714 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
please write a program in visual studio that take a character if character is small alphabet this program print same big alphabet and Inverse.then if numbers are between 0 until 9 this program prints the same numbers and the other case this program prints error.
Updated 3-Nov-12 3:29am
AmitGajjar 3-Nov-12 7:27am
Sorry buddy. do your homework yourself. try to work on it by reading books and if you stuck somewhere people will help you.
ridoy 3-Nov-12 8:05am
seems to be a homework,so try it yourself
Akinmade Bond 3-Nov-12 9:30am
This is your homework!
Sandeep Mewara 3-Nov-12 15:52pm
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

What you need is to check the ASCII code of the user enters and validate them as you wish. This table might help you. We won't actually do your assignment for you.
Learn about how to input or output a character, and understand the methods IsLower, IsUpper, IsDigit, ToLower, ToUpper...
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

"I am in terms of 1. and my teacher dosen't us basic of programming but he watnts us this questions : ((( thank you ..."

Ok. This is your homework, so I'll give you no code!

I am going to assume this is a Console App - if you haven't been told otherwise then it probably is.
I am also going to assume that you know how to create an empty Console Application.

There are two basic functions to need to look at:
Console.Write     - Output data to the console display.
Console.Read      - Read input from the console keyboard.

So start off simple: (And I will give you a bit of code after all:

Console.Write("Enter a character: ");
char c = (char)Console.Read();
All that does is prompt you, read a character, and print it back out again.

Try it, and think: what do you need to do next?
hasti65 3-Nov-12 10:52am
I can't solve this...because i start to learn this program but i have many problems with it :( may you help me for solving it?? thank you...
OriginalGriff 3-Nov-12 10:56am
So what have you got so far?
hasti65 3-Nov-12 11:39am
I am in terms of 1. and my teacher dosen't us basic of programming but he watnts us this questions :((( thank you ...
First of all,We are not here to do your homework and try to practice in fields in which you think you are weak.
Further you can check these for help-
How to convert strings to lower, upper, or title (proper) case by using Visual C#[^]

and Google[^] is your complete globe for help.
Abhishek Pant 3-Nov-12 16:24pm
Downvoter must read this: what have you tried

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900