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 class has three pieces of information as data members

Create a class called Date in C++ that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int).

  Windows application that function like a banking account

Create a Windows application that function like a banking account register. Separate the business logic from the presentation layer. The graphical user interface should allow user to input the account name, number, and balance.

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Draw the heap

Eric Rowe Starting with an empty minheap, draw the heap after each the completion of the following operations  and repeat for a maxheap (replace removeMin() with removeMax()). Upload your drawings here. Hand drawn is fine:

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Design a class named employeerecord

Design a class named EmployeeRecord that holds an employee's ID number, name, and payrate. Include mutator methods to set the values for each data field and output the values for each data field. Create the class diagram and write the code that

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Calculate the net pay as the gross less the taxes

Design and code a new function that accepts as parameters the gross pay by value and the federal tax, state tax, local tax, SS tax, and net Pay by reference.

  Write the code

Write a program that allows an instructor to keep a grade book. Each students has scores for exams, homework assignments, and quizzes.

  Write a function to arrange 10 numbers stored in an arraye

Writ a funtion to arrange 10 numbers stored in an array forom the largest to the smallest and pass the results to main program.

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

  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.

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