Question: /** * Fixing Bugs * @author First and last name */ import java.util.Scanner; public class lab3 { public static void main(String[] args){ Scanner kb =
/** * Fixing Bugs * @author First and last name */ import java.util.Scanner; public class lab3 { public static void main(String[] args){ Scanner kb = new Scanner(System.in); double cost = kb.nextDouble(); String item = kb.nextLine(); int unit = kb.nextInt(); System.out.printf("Cost: %f - Item: '%s' \\ Quantity: %i", cost, item, unit); } } hi, can you help me fix this code? (JAVA program)
input:
10.00
Ketchup
1
Ouput
Cost: 10.00 - Item: 'Ketchup' \ Quantity: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
