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

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Draws a pyramid consisting of bricks

Write a C program that draws a pyramid consisting of bricks arranged in horizontal rows, so that the number of bricks in each row decreases by one as you move up the pyramid.

  Write c program that prompts for variable number of integers

Write a C program that prompts for a variable number of integers, adds them up, averages them, and prints out the average.

  Write the output of the program

Design a C++ program that will interactively prompt for and read the name of the input file interactively prompt for and read the name of a file to write the output of the program to write the following to the specified output file your name, sect..

  Implement the tronomino tiling algorithm

Implement the tronomino tiling algorithm,  our program should take an arbitrary input positive integer  k  in the Linux command line and generate a 2 k  * 2 k  board.

  The funtion should take as parameters

Write a function in c ++ that multiplies two functions. the funtion should take as parameters two fraction structures. Then, the function should multiply the two fractions and return the solution as a fraction structure.

  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.

  How a base version of this assignment works

For this assignment you are to create an interactive moving sign in the context of a cityscape street scene. Click the link below to see how a base version of this assignment works. Type a message in the long blank slot at the top left, and then clic..

  Demonstrate the construction and output of an array

In fluid mechanics, the Reynolds number (Re) is a dimensionless quantity that is used to help predict similar flow patterns in different fluid flow situations. For example, Reynolds numbers can be computed for different velocities of fluid flow over ..

  Add 10 people to the line

Add 10 people to the line and process them. Each time you process someone, print out their ticket information. After all 10 have been serviced, print the average wait time. Below is an example of the time calls you will need and a wait function.

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