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

  The westfield carpet company has asked you to write an

the westfield carpet company has asked you to write an application that calculates the price of carpeting for

  Write a program that calculates net pay

Write a program that calculates Net Pay. It should do this by calling a function called CalNetPay that calculates and returns Net Pay when given the hours worked and the hourly pay rate. The main function should pass the hours worked and pay rate ..

  Develop a global function customerinformation

Use a parameterized constructor to initialize data members - Develop a global function "CustomerInformation" that prints the customers information (number of dept each customer can handel). ( Use copy constructor).

  The knight''s tour problem

The knight's tour problem is as follows: given an initial position for a single knight on an otherwise empty chessboard, find a sequence of 64 moves that will make the knight visit every square on the board exactly once

  Write function that finds the minimum of three double value

1. Write a function that finds the minimum of three double values. This function should use another function that finds the minimum of two double values.

  Prepare a program that uses at least two functions that can

prepare a program that uses at least two functions that can be called from your main. this program is a number game

  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.

  Random permutations

Write a program in C++ that gives a prompt to the users, asking for an integer M.It then prints out a M different random permutations, one on each of M lines, of the numbers 1, 2, ... , 10, separated by spaces or tabs.

  Create an employee class

Create an employee class, including two data: an employee number (type int ) and the employee's compensation (in dollars; type float). The member data should comprise an int for storing the employee number and a float for storing the employee's co..

  Reportingmark a string of 2 to 4 upper case

Declare a structure named: Car containing: reportingMark a string of 2 to 4 upper case characters carNumber an int kind could be box tank flat or other loaded a bool destination a string with a destination or the word NONE Note: A destination is r..

  Implement method to advance any given date by one day

Write C++ implementation of this method. Create and specify any other methods that you require. Include comments which will be helpful to someone who will maintain implementation in the future.

  Describe what side effect is the expression contains

Provide an example in C++ of an expression whose value depends upon the evaluation order - Show the orders that produce different values and the values they produce.

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