String conversion and manipulation
I am completely new to C# and fairly new to programming, so my apologies in advance if I can't make sense out of my own question! Here is what I have to do. I need to read a string of 3 characters and convert them according to the following scheme. a=1, b=2, c=3, .....and so on. I also will need to read in a zip code. I don't know if I can or should read the zip code in as an integer. Having read both of these in I then need to combine them into 1 number. For example, I read in abc and the zip code 45678. What I want to end up with is the number 12,345,678. I appreciate any help you can give.
Tanvir HudaRank #4,089 · 366 reputationPosted Jan 12, 2004, 3:27 PM EST
cdcaruso13 reputationPosted Jan 12, 2004, 3:51 PM EST
gjghkhj67 reputationPosted Jan 12, 2004, 6:51 PM EST
Tanvir HudaRank #4,089 · 366 reputationPosted Jan 12, 2004, 7:30 PM EST
cdcaruso13 reputationPosted Jan 13, 2004, 5:06 AM EST
spgilmoreRank #1,616 · 964 reputationPosted Jan 13, 2004, 6:09 AM EST
cdcaruso13 reputationPosted Jan 13, 2004, 6:40 AM EST
Tanvir HudaRank #4,089 · 366 reputationPosted Jan 14, 2004, 8:08 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts