Use Eclipse for do this program.
Show the output of the following statements.a) System.out.printf("amount is %f %e\n", 32.32, 32.32);b) System.out.printf("amount is %5.2f%% %5.4e\n", 32.327, 32.32);c) System.out.printf("rate (%.2f) in percent is %.2f%%\n", 0.2, 0.2 * 100);d) System.out.printf("%6b\n", (1 > 2));e) System.out.printf("%6s\n", "Java");f) System.out.printf("%-6b%s\n", (1 > 2), "Java");g) System.out.printf("%6b%-8s\n", (1 > 2), "Java");h) System.out.printf("%,5d %,6.1f\n", 312342, 315562.932);i) System.out.printf("%05d %06.1f\n", 32, 32.32);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here