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.
Type casting
Penny for your thoughts, dollar edition
Report a typo
Fill in the gaps with the relevant elements
public class DollarToCentConverter {
public static void main(String[] args) {
;
();
(cents + " cents\n");
}
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.