Questions tagged [letters]

251 questions
0
votes
2 answers

Program a prompt with reverse Letters output

So here my 3 errors. The first error, at beginning is just, that i dont named the first 2 variables. i need to program a code for university. We need to program an prompt box, where you can write a sentence in the entry bar, and after you pressed,…
ts1995
  • 1
  • 2
0
votes
4 answers

Linux script to to get all the possible 7 letter combinations to generate peptides in pymol?

I'm looking to generate a folder with pdb file of every peptide of 7 (lentgh) specific amino acids. I was thinking to firstly making a simple linux script to generate a file with all 7 letter combination like this…
Grego
  • 59
  • 2
  • 9
0
votes
1 answer

Swedish characters don't work in Android Studio when reading from database

I'm trying to read from a database and show the result in a TextView in Android, it works until there is a Swedish letter in the sentence, otherwise the TextView shows null. In the database everything is ok, even the Swedish letters work perfect…
Salk
  • 1
  • 3
0
votes
2 answers

Conversion of word to alphabetical values of letters c++

I'm just starting with c++ and am trying to write a program, which takes a word and converts the letters to integers matching their position in the alphabet (separated by dots) e.g. hello -> 8.5.12.12.15 (hope I got that one right ;) ) I wrote a…
TheKaltur
  • 21
  • 6
0
votes
1 answer

Android application name more than 10 letters

My Android app name is 11 letters long. No spaces between the letters. While the ninth letter continues letters are transferred to the next line. How do I make all the letters appear in the first line?
sohrabjam
  • 1
  • 1
0
votes
5 answers

Python not detecting a single letter, but detects two letters fine

This is the code I am using to detect if a string contains letters. If none are detected, it allows the program to convert the string to a float. The idea was that I could stop the program from crashing after attempting to convert a string with…
0
votes
1 answer

German unicode letters don't show up in app

I have a problem with language encoding... what i try is to incorporate a random motivational string into my app which contains German unicode letters... as far as I know, Java uses Unicode-16, but the respective letters dont show up at all when I…
AdHominem
  • 1,204
  • 3
  • 13
  • 32
0
votes
3 answers

Project Euler #17 Ruby - What's wrong?

I made a program in Ruby and I have no idea why it's not giving me the correct answer Problem: If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the…
0
votes
4 answers

add number to a character to make it another character

I want to have a char, add number to it and get another char(a+2=c) int leng,leng2; String word = ""; String key = ""; String enc =""; char x; char z; char tost; System.out.println("gimme word"); word=in.next(); …
Hacktivator
  • 63
  • 3
  • 7
0
votes
1 answer

Assembly x86 - counting small letters in a file

I am working on an assignment and I got stuck somehow. This is the part of the code, that must be wrong. And what is actually wrong is that when the program should print the number (thtough procedure convertNumber, which works fine!), it doesn't do…
pitbbul
  • 353
  • 2
  • 11
0
votes
2 answers

How to make a program separate words by the end of the word?

I know the question sounds a little tricky or not really clear but I need a program, which would separate names. Since I am not from an English speaking country, our names either end in s (for males) or in e and a (for girls) How do I make Python…
Acu
  • 85
  • 1
  • 7
0
votes
3 answers

Numbers to letters in java (like old mobile phones' keyboard)

Just like older mobile phones' keypads work. I should input a string of numbers and the program should print out a text based on those numbers. e.g: Input: 4448 9666777557777 should output to: ITWORKS. Here's my code so far but it's not printing out…
user3060096
  • 85
  • 4
  • 13
0
votes
1 answer

What is the difference between gets() and scanf()

#include int main() { char text[100]; int length = 0; gets(text); while (text[length] != '\0') length++; printf("%d",length); } I was trying to count the letters in an string using the above program. it worked.…
Naseef AR
  • 1
  • 1
0
votes
7 answers

regex: find all words with certain letters but not other

can anyone is help me with that: I need to find all words from list containing letters [t OR d] AND [k OR c] but not any of [s,z,n,m] I figured out first part, but don't know how to include stop list: \w*[t|d]\w*[k|c]\w* in Python notation Thank…
AKarpun
  • 321
  • 2
  • 6
  • 14
0
votes
2 answers

The best way to 4 letter words based on string with limits?

So I'm using this code down here to figure out all the words that could be spelled out of the alphabet variable, the problem is , I build this alphabet variable each time I call this based on the board of random letters in front of the user. What i…