Questions tagged [alphabet]
319 questions
0
votes
0 answers
I want to replace letters with numbers in C
I would like to make some kind of program in C to encode and decode messages,now I successfully made the decoder,all I want it to do is if I ex. type "Hello" into an input.txt file I want it to print it as the letter's position in the alphabe as "8…

Sepsi Zoltán
- 29
- 3
0
votes
2 answers
Python: using indices and str
I am attempting to learn Python and am working on an assignment for fun that involves translating "encrypted" messages (it's just the alphabet in reverse). My function is supposed to be able to read in an encoded string and then print out its…

McBraunie
- 107
- 1
- 12
0
votes
3 answers
Alphabet range with num and item from list
I have a list:
lst = ['cat', 'cow', 'dog']
Need to print:
A1 cat
B2 cow
C3 dog
How I can do it?

Anon Anon
- 13
- 1
0
votes
2 answers
Is there a built in way of getting arrays of common sets like alphabet, numbers, etc in ios?
I would assume there would be a convenience class somewhere where I could call say
NSArray *alphabet = [SomeClass lowerCaseAlphabet];
instead of having to write it out every time. Is there such a class?

Marty
- 5,926
- 9
- 53
- 91
0
votes
0 answers
Frequency of characters in text
A method to return the frequencies of repeated characters
The answer is always the number of all characters in text, not repeated characters! Can I know how to edit it?
public static int freq(String in ) {
int frequency = 0;
char[] alphabet =…

Y.esk
- 11
- 3
0
votes
2 answers
How do I output char strings out of an java array?
// Full alphabet as char
char[] alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
// Trying to output my first name - But result is a…

Fronin
- 27
- 5
0
votes
1 answer
Remove Alphabet and Insert Leading 0 up to Certain Character Length
I have a table name Table and column name Item. Below is the data.
ABC123
ABC1234
ABC12345
HA11
K112
L1164
I need to remove the alphabets, replace them with leading 0, and the total character length must be 9. Below is the results.…

Adhitya Sanusi
- 119
- 2
- 17
0
votes
2 answers
Encryption with swapping letters in C
I need to write a program that reads from the input a sentence terminated by a new line. The program should write an encryption of the sentence in a way that the letter 'a' is swapped with 'z', 'b' with 'y' and so on. I am not supposed to use…

Marija Lyka
- 163
- 3
- 17
0
votes
0 answers
regex for insensitive proceeding alphabets
I want to have a regex match alphabets with its minimum at abc.
So I want to detect if the string contains the alphabet (abcdefghijk...) with case insensitivity.
So it could match :
abc
AbC
abcde
ABCDE
abCdefG
But not match :
cdef -- missing…

Mininny
- 85
- 6
0
votes
1 answer
Python Vigenere working, but I can't account for the spaces and non alphabetical characters using functions
I am currently working on a cipher program for a beginners python course. We first were told to create a function that would return the position of a given letter, using a string of the alphabet as a reference (that is my alphabet_position…

Brian Burns
- 113
- 2
- 13
0
votes
0 answers
Compare version with number and alphabet
I want to compare versions that contains both number and alphabet in C#. For example, version 1.1.1b is a newer version compare to 1.1.1a. Is there a way to compare the '1b' and '1a' so that 1b is the newer version? Thanks.

Kelvin
- 9
- 1
- 4
0
votes
0 answers
What does S[1..n] mean for strings and arrays?
I've chanced upon quite a few reference books using definitions stating "for the string S[1..n]" and "in the array A[0..n-1]", and I did look up several sites in related fields but am unable to figure out what this notation means. I know that this…

Stoner
- 846
- 1
- 10
- 30
0
votes
1 answer
Python start line with a letter, combining two for loops?
I'm trying to have my program output:
a. am {1: '2'}
b. at {1: '2'}
c. far {1: '1'}
...
ff. glad {1: '2'}
gg. i {1: '2'}
hh. it {1: '1'}
...
ooo. lets {1: '0'}
ppp. outcome {1: '2'}
The first part, the letters, is the line number but represented…

Ember
- 15
- 2
0
votes
4 answers
C++ - Alphabetizing Strings
I am currently reading information from an input file. Of that information, there is a name. All the information is read into a struct. There is an array of these structs.
I need to alphabetize the structs by the last name, using a Binary Search…

Johnrad
- 2,637
- 18
- 58
- 98
0
votes
1 answer
Sorting words according the alphabet
I need to make a program that can sort the words according the alphabet from a to z. the current program I made is capable of sorting the words but only if there on a new line ('\n').
The words that are further in the line are not sorted.
Here is…

dutC
- 1