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

  Implement a program to find the position of a cannonball

Write a C++ program that calculates the position of a cannonball that is fired straight up in the air - Implement a program to find the position of a cannonball

  A program that takes into account a pre given array

Problem: A program that takes into account a pregiven array and prompts the user to enter a return per minute value.

  Create class that allows you to generate number of plants

In your driver, you should create at least 2 different plants, after you instantiate a plant, you should print out the information about the plant, then water the plant at least three times and then print out the plant again.

  Local diner that allows customers to see the diner''s menu

Design a program to be used for a small local diner that allows customers to see the diner's menu and then make their meal selections using the program.The program will also calculate and print an itemized bill.

  Program that will read in 8 numbers into an array

Write a program that will read in 8 numbers into an array. Print out the numbers from the array, then print the 2nd number, the 5th number and the last number.

  Each clone will communicate to the parent process

Write a program that will create 3 clones. Each clone will communicate to the parent process over a pipe (There are 3 pipes) Each process will write Process n.

  A file (complex.txt) which has a number of complex numbers

Read in a file (complex.txt) which has a number of complex numbers in the form of a+bi (e.g. 3+5i  2-3i etc).

  You have to develop a basic temperature classnbsp base

you have to develop a basic temperature class.nbsp base skeleton code and a simple driver have been provided for

  State diagram to recognize one form

Design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin with /* and end with */. and also Write and test the code to implement the state diagram.

  Write a c program to print permutation

Given integer n and permutation of numbers 1,2,..n-1, c program to print permutation that lexicograghically precedes given input permutation if permutation is least print input permutation itself

  C assignment of curl library

C Assignment Curl library must be used To be done on linux, it should be compiled using the following command: gcc -Wall -ansi -pedantic NameOfFile.c -lncurses Please make sure it is commented with clarification Variable names in camel case

  Menu with options to enter student information

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to store and print information entered.

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