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

  Determine the mass in grams of al that burns

The heat of formation of Al2O3(s) is change Hf= -1669kJ/ /mol. a.) Calculate the heat evolved when 3.47 g of Al burns in oxygen. b.) Find the mass in grams of Al that burns when 1039 kJ are evolved.

  Calculate the final ph of naoh

Calculate the final pH when 2.6 mmole NaOH is added to 1 mmole phosphoric acid, given pKa1 = 2.1, pKa2 = 7.2 and pKa3 = 12.4

  Explain what is the final thickness of the dry thermal oxide

To produce a device isolation trench you first use CVD to deposit an oxide of 50nm on Si(100). You follow that by a dry thermal oxidation at 1000C for 30 min. At last you fill the rest of the trenches with a CVD Si3N4 layer. a) Explain what is the..

  Define what is the rate of change of the total pressure

The decomposition reaction given below: 2 NH3(g) 1 N2(g) + 3 H2(g) is carried out in a closed reaction vessel. If the partial pressure of NH3(g) is decreasing at the rate of 131 torr/min, what is the rate of change of the total pressure in the ves..

  Compute the potential of the following cell

Calculate the potential of the following cell and indicate whether the reaction is expected to be spontaneous. Cr + 3 Ag+ ---> Cr3+ + 3Ag

  Define the pressure that predicted by the ideal gas equation

Using the data shown in the table, calculate the pressure exerted by 1.00 moles of CO2 confined in a volume of 3.00 L at 450. K. Compare the pressure with that predicted by the ideal gas equation

  Calculate the molar concentration of oh - ions

Calculate the molar concentration of OH - ions in an 1.43 M solution of hypobromite ion, BrO- (Kb = 4.0 10-6).

  Write the rate law for the clock reaction

Write the rate law for the clock reaction (equation 1) using variable for exponents.

  Nitrogen and oxygen not react at room temperature

Question- Nitrogen and oxygen do not react appreciably at room temperature, as illustrated by our atmosphere. But at high temperatures, the reaction below can proceed to a measurable extent.

  How does direct current break apart water molecule

how does direct current break apart water molecule? Does the DC current fill the outer shell full of electrons making a weaker attraction so hydrogen seperates from oxygen?

  Compute the heats of combustion of the alcohols

Methanol, ethanol, and n-propanol are three common alcohols. When 5.00 g of each of these alcohols is burned in air, heat is liberated. Calculate the heats of combustion of these alcohols in kJ/mol.

  Explain the lightning strike if sound travels

A lightning flash is seen and then 1.9 seconds later the thunderclap is heard. How far away in miles did the lightning strike if sound travels 1087 feet per second and a mile is exactly 5280 feet

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