Problem regarding the amount of a purchase

Assignment Help Basic Computer Science
Reference no: EM131189039

Question 1: Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state sales tax and the county sales tax. Assume the state sales tax is 4 percent of the purchase amount, the county sales tax is 2 percent of the purchase amount. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax)

Hint: Use 0.04 for 4 percent, 0.02 for 2 percent in the calculation.

Question 2: A soft drink company recently surveyed 12467 of its customers and found that approximately 14 percent of those surveyed purchase one or more energy drink per week. Of those customer who purchase energy drinks, approximately 64 percent of them prefer citrus-flavored energy drinks. Write a program that displays the following:

  • the approximate number of customers who purchase one or more energy drinks per week
  • the approximate number of customers who prefer citrus-flavor energy drinks

Requirements:

1. Turn in the .java file. I do not need the .class file.

Reference no: EM131189039

Questions Cloud

How does it differ from soviet-style red directors : Does this matter? Why? How does this differ from shareholding Western corporate managers? How does it differ from Soviet-style "Red directors" whose main task is the fulfillment of state plans?
Estimate of replacement cost : The landlord carries contents insurance that should cover the damage to the furnishings, equipment, and to the computers, and the insurance company adjuster will come tomorrow to assess the furnishings and equipment damage. However, your boss is sure..
Structure and perform any necessary computations : Assume you are given a file containing a trillion records. While inbuilt data structures in Python (e.g., lists, dictionaries) are efficient, why is it a bad idea to load a trillion records into a data structure and perform any necessary computati..
What is business and goal or purpose of business : There was once a student who wanted a business degree. This student was overheard one day saying the following: Why do I have to take Accounting? I am not going to be an accountant! Can you make a case for accounting in the BBA program? What is busin..
Problem regarding the amount of a purchase : Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state sales tax and the county sales tax. Assume the state sales tax is 4 percent of the purchase amount, the county sales tax is 2 perc..
Explain how the federal system of government works : Briefly discuss the reason for the charges and provide two (2) reasons why you agree or disagree with the verdict and any penalties - Explain how the federal system of government works.
Discuss critical success factors leading to your decision : Discuss the critical success factors leading to your decision to locate the College Pretzel Company (CPC) in your apartment. Include in your plan the key factors that will be important when you decide to expand CPC to other college campuses and th..
Ethical practices in faces of internal or external pressures : Select a publicly-traded firm of your choice that enjoys a solid shareholder base and launched within the past 10 years. What challenges has this firm encountered (or is likely to encounter) in terms of 1) incorporating ethics into financial manageme..
How does chinese private ownership differ from the ideal : Private property is often casually assumed to be everywhere the same. How does Chinese private ownership differ from the ideal, and why does this matter?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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