Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
graph computer CASE prelim 2007 ICSE 2009 2004 CLASS 2006 2010 RESULT physics YEAR paper papers SELECT science question UNION
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
Help plzz..!! EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
Help plzz..!! EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
Help plzz..!! EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
Help plzz..!! EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
Help plzz..!! EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
Help plzz..!! EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
Help plzz..!! EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
Help plzz..!! EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
Help plzz..!! EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
Anu..i luv icse...:)
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
G-7
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
siya
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
Candy
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
jOhNy
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
Apurva
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
WinRrule
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
ambili
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 
saif
Help plzz..!! Vote_lcapHelp plzz..!! Voting_barHelp plzz..!! Vote_rcap 



Search if you can't find it here

Help plzz..!!

View previous topic View next topic Go down
AuthorMessage
sinhashubham99




Help plzz..!! Vide
PostSubject: Help plzz..!! Help plzz..!! EmptyTue Feb 03, 2009 10:54 pm

hey guys can u please tell me how to do dis program...

WAJP to perform the coding process.
ex:
if string =ABC
and no entered is 2 thn output=CDE

if string =XYZ
no entered is 2 thn output=ZAB
Back to top Go down
Anu..i luv icse...:)
Active member
Active member
Anu..i luv icse...:)


Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyTue Feb 03, 2009 11:57 pm

it can be done using ASCII
Back to top Go down
jOhNy
Active member
Active member
jOhNy


Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyWed Feb 04, 2009 2:23 pm

yup...take each charcter of string(using CharAt)and increase the ASCII value by the entered no. keep adding each char in a new string and print it.
Back to top Go down
akshay
Active member
Active member



Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyWed Feb 18, 2009 6:53 am

hey anu, why should we use ascii?
is this enough to receive the same output or have i misunderstood the question:

import java.io.*;
class cde
{
public static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter 1 string and a number");
String s1=in.readLine();
int n=Integer.parseInt(in.readLine());
if(s1.equals("ABC") && n==2 )
System.out.println("CDE");
else
if(s1.equals("XYZ") && n==2)
System.out.println("ZAB");
}}

please check and reply soon!thanks!=)
Back to top Go down
sahil.anwer

sahil.anwer


Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyWed Feb 18, 2009 8:24 am

This is a program of cryptography.
Pick each character using charAt and get their ascii.
then add the value of n to the ascii of the character.
then match the condition if(char>'z'){char='a');}
You will get the output.
Reply soon.
Back to top Go down
Anu..i luv icse...:)
Active member
Active member
Anu..i luv icse...:)


Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyWed Feb 18, 2009 11:43 pm

as_24

if we do acc. to ur logic, only the two cases i.e. ABC n XYZ are solved, but i thought, in the question those two are given as examples, we have to design a code suitable for all letters-thts what i thought.

so, acc. to me, my logic is similar to sahil's

lets ask others how they interpret it!!

so, others....reply soooooooon
Back to top Go down
akshay
Active member
Active member



Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyThu Feb 19, 2009 2:57 am

oh sorry, i didn't know that was the example
my mistake.
thanks for rectifying it.=)
Back to top Go down
Anu..i luv icse...:)
Active member
Active member
Anu..i luv icse...:)


Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! EmptyThu Feb 19, 2009 11:48 pm

its alright!!! Smile
Back to top Go down
Sponsored content




Help plzz..!! Vide
PostSubject: Re: Help plzz..!! Help plzz..!! Empty

Back to top Go down

Help plzz..!!

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: Computer :: Computer help forum-