Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 26 May 2017 My Price 6.00

An online retailer sells five products whose retail prices are as follows

An online retailer sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49 and product 5, $6.87. Write an application that reads a series of pairs of numbers as follows:

a) product number

b) quantity sold

Your program should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the program should stop looping and display the final results.

 

Answers

(8)
Status NEW Posted 26 May 2017 08:05 AM My Price 6.00

-----------

Attachments

1495788521-1856676_2_636313092277655020_sample-output.PNG
file 1495788544-Answer.docx preview (588 words )
(-----------Cal-----------cul-----------ati-----------ng -----------Sal-----------es)----------- An----------- on-----------lin-----------e r-----------eta-----------ile-----------r s-----------ell-----------s f-----------ive----------- pr-----------odu-----------cts----------- wh-----------ose----------- re-----------tai-----------l p-----------ric-----------es -----------are----------- as----------- fo-----------llo-----------ws:----------- Pr-----------odu-----------ct -----------1, -----------$2.-----------98;----------- pr-----------odu-----------ct -----------2, -----------$4.-----------50;----------- pr-----------odu-----------ct -----------3, -----------$9.-----------98;----------- pr-----------odu-----------ct -----------4, -----------$4.-----------49 -----------and----------- pr-----------odu-----------ct -----------5, -----------$6.-----------87.----------- Wr-----------ite----------- an----------- ap-----------pli-----------cat-----------ion----------- th-----------at -----------rea-----------ds -----------a s-----------eri-----------es -----------of -----------pai-----------rs -----------of -----------num-----------ber-----------s a-----------s f-----------oll-----------ows-----------: -----------a) -----------pro-----------duc-----------t n-----------umb-----------er ----------- b)----------- qu-----------ant-----------ity----------- so-----------ld ----------- Yo-----------ur -----------pro-----------gra-----------m s-----------hou-----------ld -----------use----------- a -----------swi-----------tch----------- st-----------ate-----------men-----------t t-----------o d-----------ete-----------rmi-----------ne -----------the----------- re-----------tai-----------l p-----------ric-----------e f-----------or -----------eac-----------h p-----------rod-----------uct-----------. I-----------t s-----------hou-----------ld -----------cal-----------cul-----------ate----------- an-----------d d-----------isp-----------lay----------- th-----------e t-----------ota-----------l
Not Rated(0)