One day soon, the US government will finally decide to do away with pennies, as they currently cost more than a penny to produce. Complete the program below so that it prompts the user for a price in dollars and cents, determines the cents portion of the price to the nearest dime, and prints the revised price.

For example, if a price was $32.56, the revised price would be $32.60. However, if a price was $23.34, the revised price would be $23.30.

Complete the following file:

NearestDime.java

import java.util.Scanner; /** This program reads a price in dollars and cents, rounds the price to the nearest dime, and prints out the revised price. */ public class NearestDime { public static void main(String[] args) { System.out.print("Please enter the price: "); Scanner in = new Scanner(System.in); double price = in.nextDouble(); int pennies = (int) Math.round(price * 100); // Determine dollar and cents worth of pennies int cents; int dollars; // Your work here // Round cents to nearest dime int dimes; // Your work here // Print revised price double revised = dollars + dimes * 0.1; System.out.printf("%.2f\n", revised); } }