Write a program in a class FlowerCounter that computes the cost of flowers sold at a flower stand. Five kinds of flowers—petunia, pansy, rose, violet, and carnation— are stocked and cost, respectively, 50¢, 75¢, $1.50, 50¢, and 80¢ per flower. Create an array of strings that holds the names of these flowers. Create another array that holds the cost of each corresponding flower. Your program should read the name of a flower and the quantity desired by a customer. Locate the flower in the name array and use that index to find the cost per stem in the cost array. Compute and print the total cost of the sale.
What will be an ideal response?
See the code in FlowerCounter.java.
Computer Science & Information Technology
You might also like to view...
The Quick Access Toolbar appears in the ________ corner of the Project 2013 window
A) bottom-right B) bottom-left C) top-left D) top-right
Computer Science & Information Technology
A setting called airplane mode lowers the output power of the Wi-Fi and Bluetooth antennas allowing these networks to function, but at a reduced range.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology