Questions tagged [alphabet]
319 questions
-2
votes
1 answer
Setting values of a 2 dimensional array in java
I'm attempting to set up a 2 dimensional array of the alphabet in java.
My first attempt (doesn't work):
char[][] arr=new char[4][7];
for(int r=0; r
-2
votes
1 answer
Looping in list (get first after the last)
I'm trying to make an easy dummy thing but I kinda stopped at something i never encounter. Making some kind of translator which should work like this:
word = "hello"
h => i (+1 position in alphabet)
e => g (+2)
l => o (+3)
l => p (+4)
o => t…

Leemosh
- 883
- 6
- 19
-2
votes
3 answers
How to neglect Capital and small alphabet in all
string usertype;
usertype = Console.ReadLine();
if (usertype== "Yahoo")
{
Console.WriteLine("You typed Yahoo therefore we are now login to Yahoo Page");
Console.ReadLine();
}
Nothing wrong with t he code except: If user types Yahoo then it…

Syed Irfan Naseer
- 23
- 4
-2
votes
1 answer
Java Counting the number of alphabets
During making programs about counting the number of alphabets each(e.g input-abc/output- a:1, b:1, c:1, d:0, ... , z:0)I have a problem. I don't know why the if clauses does not work...
Here is my code.
import java.util.Scanner;
public class…

ANNE MAYOR
- 47
- 1
- 6
-2
votes
4 answers
Test All Combinations a-z, A-Z, 0-9
I need to check all combinations a-z, with a string length of 2.
So, example output would be:
aa
ab
ac
ad
ae
etc.
I've been trying to use for loop, but to no success. This is what I got:
var length = 2;
var password = [];
var possible =…

sanoj00
- 73
- 1
- 2
- 6
-2
votes
4 answers
How to set value of alphabet letter? C++
Well, I have to make a task, that will sort elements of array in UNIQUE way.
So, for example, if I input 1st string:
BOB, I have to do: 2+15+2 (because of their positioning in the alphabet) and then divide by amount of chars /3 and do that for all…

John Smith
- 47
- 1
- 3
- 9
-3
votes
1 answer
Bard in react-native
Can I implement Bard in react-native project?
I searched on Google and chatGPT as well to find that can use BardAPI in react-native project, so I didn't find any article or any things related to this. Could anyone explain me the way of implement it?

Vinay S Upadhyay
- 1
- 1
-3
votes
2 answers
I want to get Int value range 0-25 from a-z in Swift. And also reversely
I want to convert alphabets to numbers, in this way: a=0, b=1, c=2 ... z=25 in Swift.
I have an array of integers range 0-25. I want to get alphabets from the Int array.
If I have an array of characters, how can I get an array of Int?

David S
- 55
- 7
-3
votes
2 answers
how to make input variable with only the alphabet
This is the problem I am facing. Can anyone help
name=input("What is your name?")
name= input.lower()
when it runs this is what comes up
What is your name?Bob
Traceback (most recent call last):
File "E:\eval task 1 GCSE.py", line 6, in
…

GamingKing720
- 11
- 1
- 4
-3
votes
1 answer
How to Convert Every Letter in the Alphabet To an Integer - Objective-C
I am trying to convert every letter in the alphabet to an integer like this
A = 1;
B = 2;
...
Z = 26;
I went through some forum questions but none of them worked well. Is there a way of doing this without Arrays?

user3730858
- 1
- 2
-3
votes
2 answers
Count Alphabet Characters from an array?
So, in this program we have to
A. Count the number of each letter of the alphabet found in a character array and store these counts in an integer array
I understand that part but then it says we have to use the ASCII values which confuses…

letsgetkrejci
- 1
- 1
- 2
-4
votes
1 answer
Nato alphabet in c++ array
I have to convert a capitalized character to its NATO phonetic alphabet counterpart. Using two arrays.
letters.txt is a text file with letters A-Z
words.txt is a text file with the NATO phonetic alphabet Alpha-Zulu
(Ex: A=Alpha, B=Bravo...)
The…

M. Sanchez
- 1
- 2
-4
votes
2 answers
How to check if a char is in the alphabet in C#
I think the title says enough.
void onClickSubmit(char submit)
{
if(submit.//check if it is alphabetical)
{
//some code
}
}
how can i check if the char submit is in the alphabet?

Br4m3000
- 53
- 1
- 2
- 6
-4
votes
2 answers
Alphabetical order of strings in a TextFile
I got this list of names in a textfile in a randomn order....how do I sort it in an alphabetical order (delphi) ? I need to keep it in the same text file.
File looks like this:
Smith
Jack
Klein
Elliot

Filip Sulik
- 5
- 1
-4
votes
3 answers
C function to print the alphabet using pointers
I have this code:
void printArray(char* p, int len)
{
for( p ; p < p + len ; p++ )
{
printf("%c", *p);
}
printf("\n");
}
int main()
{
char* abc = "abcdefghijklmnopqrstuvwxyz";
printArray(abc, 26);
return 0;
…

Amnon Hanuhov
- 21
- 1
- 3
- 9