• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

Numerology

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i would like a simple program for the following question.
the values of a=1,b=4,c=3...so on that each alphabet has some assigned random number.
if i type in the word krishna,i want the value of that word.
i want it first only the whole value and then the value of the words with only vowels and the value of the word without vowels.
thank you.
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What do you have so far? If you haven't started yet, what ideas have you had, and where are you stuck implementing them?

You may get some inspiration in this suspiciously similar recent topic.
 
unna muthiah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it is simillar.....i have da same program over here.but i keep gettin some mistake.
 
unna muthiah
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can i use arrays
one for the char
and one for integers
so if anything is equal to the character
i will just put da value of integer
 
author
Posts: 23901
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

unna muthiah wrote:can i use arrays
one for the char
and one for integers
so if anything is equal to the character
i will just put da value of integer



I don't see why not -- give it a try and let us know how it worked.

Henry
 
Marshal
Posts: 73306
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

unna muthiah wrote:can i use arrays
one for the char
and one for integers
so if anything is equal to the character
i will just put da value of integer

Yes, but there is a much easier way to do it using only one array. See the other thread for a further hint.
 
reply
    Bookmark Topic Watch Topic
  • New Topic