Approximate number of customers

Assignment Help Basic Computer Science
Reference no: EM131192196

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

Reference no: EM131192196

Questions Cloud

Explains the various loan options : Write a "script" to be used in response to this enquiry that clearly explains the various loan options available and the benefits and disadvantages of each one
What will be the total cost of the music group : Suppose 500 people attend the party. What will be the total cost of the music group? -- The unit cost per person?
Standardization of health information : Ad Hoc Versus Standard Representations and Formal Versus Informal StandardsChange is a constant in the field of health care, and this continual evolution necessitates various means of classifying and representing the vast amount of health informat..
Data 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..
Approximate number of customers : 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 pref..
Determining the president of united states : Who is the president of united states? and how old is the president? does she have a daughter?
Find expressions for national saving per worker : Find expressions for national saving per worker and the steady-state level of investment per worker as functions of the capital-labor ratio, k.
Modern switched ethernet networks : In modern switched Ethernet networks, it is not unusual for a router to receive more traffic than it is able to forward due to the relative speeds of the Ethernet network versus the links from the router to other networks or the Internet.
Features of word : What are some features of Word that you find difficult to use, hard to locate, etc.?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Businesses rely heavily on knowledge

Businesses rely heavily on knowledge about Human Computer Interaction

  Integrate a sql statement in a php document

Do a PHP While Loop, and also integrate a SQL statement in a PHP document.

  The goods are substitutes

(Substitutes and Complements) For each of the following pair of goods, determine whether the goods are substitutes, complements, or unrelated: Peanut butter and jelly, Private and public transportation, coke and pepsi, alarm clocks and automobiles, g..

  Navigation bar is fully functional and connects all pages

Update your website that you started in Week 2 to at least 3 complete webpages, with extra placeholder pages as needed. Include multimedia (e.g. images, audio, video) appropriate to the site. Use CSS to control the look of the site. Make sure your..

  The resultant voltage v3 is in the same frequency

Q1.Three impedance are connected in parallel Z1=2+j2, Z2=1+j5, Z3=j6.? Find the equivalent admittance Y where Y=1/Z1+1/Z2+1/Z3.Q2.  V1= 3sin(wt) and V2= 2cos(wt) if V3 = V1 + V2 find the expression of V3 in a sine waveform : V3 = Rsin(wt+α) and verif..

  Interface interaction style for a particular task

Demonstrate the ability to select an appropriate user interface interaction style for a particular task. Explain the different usability data-gathering techniques Create a product evaluation through a formal framework.

  Main advantage b-trees

Explain the main advantage B-trees have over a multilevel index of the type.

  Define the term principal-agent problem

1) Define the term principal-agent problem. What principal-agent problems exist in a market? What principal-agent problems exist in a firm? What are possible solutions to principal-agent issues within the firm?

  What is called a whitespace character

Given an int variable modelYear write a statement that assigns true to norecall if the value of modelYear does NOT fall within the two recall ranges and assigns false otherwise. Do not use an if statement in this exercise!

  Who are the typical system stakeholders

Who are the typical system stakeholders

  Briefly explain why buffering could improve sequential file

Briefly explain how Java serialization is used. Briefly explain what major restriction Java applets have which normal Java programs do not and why this is the case. . Briefly explain the why buffering could improve sequential file input/output throug..

  Explain nested join

Explain Nested Join, Hash Join, and Merge Join in SQL Query Plan.

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