publicclassExercise1_2{publicstaticvoidmain(String[]args){System.out.println(WelcometoJava);System.out.println(WelcometoJava);System.out.println(WelcometoJava);System.out.println(WelcometoJava);System.out.println(WelcometoJava);}}publicclassExercise1_4{publicstaticvoidmain(String[]args){System.out.println(aa^2a^3);System.out.println(111);System.out.println(248);System.out.println(3927);System.out.println(41664);}}publicclassExercise1_6{publicstaticvoidmain(String[]args){System.out.println(1+2+3+4+5+6+7+8+9);}}publicclassExercise1_8{publicstaticvoidmain(String[]args){//DisplayareaSystem.out.println(5.5*5.5*3.14159);//DisplayperimeterSystem.out.println(2*5.5*3.14159);}}importjavax.swing.JOptionPane;publicclassExercise2_1WithDialogBox{//Mainmethodpublicstaticvoidmain(String[]args){//EnteratemperaturinFahrenheitStringcelsiusString=JOptionPane.showInputDialog(null,EnteratemperatureinCelsius:,Exercise2_1Input,JOptionPane.QUESTION_MESSAGE);//Convertstringtodoubledoublecelsius=Double.parseDouble(celsiusString);//ConvertittoCelsiusdoublefahrenheit=(9.0/5)*celsius+32;//DisplaytheresultJOptionPane.showMessageDialog(null,Thetemperatureis+fahrenheit+inFahrenheit);}}importjava.util.Scanner;publicclassExercise2_2{publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);//EnterradiusofthecylinderSystem.out.print(Enterradiusofthecylinder:);doubleradius=input.nextDouble();//EnterlengthofthecylinderSystem.out.print(Enterlengthofthecylinder:);doublelength=input.nextDouble();doublevolume=radius*radius*3.14159*length;System.out.println(Thevolumeofthecylinderis+volume);}}publicclassExercise2_4{publicstaticvoidmain(String[]args){//Prompttheinputjava.util.Scannerinput=newjava.util.Scanner(System.in);System.out.print(Enteranumberinpounds:);doublepounds=input.nextDouble();doublekilograms=pounds*0.454;System.out.println(pounds+poundsis+kilograms+kilograms);}}//Exercise2_6.java:Summarizealldigitsinaninteger1000publicclassExercise2_6{//Mainmethodpublicstaticvoidmain(String[]args){java.util.Scannerinput=newjava.util.Scanner(System.in);//ReadanumberSystem.out.print(Enteranintegerbetween0and1000:);intnumber=input.nextInt();//FindalldigitsinnumberintlastDigit=number%10;intremainingNumber=number/10;intsecondLastDigit=remainingNumber%10;remainingNumber=remainingNumber/10;intthirdLastDigit=remainingNumber%10;//Obtainthesumofalldigitsintsum=lastDigit+secondLastDigit+thirdLastDigit;//DisplayresultsSystem.out.println(Thesumofalldigitsin+number+is+sum);}}publicclassExercise2_8{publicstaticvoidmain(Stringargs[]){java.util.Scannerinput=newjava.util.Scanner(System.in);//EnteranASCIIcodeSystem.out.print(EnteranASCIIcode:);intcode=input.nextInt();//DisplayresultSystem.out.println(ThecharacterforASCIIcode+code+is+(char)code);}}importjava.util.Scanner;publicclassExercise2_10{/**Mainmethod*/publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);//ReceivetheamountenteredfromthekeyboardSystem.out.print(Enteranamountindouble,forexample11.56);doubleamount=input.nextDouble();intremainingAmount=(int)(amount*100);//FindthenumberofonedollarsintnumberOfOneDollars=remainingAmount/100;remainingAmount=remainingAmount%100;//FindthenumberofquartersintheremainingamountintnumberOfQuarters=remainingAmount/25;remainingAmount=remainingAmount%25;//FindthenumberofdimesintheremainingamountintnumberOfDimes=remainingAmount/10;remainingAmount=remainingAmount%10;//FindthenumberofnickelsintheremainingamountintnumberOfNickels=remainingAmount/5;remainingAmount=remainingAmount%5;//FindthenumberofpenniesintheremainingamountintnumberOfPennies=remainingAmount;//DisplayresultsStringoutput=Youramount+amount+consistsof\n+numberOfOneDollars+dollars\n+numberOfQuarters+quarters\n+numberOfDimes+dimes\n+numberOfNickels+nickels\n+numberOfPennies+pennies;System.out.println(output);}}importjavax.swing.JOptionPane;publicclassExercise2_12a{publicstaticvoidmain(Stringargs[]){//ObtaininputStringbalanceString=JOptionPane.showInputDialog(null,Enterbalance:);doublebalance=Double.parseDouble(balanceString);StringinterestRateString=JOptionPane.showInputDialog(null,Enterannualinterestrate:);doubleannualInterestRate=Double.parseDouble(interestRateString);doublemonthlyInterestRate=annualInterestRate/1200;doubleinterest=balance*monthlyInterestRate;//DisplayoutputJOptionPane.showMessageDialog(null,Theinterestis+(int)(100*interest)/100.0);}}importjava.util.Scanner;publicclassExercise2_12b{publicstaticvoidmain(Stringargs[]){Scannerinput=newScanner(System.in);//ObtaininputSystem.out.print(Enterbalance:);doublebalance=input.nextDouble();System.out.print(Enterannualinterestrate:);doubleannualInterestRate=input.nextDouble();doublemonthlyInterestRate=annualInterestRate/1200;doubleinterest=balance*monthlyInterestRate;//DisplayoutputSystem.out.println(Theinterestis+(int)(100*interest)/100.0);}}importjava.util.Scanner;publicclassExercise2_14{publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);//PrompttheusertoenterweightinpoundsSystem.out.print(Enterweightinpounds:);doublewei