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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:00
Now you’re on your own. include a short summary of this section with plots in your lab report. write a matlab script file to do steps (a) through (d) below. include a listing of the script file with your report. 1 the soundsc(xx,fs) function requires two arguments: the first one (xx) contains the vector of data to be played, the second argument (fs) is the sampling rate for playing the samples. in addition, soundsc(xx,fs) does automatic scaling and then calls sound(xx,fs) to actually play the signal. mcclellan, schafer, and yoder, dsp first, 2e, isbn 0-13-065562-7. prentice hall, upper saddle river, nj 07458. c 2015 pearson education, inc. 4 mcclellan, schafer and yoder, signal processing first. prentice hall, upper saddle river, new jersey, 2003. c 2003 prentice hall. (a) generate a time vector (tt) to cover a range of t that will exhibit approximately two cycles of the 4000 hz sinusoids defined in the next part, part (b). use a definition for tt similar to part 2.2(d). if we use t to denote the period of the sinusoids, define the starting time of the vector tt to be equal to t , and the ending time as ct . then the two cycles will include t d 0. finally, make sure that you have at least 25 samples per period of the sinusoidal wave. in other words, when you use the colon operator to define the time vector, make the increment small enough to generate 25 samples per period. (b) generate two 4000 hz sinusoids with arbitrary amplitude and time-shift. x1.t / d a1 cos.2
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
You know the right answer?
Write a program in a class flowercounter that computes the cost of flowers sold at a flower stand
Questions
question
Mathematics, 21.03.2020 02:02
question
Mathematics, 21.03.2020 02:02
question
Mathematics, 21.03.2020 02:02
question
Business, 21.03.2020 02:02
question
History, 21.03.2020 02:02
Questions on the website: 13722366