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

  What is the internal energy of the gas

A gas is compressed from initial volume of 5.60L to 1.23L by an external pressure of 1.00atm. During the compression the gas releases 128J of hear. What is the internal energy of the gas?

  Determine the empirical formula for each substance

Determine the empirical formula for each substance.

  Calculate the percent ionization of the weak acid

A 0.0100 molal aqueous solution of a weak acid freezes at -0.0205 oC. Calculate the percent ionization of the weak acid, HA.

  Explain distinguish a metallic element from a nonmetal

Find the molcular heat capacity in units. Does the law hold up? Can you distinguish a metallic element from a nonmetal this way. Metalloids

  Find the molecular weight of the unknown compound

Find the molality of the solution. Find the molecular weight of the unknown compound please show steps

  Calculate the molecular weight of h2a

25.00 ml aliquots of thiis solution was titrated with monoprotic strong base NaOH (0.0800 M). The titre volume of NaOH was 40.00ml. Calculate the molecular weight of H2A.

  Which of the following is not an inflammable

Which of the following is not an inflammable

  Explain what is the mole fraction of methane in the mixture

A gaseous fuel mixture stored at 745mmHg and 298 K contains only methane CH4 and propane C3H8. When 11.5L of this fuel mixture is burned, it produces 774kJ of heat. What is the mole fraction of methane in the mixture

  Compute the molecular weight of sulfur

Calculate the molecular weight of sulfur if 35.5 grams of sulfur dissolve in 100.0 grams of CS2 to produce a solution that has a boiling point of 49.49 oC.

  Draw the major organic product of the reaction

Draw the major organic product of the reaction. Indicate the stereochemistry via wedge/dash bonds, including explicit H and D atoms

  Diluting to the mark with 0.50 m hcl

Problem- Using 25 mL volumetric flaks, prepare a minimum of 5 dilutions of the stock 250 ppm calcium solution to cover the range of 1-20 mg/L of calcium. Diluting to the mark with 0.50 M HCl.

  Explain compound weighs 3.95 g what is its molecular formula

A molecular compound contains 92.3% carbon and 7.7% hydrogen by weight. If 0.152 mol of the compound weighs 3.95 g, what is its molecular formula?

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