Find the retail price for each product

Assignment Help C/C++ Programming
Reference no: EM13703000

Program: Write the program OrderCalculator.java.

When your program begins you must display a description of the program for the user and what inputs the user will be required to enter.

OrderCalculator   

A mail-order company 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
  • product 5 $6.87.

Prepare an application that reads a series of pairs of numbers as given:

Part 1: product number (must be a number in the range of 1-5 or the sentinel value. use a validation loop)

Part 2:  quantity sold

Your program should use a switch statement to find the retail price for each product.

It should display and calculate the total number of items purchased and the retail value of the items purchased..

Use a sentinel-controlled loop to decide when the program should stop looping and show the final output.

Reference no: EM13703000

Questions Cloud

Documented assembly language program : Write a complete well documented assembly language program (starts at $C000) that counts the number of 1s in each byte in a list. The LIST_IN starts at $C100
Explain the speed of the search operation : Describe a mechanism to access the telephone customer records by telephone #. Assume that we have a huge data in hand, say a million records or so.
Make a program that show the sales amount : You have to make a program that show the sales amount. Be sure to include comments. Comments should be included in the program to explain your calculations and program.
Write simple paragraph or two describing procedures : You need to write simple paragraph or two describing procedures that can be used for System Hardening of both IIS and Apache.
Find the retail price for each product : Your program should use a switch statement to find the retail price for each product - Use a sentinel-controlled loop to decide when the program should stop looping and show the final output.
Realize the circuit using a rom : A circuit has four inputs RSTU and four outputs VWYZ. RSTU represents a binarycoded- decimal digit. VW represents the quotient and YZ the remainder when RSTU. Realize the circuit using a ROM
Find the 2''s complement of a binary number : Make a circuit which gives the absolute value of a 4-bit binary number. Use four full adders, four multiplexers, and four inverters.
Find the minimum number of multiplexer and gates : find the minimum number of multiplexer and gates to realize the given function.
Find the nth largest of 2 sorted arrays of length n : In java, use divide and conquer to find the nth largest of 2 sorted arrays of length n.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd