Given the following arrays, write a Java program to generate the output below. String [] item =
Fantastic news! We've Found the answer you've been seeking!
Question:
Given the following arrays, write a Java program to generate the output below.
String [] item = {"milo", "water", "coke", "tea", "coffee"};
double [] price = {3.00, 1.00, 5.00, 2.00, 3.50};
int [] quantity = {200, 500, 350, 100, 700};
Re-write Question 1 using array list and display the sale of the day report.
Re-write Question 1 using 2-dimensional array and display the sale of the day report.
Write a segment program to replace coke with pepsi with price of RM6.00
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: