Question: I want this answer in Java using nested If statements. Problem 4: Cash Register - Code Processing Input You will receive (from the user) the
Problem 4: Cash Register - Code Processing Input You will receive (from the user) the following as input (in order): - (double) The current balance of the cash register (e.g., 100.0) - (double) The amount that was paid by the customer (e.g., 20.0) - (double) The cost of the item purchased by the customer (e.g., 15.99) - (String) The code typed in by the teller (e.g., c) Processing 1. Calculate the amount of change to return to the customer 2. Calculate the cash register balance 3. Determine whether a transaction is cancelled or not 4. Determine whether a transaction is complete or not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
