Home /
Expert Answers /
Computer Science /
thank-you-add-on-submit-the-following-two-files-1-cellphonebillreport-java-source-code-with-output-pa368
(Solved): Thank you Add on Submit the following two files: 1. CellPhoneBillReport.java source code with output ...
Thank you
Add on
Submit the following two files: 1. CellPhoneBillReport.java source code with output listed as comments at the end of your program 2. Screenshot of code in development environment that shows entire workspace with code execution. (.png or .jpg Instructions: Download the starting code CellPhoneBillReport.java provided in the assignment. Add to this code skeleton so that your program performs basic array operations and displays results as indicated in the example output below. Your program should: prompt the user for their name and the year generate a cell phone report that: displays the month and cell phone bill amount for all 12 months - data is found in the cellPhoneBill array and the month array counts and displays how many cell phone bills were over \( \$ 50.00 \) finds and displays the highest cell phone bill finds and displays the lowest cell phone bill totals the cell phone bill for 12 months
Iviore intormation about the NumberFormat class The NumberFormat class can be used specifically for formatting currency (money). The NumberFormat class is part of the java.text package, so the following import statement is required at the top of your program. import java.text.NumberFormat; The following statement will create a NumberFormat object called cFmt that can be used to display a number as currency. NumberFormat \( \mathrm{cFmt}= \) NumberFormat.getCurrencyinstance(): We can then use the format method from the NumberFormat class to display a number. In the following statement, highestBill is formatted with a leading dollar sign, commas if needed, and two digits to the right of the decimal place. System.out.println("Highest monthly bill : " \( + \) cFmt. format(highestBiili): So here are a few examples of what will be displayed. If highestBill is \( 344.19 \), then the following will be displayed: Highest monthly bill: \( \$ 344.19 \) If highestBill is \( 89323.19 \), then the following will be displayed. Highest monthly bil1 : \( \$ 89,323.19 \) If highestBill is 15 , then the following will be displayed Highest monthly bill : \( \$ 15.00 \) If highestBill is \( 123456789.11 \), then the following will be displayed Highest monthly bil1 : \( \$ 123,456,789.11 \)