• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

test

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A mail-Order house sells five different products whose retail price for each product are as follows: product 1, $2.98;product2, $4.50;product3,$9.98;product4,4.49;product5,$6.87. Write an application that reads a series of pairs of numbers as follows:a) product number b) quantity sold for one day.
Your program should use a switch structure to help determine the retail price for each product. It should calculate and display the total retail value of all products sold last week. Use TextField to obtain the product number from the user. Use a sentinel-controlled loop to determine when the program should stop looping and display the final results.. HELP
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch!
So, what have you thought of so far in order to begin to solve this problem?
 
All of the following truths are shameless lies. But what about this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic