Professional Documents
Culture Documents
LabExer2 AMP 2
LabExer2 AMP 2
LabExer2 AMP 2
BT2101
Laboratory Exercise
import java.util.*;
String itemName;
double itemPrice;
int itemQuantity;
double amountDue;
This study source was downloaded by 100000881117976 from CourseHero.com on 02-28-2024 07:45:19 GMT -06:00
https://www.coursehero.com/file/115021522/LabExer2-AMP2docx/
System.out.println("Enter the name of the item you are purchasing.");
itemName = s.nextLine();
itemQuantity = s.nextInt();
itemPrice = s.nextDouble();
System.out.println("You are purchasing " + itemQuantity + " " + itemName + "(s) at " +
itemPrice + " each.");
This study source was downloaded by 100000881117976 from CourseHero.com on 02-28-2024 07:45:19 GMT -06:00
https://www.coursehero.com/file/115021522/LabExer2-AMP2docx/
Powered by TCPDF (www.tcpdf.org)