Concept explainers
Monthly Sales Tax
A retail company muse file a monthly sales tax report listing the sales for die month and the amount of sales tax collected. Write a
If the total amount collected is known and the total sales tax is 6 percent, the amount of product sales may be calculated as
where S is the product sales and T is the total income (product sales plus sales tax). The program should display a report similar to the following:
Month: August 2016 | |
Total Collected: | $26572.89 |
Sales: | $25068.76 |
County Sales Tax: | $501.38 |
State Sales Tax: | $1002.75 |
Total Sales Tax: | $1504.13 |
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
STARTING OUT WITH C++ MPL
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Introduction To Programming Using Visual Basic (11th Edition)
Artificial Intelligence: A Modern Approach
Concepts of Programming Languages (11th Edition)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Starting Out With Visual Basic (8th Edition)
- Box Office: A movie theater only keeps a percentage (20%) of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child’s ticket is $6.00.) Input: the name of the movie, number of adult tickets sold, number of child tickets sold Output: as specified below Object: cin, cout, getline, format output Note: 1. Movie names contain spaces 2, the report is aligned. 3. The decimal number is displayed with 2 decimal places.arrow_forwardPython programarrow_forwardComputer sciencearrow_forward
- The company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salaryarrow_forwardHide Assignment Information Instructions The civil engineering department has asked you to write a program to compare three different designs of water towers shown in the diagrams below. The water towers are a cylinder topped with a half sphere. The engineers want to find the design that has the highest volume. The radius of the sphere and the radius and height of the cylinder for each of the three projects will need to be input by the user. The formula for the volume of a Sphere is:V = 4/3 π r3The formula for the volume of a Cylinder is:V = π r2 h Write two functions that will calculate the volume of a sphere and a cylinder respectively. Then, use these functions to write a program that will find the design with the largest volume. Hint: Remember that the tower only consists of a half sphere.arrow_forwardProgram2: Box Office A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the distributor. Write a program that calculates a theater's gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $6.00 and a child's ticket is $3.00.) It should display a report similar to the following: NOTE: Movies' name should be enclosed within the double quotation. Movie Name: "Wheels of Fury" Adult Tickets Sold: 382 Child Tickets Sold: 127 $ 2673.00 $ 2138.40 $ 534.60 Gross Box Office Profit: Amount Paid to Distributor: Net Box Office Profit: Assume the theater keeps 20 percent of the gross box office profit.arrow_forward
- Python code easy way pleasearrow_forwardSoftware SalesA software company sells a package that retails for $99. Quantity discounts are given accordingto the following table:Quantity Discount10–19 10%20–49 20%50–99 30%100 or more 40%Write a program that asks the user to enter the number of packages purchased. The programshould then display he number of packages purchased, the amount of the discount (if any) and the total amount of the purchase after the discount.arrow_forwardA car’s miles-per-gallon (MPG) can be calculated with the following formula:MPG 5 Miles driven Gallons of gas usedWrite a program that asks the user for the number of miles driven and the gallons of gas used. It should calculate the car’s MPG and display the result.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage