PMREDDY19 Posted November 4, 2011 Author Report Posted November 4, 2011 hmmm inka java kaaledhu saami antey malli C# homework pettadu devudaa..
dennis Posted November 4, 2011 Report Posted November 4, 2011 [quote name='PMR aka OM' timestamp='1320371807' post='3062414'] hmmm inka java kaaledhu saami antey malli C# homework pettadu devudaa.. [/quote] kochens post chey baa
PMREDDY19 Posted November 4, 2011 Author Report Posted November 4, 2011 [quote name='dennis' timestamp='1320372832' post='3062424'] kochens post chey baa [/quote] daaniki e book kuda ledhu baa asalu naa ssaavuki thodu,, adhi kuda ivva la post chesadu repu evening ki answers post cheyyali antunnaadu.. naaku e saduvu lolli endho inni rojula taruvata...
mba Posted November 4, 2011 Report Posted November 4, 2011 idhi thappu chesav baa.. 1.16 The following program is wrong. Reorder the lines so that the program displays morning followed by afternoon. public static void main(String[] args) { } public class Welcome { System.out.println("afternoon"); System.out.println("morning"); } Ans :: public class Welcome { public static void main(String[] args) { System.out.println("afternoon"); System.out.println("morning"); } } Morning followed by afternoon. annadu. aa system.out.println order maarchu
mba Posted November 4, 2011 Report Posted November 4, 2011 [color=#FF0000][font=helvetica, arial, sans-serif][b]1.2 (Displaying five messages) Write a program that displays Welcome to Java five [/b][/font][/color][b]times. [/b] [b]Ans::[/b] public class Test { int i =1; public static void main(String[] args) { while(i<=5) { System.out.println("Welcome to Java"); i++; } } i ni class variable laa kaakunda main function lo local variable laa declare cheyi.. public class Test { public static void main(String[] args) { int i =1; while(i<=5) { System.out.println("Welcome to Java"); i++; } }
PMREDDY19 Posted November 4, 2011 Author Report Posted November 4, 2011 [quote name='mba' timestamp='1320375914' post='3062463'] idhi thappu chesav baa.. 1.16 The following program is wrong. Reorder the lines so that the program displays morning followed by afternoon. public static void main(String[] args) { } public class Welcome { System.out.println("afternoon"); System.out.println("morning"); } Ans :: public class Welcome { public static void main(String[] args) { System.out.println("afternoon"); System.out.println("morning"); } } Morning followed by afternoon. annadu. aa system.out.println order maarchu [/quote] thanks baa.. inka e program okasari compile cheppu baa.. naa Daggara Eclipse edho main not found antundhi.. import java.util.Scanner; public class Convertmin2year { public static void main(String[] args) { long minutes; int years; double days; Scanner input = new Scanner(System.in); System.out.print("Enter a time in seconds: "); minutes=input.nextLong(); years=(minutes/[365*24*60]); days=(minutes%[365*24*60]); System.out.println("The "+minutes+" minutes is approximately equal to "+years+" years and "+days+" days "); } }
PMREDDY19 Posted November 4, 2011 Author Report Posted November 4, 2011 [quote name='mba' timestamp='1320375985' post='3062464'] [color=#FF0000][font=helvetica, arial, sans-serif][b]1.2 (Displaying five messages) Write a program that displays Welcome to Java five [/b][/font][/color][b]times. [/b] [b]Ans::[/b] public class Test { int i =1; public static void main(String[] args) { while(i<=5) { System.out.println("Welcome to Java"); i++; } } i ni class variable laa kaakunda main function lo local variable laa declare cheyi.. public class Test { public static void main(String[] args) { int i =1; while(i<=5) { System.out.println("Welcome to Java"); i++; } } [/quote] updated... baa. aa paina thread lo vesina programme nenu ippudu download chesina eclipse lo run chesthey main class not found ani edho vachindi..
mba Posted November 4, 2011 Report Posted November 4, 2011 try this.. e rendu lines tappu years=(minutes/[365*24*60]); days=(minutes%[365*24*60]); [] vaadakdadhu akkada.. normal brackets () vaadali.. import java.util.Scanner; public class Convertmin2year { public static void main(String[] args) { long minutes; int years; double days; Scanner input = new Scanner(System.in); System.out.print("Enter a time in seconds: "); minutes = input.nextLong(); years = (int) (minutes / (365 * 24 * 60)); days = (minutes % (365 * 24 * 60)); System.out.println("The " + minutes + " minutes is approximately equal to " + years + " years and " + days + " days "); } }
PMREDDY19 Posted November 4, 2011 Author Report Posted November 4, 2011 all now starts the visual C# 2008 : [url="http://www.andhrafriends.com/topic/227874-visual-c-2008-work-please-answers-related-postsreplies-only/"]http://www.andhrafriends.com/topic/227874-visual-c-2008-work-please-answers-related-postsreplies-only/[/url]
Recommended Posts