Write a program to input a purchase amount

Assignment Help Chemistry
Reference no: EM13900917

(TCOs 2,4, 5, and 8) Write a program to input a purchase amount and calculate the sales tax and total due. The sales tax depends on the county identifying code. Counties with a number less than 20 have a 5% sales tax. The 21-35 codes have a sales tax of 6%. Codes above 35 have a sales tax of 7%. The purchase amount and county code are entered by the user. Use a loop to validate that the county code is between 10 and 40. Display the amount of the sales tax and the total.

 

 

Reference no: EM13900917

Questions Cloud

Information is available for both atlas company : At the end of the current year, the following information is available for both Atlas Company and Bryan Company.
Distrubance-adapted ecosystems and ecoystems : How can I explain the difference between distrubance-adapted ecosystems and ecoystems that simply never mature and never reach climax conditions?
Calculate the potential distribution using the fdm : Calculate the potential distribution using the FDM on the dielectric surface bounded by conducting matarials at different potentials
Cash as a way of aiding to bring about general economic goal : cash as a way of aiding to bring about general economic goals
Write a program to input a purchase amount : (TCOs 2,4, 5, and 8) Write a program to input a purchase amount and calculate the sales tax and total due. The sales tax depends on the county identifying code. Counties with a number less than 20 have a 5% sales tax. The 21-35 codes have a sales tax..
Movements demonstrate a concern over : Both movements demonstrate a concern over how the environment, especially public land is used. How, then, are the movements different?
Organization-wide strategic plan communication dissemination : organization-wide strategic plan communication dissemination and recommend communication strategies
Explain the meaning and significance of the given ratios : Explain the meaning and significance of the following ratios that have been calculated from the financial information given in this question and for the previous year.
Construct a piece wise function : Using points, straight lines and possibly the curve of a parabola, construct a piecewise function whose graph looks like a smiling face.

Reviews

Write a Review

Chemistry Questions & Answers

  State titration curve for titration at the equivalence point

A student dissolves 0.2975 g of the unknown weak acid to give 100. mL solution. S/he obtains the following titration curve for his/her best titration. At the equivalence point, 19.0 mL of 0.1000 M NaOH was added.

  Compute the average speed of an oxygen gas molecule

How much faster do ammonia (NH3) molecules effuse than carbon monoxide (CO) molecules? Enter the ratio of the rates of effusion.

  Explain which of the compounds have just bonding pairs

Explain which of the compounds have just bonding pairs of electrons as well as around the central atom. Explain which have a single nonbonding pair of electrons around the central atom

  Explain why gasoline will not dissolve in water

Explain why gasoline will not dissolve in water

  Deduce the structure of each alcohol

Deduce the structure of each alcohol (Structure of A and structure of B)

  Explain how many grams of h2 gas are in the sample

A ballon is filled with H2 gas and has a pressure of 1.10 atm, volume of 10.2L, and a temp of 298 K. How many grams of H2 gas are in the sample

  Explain ph is required to start precipitation of fe(oh)3

What pH is required to start precipitation of Fe(OH)3 from a 0.110 M solution of FeCl3? Ksp of Fe(OH)3 = 4.0 10-29.

  Explain 5-dihydropentalene reacts with two equivalents

5-dihydropentalene reacts with two equivalents of butyllithium to form dianion of (C8H6)2-. intend a structure for this dianion and suggest why it form so readily

  Determine the concentration of the sugar solution

you have 2.50 ml of 4.00 M sugar solution. You add 217.3 ml of water to this solution. determine the concentration of the sugar solution after the water has been added.

  Evaluate the theoretical yield of pbo in grams

A 8.90g sample of lead nitrate was heated in an open container to cause decomposition. Calculate the theoretical yield of PbO in grams.

  State hydrangeas are flowers that retain blue coloration

Hydrangeas are flowers that retain blue coloration when grown in acidic soil and pink when grown in neutral or alkaline soil

  Explain what would be the volume of the ozone

A 0.468 mol of O2 gas has a volume of 11.5 L at a certain temperature and pressure. If all this O2 were converted to ozone (O3) at the same temperature and pressure, what would be the volume of the ozone. 3O2?2O3

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