Answered You can hire a professional tutor to get the answer.

QUESTION

Write a program in a class FlowerCounter that computes the cost of flowers sold at a flower stand.

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.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question