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

  Eliminating this funding source and the specific methods

Students need to research a minimum of 3 sources (of which only 2 may be cited from the internet) about a financial source of funding for Al Qaeda.

  Determine the optimum sampling rates

Be sure to submit your homework in the WebTycho assignments folder no later than the due date listed in the syllabus.

  What is the address space in each of the following systems

An address space has a total of 1024 addresses. How many bits are needed to represent an address?

  Research terminology and the scientific method

Research Terminology and The scientific Method

  What would the horizontal and vertical propagation limits

Suppose that privilege (a) of Exercise 24.32 is to be given with GRANT OPTION but only so that account A can grant it to at most five accounts, and each of these accounts can propagate the privilege to other accounts but without the GRANT OPTION p..

  Discuss the pros and cons of two information security

Discuss the pros and cons of two information security management models that would be appropriate for ChoicePoint to implement.

  Which two technological factors limit the realism

Remixing songs has become popular as a result of the emergence of digital audio technology. Explain why these two trends are related.

  Why does wireshark show the actual mac address

Why does Wireshark show the actual MAC address of the local hosts, but not the actual MAC address for the remote hosts?

  Find out winner in card game

When there is tie, nobody loses. If first two cards total 8 or 9, hand is called a "natural" and it wins automatically, unless both hands have equal value "naturals", in which case it's a tie.

  What are some uses for wrapper classes

Wrapper classes are classes that surround primitive types with additional functionality. What are some uses for wrapper classes? Show some examples of how they could be used.

  Esper is a component for complex event processing

Esper is a component for complex event processing (CEP). We use Esper in this exercise to learn about stream database systems and complex event processing. The scenario used in the exercise is building a stock trading robot. The events (ticks) are..

  What is the big o of the algorithm

The previous code shows only the repetition in the algorithm, not the computations that occur within the loops. These computations, however, are independent of n . What is the Big O of the algorithm? Justify your answer.

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