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

  Implementation of the getproductid function

Implementation of the getProductID function is that it returns the special error code of -1 if the target name is not found

  Find the average of four 16-bit unsigned integers

Write a program (starting at address $4000) to find the average of four 16-bit unsigned integers stored at locations $5000, $5002, $5004 and $5006 and store the 16-bit result at location $5010.

  What does the term polymorphism mean

What does the term polymorphism mean? Provide an example.

  Explain in a one to two 1-2 page narrative a use case

as an intern software developer for a retail bank you have been tasked with developing use cases to support the atm

  Writing a program that creates a linked list

Writing a program that creates a linked list from 100 randomly generated numbers and sorts the using a heap. One heap in ascending order and one heap in descending order. Then displays the original linked list and both sorted lists.

  Write a program that calculates the average rainfall

Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

  Algorithm to determine which items to take to max weight

Write an algorithm to determine which items to take to maximize the weight of his loot bag. He cannot take a fraction of an item and each item must be taken, or left behind. Loot bag size is Z and and the input is an array of item wieghts as integers..

  Task 1 write compile and run the following two programs

task 1 write compile and run the following two programs using cc programming method. select the appropriate defined

  Program that asks user to enter the size of the matrix

Write a program that asks user to enter the size of the matrix (rows and column) then, it asks the user to enter the elements of two matrices and finally it adds two matrix and displays the result in C language.

  Write a program that will convert us dollar amounts

Write a program that will convert US dollar amounts to Canadian dollar (1 CND = 0.92 USD). Format your currency amounts in two decimal places and trailing zeros.

  Make a class employee

Make a class EMPLOYEE with a name and salary. Make a class MANAGER inherit from EMPLOYEE. Add an instance field, named DEPARTMENT

  Write a program using vectors and iterators that allows a

write a program using vectors and iterators that allows a user to maintain a personal list of dvd titles. the user

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