import java.util.Scanner;

public class MoneyConversion
{
// This program reads a monetary amount and computes the equivalent in bills and coins
public static void main (String[] args)
{
double total;
int tens, fives, ones, quarters, dimes, nickels;
int remainingCents;

Scanner scnr = new Scanner(System.in);

// Read in the monetary amount
total = scnr.nextDouble();

// Add the remaining code to finish out the program

}
}

Respuesta :

Using the knowledge in computational language in JAVA it is possible to write a code that write a function cascade that takes a positive integer and prints a cascade of this integer

Writting the code:

import java.util.*;

public class ChangeTendered {

   public static void main(String[] args){

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter the purchase price: ");

       double price = scan.nextDouble();

       System.out.println("Enter the amount payed: ");

       double ammountPayed = scan.nextDouble();

       double changeDue = ammountPayed - price;

       int dollars = (int)changeDue;

       System.out.println("Return"+ dollars+ "Dollars");

       scan.close();

   }

}

See more about JAVA at brainly.com/question/18502436

#SPJ1

Ver imagen lhmarianateixeira