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
2004 science papers paper graph CASE ICSE 2006 CLASS 2009 2007 physics RESULT UNION YEAR SELECT prelim computer question 2010
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
question - question 1> isc specimen paper 2010 EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
question - question 1> isc specimen paper 2010 EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
question - question 1> isc specimen paper 2010 EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
question - question 1> isc specimen paper 2010 EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
question - question 1> isc specimen paper 2010 EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
question - question 1> isc specimen paper 2010 EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
question - question 1> isc specimen paper 2010 EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
question - question 1> isc specimen paper 2010 EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
question - question 1> isc specimen paper 2010 EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
Anu..i luv icse...:)
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
G-7
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
siya
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
Candy
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
jOhNy
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
Apurva
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
WinRrule
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
ambili
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 
saif
question - question 1> isc specimen paper 2010 Vote_lcapquestion - question 1> isc specimen paper 2010 Voting_barquestion - question 1> isc specimen paper 2010 Vote_rcap 



Search if you can't find it here

question 1> isc specimen paper 2010

View previous topic View next topic Go down
AuthorMessage
prateek9417




question - question 1> isc specimen paper 2010 Vide
PostSubject: question 1> isc specimen paper 2010 question - question 1> isc specimen paper 2010 EmptyFri Mar 12, 2010 8:49 pm

Question 1
Design a program which inputs a date in six digit number format i.e. 141296 . Test the validity of the date and print the date in full form . If date is invalid then print a message as “ Invalid Date“
1. Example :
INPUT : 141296
OUTPUT : 14th December , 96
: VALID DATE
2. Example :
INPUT : 230488
OUTPUT : 23rd April , 88
: VALID DATE
3. Example :
INPUT : 300284
OUTPUT : INVALID DATE

import java.io.*;
class Currency
{
private int th,hu,fhu,fi,te,f,on,amm;
public Currency()
{
th=hu=fi=te=on=0;
}
public void input(int amm)
{
this.amm=amm;
}
public void print()
{
if(amm/1000>0)
{
th=amm/1000;
System.out.println("1000 x "+th);
amm=amm%1000;
}
if(amm/500>0)
{
fhu=amm/500;
System.out.println("500 x "+fhu);
amm=amm%500;
}
if(amm/100>0)
{
hu=amm/100;
System.out.println("100 x "+hu);
amm=amm%100;
}
if(amm/50>0)
{
fi=amm/50;
System.out.println("50 x "+fi);
amm=amm%50;
}
if(amm/10>0)
{
te=amm/10;
System.out.println("10 x "+te);
amm=amm%10;
}
if(amm/5>0)
{
f=amm/5;
System.out.println("5 x "+f);
amm=amm%5;
}
if(amm>0)
{
System.out.println("1 x "+amm);
}

}
public String display(int num)
{
String s[]={"Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};
String t="";
while(num>0)
{
int n=num%10;
t=s[n]+" "+t;
num/=10;
}
return t;
}
}
Back to top Go down
RC
Active member
Active member
RC


question - question 1> isc specimen paper 2010 Vide
PostSubject: Re: question 1> isc specimen paper 2010 question - question 1> isc specimen paper 2010 EmptySat Mar 13, 2010 11:55 am

import java.io.*;
class S1001
{
void main()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Pls give the 6 digit input : ");
String str=br.readLine();
String months[]={"January","February","March","April","May","June","July","August","September","October","November","December"};
int d[]={31,28,31,30,31,30,31,31,30,31,30,31};
//String dd,m,y;
int dd,m,y;
dd=Integer.parseInt(str.substring(0,2));
m=Integer.parseInt(str.substring(2,4));
y=Integer.parseInt(str.substring(4,6));
if(y%4==0)
d[1]=29;
if(dd>d[m-1])
{
System.out.println("Invalid Date");
return;
}
System.out.print(dd);
if(dd%10==1)
System.out.print("st");
else if(dd%10==2)
System.out.print("nd");
else if(dd%10==3)
System.out.print("rd");
else
System.out.print("th");
System.out.print(" "+months[m-1]+","+y);
}
}
Back to top Go down

question 1> isc specimen paper 2010

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 :: ISC :: ISC 2010 [Class xii] :: Computer-