Write a program which will demonstrate how to format output. To format datais to
present it in a certain way. The same data can be formatted in many ways, someof them easy for users to understand, and some of them not.This program shouldbe an example of howJava lets you format numbers and strings. First you willneed
to study Java's formatting facilities, and then writea program whichshows the
contents of variables being printed with different widths,precisions,and alignments.Your program should:
a) Print out the result of dividing 2400 by 7, rounded off to 0, 1, 2, and 3 decimalplaces.
b) Print out the result of dividing 2400by 24.
c) Show how we can left-justifya column of several rows ofnames, and then howwe can right justify them.