Penny for your thoughts, dollar edition

Report a typo

You need to create a program that converts dollars to cents. Fill the blanks in the code to make it work correctly. The program should take a double value for dollars and print the equivalent amount in cents as an integer.

Fill in the gaps with the relevant elements
public class DollarToCentConverter {
    public static void main(String[] args) {
          ;
           ();
        (cents + " cents\n");
    }
}
rounddouble= (int)int= 10.999Math.System.out.dollars * 100printlndollarscents

Create a free account to access the full topic