Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

i need a program by giving input as a abcd in any randem order
but i need a output as 1234 related to abcd. i.e,. a for
1,b=2,c.....etc..

Answer Posted / parvatraj m bhuti

first we have to initialize the letters a=1,b=2,....
like that z=26..

then we have to read the variable v pic x(4)( which may be
abcd or any other) from input

Then we have to un string the variable v into 4 other
variables as a1,a2,a3,a4.

then
compute x1= (a1*10)+a2;
compute x2= (x1*10)+a3;
compute x3= (x2*10)=a4;

Then display ('answer is = ", x3);
That will be the answer.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between array and sub-script ?

1702


Name some of the examples of COBOl 11?

3196


What kind of error is trapped by on size error option?

1289


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2443


What are the access modes of START statement?

1325


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1292


How arrays can be defined in COBOL?

1294


what is difference between cobol and cobol/400

23065


What is the use of intialize verb?

1298


Whats the difference between search & search ALL?

6656


Have you used comp and comp-3 in your project? And how?

2520


) How do u handle errors in BMS macro

2104


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1151


Why occurs cannot be used in 01 level in COBOL?

1203


Difference between cobol and cobol-ii?

1341