Given a character code to indicate the type of customer

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

Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchased:

Amount < $100 Discount = 2%
Amount ? $100 and < $500 Discount = 5%
Amount ? $500 Discount = 10%

Given a character code to indicate the type of customer ('R' or 'W') and an amount purchased, calculate how much the customer will owe. The output will be formatted with 2 decimal places.

Reference no: EM13163969

Questions Cloud

Write a program that will continuously prompt the user grade : Write a program that will continuously prompt the user for a grade (in the range of 0 to 100) until a sentinel value of 999 is entered. The program will then display the average of all grades entered, formatted to 1 decimal place. Assume the grades a..
Assume that the passwords were eight characters : Assume that the passwords were eight characters long but that the salt length was increased to 24 bits. Again, the salts (and the corresponding algorithms) are known to all users. What would be the expected time to find all users' passwords using ..
Calculate the molar mass of the acid : A 2.067-g sample of a monoprotic acid was dissolved in water. It took 25.24 mL of a 0.1578 M NaOH solution to neutralize the acid. Calculate the molar mass of the acid.
What mass of sucrose should be combined : What mass of sucrose should be combined with 462 of water to make a solution with an osmotic pressure of 8.30 at 270 ? (Assume the density of the solution to be equal to the density of the solvent.)
Given a character code to indicate the type of customer : Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchas..
State hcooh and hcoona : HCOOH and HCOONa How many milliliters of HCOOH and HCOONa would you use to make approximately a liter of the buffer?
Identify and describe the main characteristics and attribute : Describe the types and sources of information available to the marketer for use in segmenting and profiling markets. What information sources were available to you for use in your segmentation exercise?
Production support system developed a problem : Last Monday morning, the production support system developed a problem. When a screen display for certain parts was requested, the displayed values were garbled. When she was alerted to the situation, Marsha Stryker, Tarheel's IT manager, immediat..
Determine the ph of the solution before the addition hno3 : Determine the pH of the solution before the addition of any HNO3. The Kb of NH3 is 1.8 × 10-5. a. 4.74 b.9.26 c.11.13 d. 13.00 e.12.55

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