473,408 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

C++ program to calculate corresponding ASCII values for case

Write a program that reads in a character from the keyboard, and then displays one of the following messages:

if <char> is a lower case letter, the message "The upper case character corresponding to <char> is ...",

if <char> is an upper case letter, the message "The lower case character corresponding to <char> is ...",
or

if <char> is not a letter, the message "<char> is not a letter". You will need to refer to a table of ASCII characters
Sep 18 '07 #1
2 3021
gpraghuram
1,275 Expert 1GB
Write a program that reads in a character from the keyboard, and then displays one of the following messages:

if <char> is a lower case letter, the message "The upper case character corresponding to <char> is ...",

if <char> is an upper case letter, the message "The lower case character corresponding to <char> is ...",
or

if <char> is not a letter, the message "<char> is not a letter". You will need to refer to a table of ASCII characters

HI,
Please read this befor posting ur questions
Raghuram
Sep 18 '07 #2
sicarie
4,677 Expert Mod 4TB
Why don't you try to write it and tell us where you are stuck so that we can help you?

Conversely, I bill at $200 US an hour ;).
Sep 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Neil W. | last post by:
I'm coming back to Perl after a long absence. I am trying to add up the ascii values of the characters in a string. Can anyone refresh my memory? Thanks.
4
by: Jim in Arizona | last post by:
This doesn't make any sense to me. I'm hoping some SQL guru out there knows the answer. I'm making a help desk type database system. There's only two tables, one called TTickets and the other...
1
by: Kermit Piper | last post by:
Hello, I have a function that lets me convert one character and throw an alert with the corresponding ASCII value, but what I am having trouble with is applying it to a text box. What I'm trying...
1
by: Kermit Piper | last post by:
Hello, OK, almost there. Here's what I have so far, which handles characters as they're typed in. Could someone please show me how I would loop through all the values that are entered if a block...
7
by: Jeffrey Spoon | last post by:
Hello, I'm a bit stuck trying to convert a text file which contains extended ASCII text and changing the ASCII values so they become readable. I do this by subtracting 127 from the ASCII value....
1
by: adnanahmed714 | last post by:
hi all i have a string <cr><lf>999,1.52,32.85,5.91,15.81,1.39,26.17,15.75,12.3 want to calculate its ASCII values sum which is equal to 2411.How can i calculate ascii sum of all the...
0
by: nmsreddi | last post by:
Hi friends I am working on serialport in c# ,i am using C#2005 i have successfully done the serial communication with GSM modem and able to send and receive data , the main problem ,the serial...
10
by: manontheedge | last post by:
I want to read in an image file ( bmp, jpeg, ... ) so I can retain it's ascii / binary values, and alter the image. How can I do this in C++ ( I'm using Visual Studio, various versions ). so...
5
by: siddhanta | last post by:
hi, i read the ascii value from a file and wrote the decimal one in other file. But values above "127" i.e. extended ascii are printed as" 65533." here ais wat i did: private void...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.