Questions tagged [letter]

a character representing one or more of the sounds used in speech; any of the symbols of an alphabet.

448 questions
-1
votes
2 answers

How to create a line break after each 3 characters in one long line?

I want to break the below line into 1000 ones by 3 letters each: …
mr459
  • 29
  • 4
-1
votes
2 answers

Why does my C# function returning the position of a letter in the alphabet work?

I have a function that returns the position of a letter in the alphabet. How does it work? This is how my C# looks like: private int CalculateLetterPosition(char cCharacter) { int iReturn = 0; int iCharacterValue =…
Norbert Willhelm
  • 2,579
  • 1
  • 23
  • 33
-1
votes
3 answers

Check if a string match a defined pattern

I am working on an assignment right now where I have to enter an input in "ABC123456" format entry and see if it is valid or not. I don't understand how to check each character if it is a number or letter. Here is what I have so far: import…
-1
votes
1 answer

How I could create a font that show the space " " as simbol like this "_"?

I dont know How I could do this I need to get an idea for create a font in format ttf PLease help me with this
alberto2
  • 3
  • 3
-1
votes
4 answers

How to detect space and letters in a Char in C?

Do you know how I can detect space and letters in a CHAR variable? I need to detect letters or space in a input of numbers: This what I want to do: Enter Document Number of 8 numbers: // i press space and pressed enter ERROR: please enter the age…
Alexander
  • 37
  • 1
  • 4
-1
votes
4 answers

Is there a letter at this position on the list of lists?

I'm trying to write a function that determines if a letter is present at a certain row and column on a list of lists. #Input: lst2 = [['.', 'W', 'W', 'E', 'E'], ['.', '.', '.', '.', 'f'], ['A', 'A', 'A', '.', 'f']] #Output:…
warrior4223
  • 113
  • 1
  • 1
  • 8
-1
votes
1 answer

how can i differentiate between big and small letter in java

i need to set a new array with 10 characters in which contains 2 capital letters. I need to find the capital letters and replace them with the same SMALL letters. how can i do it? how can i differentiate between small/capital letter?
hagar
  • 1
  • 1
  • 1
-1
votes
2 answers

Letter Counter Code

//The Prompt is: Write a program that asks the user to enter a string, and //then ask the user to enter a character. The program should count and display //the number of times that the specified character appears in the string. import…
Lori Ramirez
  • 1
  • 1
  • 1
-1
votes
2 answers

How to check if a number that starts with a letter

I have a code below that matches a remainder of an 8 digit number to a letter when divided by 23. function dniLetter( dni ) { var lockup = 'TRWAGMYFPDXBNJZSQVHLCKE' var result = ''; var remainder = dni % 23; result =…
jso1226
  • 59
  • 1
  • 2
  • 8
-1
votes
3 answers

Find frequent occuring letter in log(n) time?

If given a string such as , "aaabbccc", how would you output 'a' since it occurs just as frequently as 'c' but occurs first. I did it using O(n) time, but I can't figure out how you would do this using log(n) time, whether in java or c++. EDIT: This…
-1
votes
3 answers

How do I make first letter big in php

when I echo a name in $_session['name']; it says "h" rnoob but the first letter is little, and I want makes it so the first letter is big like "H" rnoob??
-1
votes
2 answers

Is a character in a variable is a letter or number

I would like to find out how you can tell if a character in a variable is a letter or number for example: if I used the code: ABC123 How would I find out if a variable followed that pattern so if a inputted code would be DNM567 it would print…
Max Kyte
  • 1
  • 1
-1
votes
1 answer

Linewrap is not working in JTextPane with arabic letters

I want to force linewrap in a jtextpane which contains arabic text. Although linewrap is automatically enabled my jtextpane won't linewraps the text. import java.awt.*; import javax.swing.*; import javax.swing.GroupLayout.Alignment; …
Ramses
  • 652
  • 2
  • 8
  • 30
-1
votes
3 answers

get the value with the first letter of database

In my mysql database I have table 'class' with column 'classname' contain : Andree,adele,Beta,Alfa How can I get all the names in 'classname' whose first letter is 'a' or 'A' by php code ? I tried many ways to do this but they did not give the…
Phuc Khung
  • 29
  • 1
  • 6
-2
votes
0 answers

How to move this letter downso the space will take up 2 lines

I need in this text to move first letter so it can take u space on 2 lines. Here is picture how it should look like. (https://i.stack.imgur.com/TZGl5.png) here is my html text of the text I did add span to it to mark first letter L p { display:…