subject
Computers and Technology, 14.07.2019 05:10 Kassi07

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 cents, 75 cents, 1.50, 50 cents, and 80 cents 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

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:00, mterzic1
Assume that you have an array of integers named a. which of these code segments print the same results? int i = 1; while(i < a. length) { system. out. println(a[i]); i++; } int i; for (i = 0; i < a. length; i++) { system. out. println(a[i]); } for (int i : a) { system. out. println(i); } i and ii only ii and iii only i and iii only all three print the same results. all three print different results.
Answers: 3
image
Computers and Technology, 21.06.2019 20:40, cmflores3245
Convert and simplify the following sentences to conjunctive normal form (cnf): (a) (p → (q → r)) → (p → (r → q)) (b) (p ∧ q) → (¬p ↔ q) (c) ((p → q) ∧ ¬q) → ¬p
Answers: 3
image
Computers and Technology, 22.06.2019 19:30, Jbutler15
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
image
Computers and Technology, 23.06.2019 06:00, sebcbal
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
You know the right answer?
Write a program in a class flowercounter that computes the cost of flowers sold at a flower stand

Questions in other subjects:

Konu
English, 08.06.2021 16:00
Konu
Mathematics, 08.06.2021 16:10