Write a program in a class flowercounter that computes the


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 camation- are stocked and cost, respectively, R5.00, R7.50, R7.95, R8.00, and R9.45 per flower. Create an array of strings that holds the names of these flowers. Create another array (of type double) 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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program in a class flowercounter that computes the
Reference No:- TGS0146458

Expected delivery within 24 Hours