Concept explainers
Box Office
A movie theater only keeps 80 percent of the revenue earned from ticket sales. The other 20 percent goes to the distibutor. Write a
Movie Name: | “Wheels of Fury” |
Adult Tickets Sold: | 382 |
Child Tickets Sold: | 127 |
Gross Box Office Revenue: | $ 4582.00 |
Amount Paid to Distributor: | −$ 916.40 |
Net Box Office Revenue: | $ 3665.60 |
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
STARTING OUT WITH C++ MPL
Additional Engineering Textbook Solutions
Problem Solving with C++ (9th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Java: Early Objects (6th Edition)
Modern Database Management
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
- A/ Supermarket checkout Statement: The normal workflow of a supermarket checkout is as follows: - A customer arrives at the checkout with items to pay for - The cashier records the identification number of each item, as well as the quantity if it is greater than 1 - The cashier displays the price of each item and its label - When all the purchases are recorded, the cashier signals the end of the sale - The cashier displays the total of the purchases - The cashier tells the customer the total amount to be paid - The customer chooses the method of payment cash: the cashier collects the money, the cashier indicates the amount to be returned to the customer check: the cashier notes the customer's ID number credit card: the authorization request is sent before the entry - The cash register records the sale and prints it out. - Cashier gives customer the receipt Questions: Model this situation using a use case diagram 2. Give the sequence diagram for the use case Pay casharrow_forwardAdditional Notes: USING C# You cannot add two flights with the same flight number When you select “View Flights”, a list containing the Flight number, origin and destination for each flight must be shown. When you select “View a particular flight”, a list of all flights should be displayed and the user must be allowed to enter a particular flight number. All the information on that selected flight must be displayed. All the customers who are booked on that flight must SPECIAL NOTE: A customer can only be deleted if there are no bookings for that customer. A flight can only be deleted if there are no customers booked on the flight. You must extend the core design and add the functionality to add customers and booking features to the system. The information that must be recorded on a customer is as follows: A customer ID must be assigned to each customer by the system. (NOT entered by the user) The customer’s first name The customer’s last name. The customer’s phone (a string type…arrow_forwardSavings Account The following steps calculate the balance at the end of three years when $100 isdeposited at the beginning of each year in savings account at 5% interest compounded annually.a) Create the variable balance and assign it the value 100.b) Increase the value of variable balance by 5%, and add 100 to it.c) Increase the value of variable balance by 5%, and add 100 to it.d) Increase the value of variable balance by 5%.d) Display the value of the variable balance (rounded to two decimal places).arrow_forward
- Change the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.arrow_forwardA software company sells a package that retails for $99. Quantity discounts are given according to the following table: Qt: 10 -19 Discount: 10% Qt: 20 -49 Discount: 20% Qt: 50 -99 Discount: 30% Qt: 100 or More Discount: 40% Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Python programming questionarrow_forwardC# onlyarrow_forward
- Problem Statement for Stock Transaction Program George uses the services of a brokerage firm to buy and sell stocks. Each time he buys or sells a block of stocks, he must pay the brokerage firm a commission of 1.5% per share.Design a program that allows George to enter the number of shares in the block, the price per share when he bought the block and the price per share when he sold the block. The program should display the amount of money he paid to buy the stock and the amount of the commission. The amount of money he made when he sold the stock and the amount of the commission, the amount of profit (or loss) he madeafter paying for the purchase cost and both commissions. There are three user inputs for this problem: the number of shares in the block, the price per share when the block was bought, the price per share when the block was sold. There is one constant: the percentage of the commission (1.5%) The amount to buy the stock is: number of shares in block * purchase price per…arrow_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_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
- (Numerical) Write an assignment statement to calculate the nth term in an arithmetic sequence. This is the formula for calculating the value, v, of the nth term: v=a+(n1)d a is the first number in the sequence. d is the difference between any two numbers in the sequence.arrow_forward(Conversion) Write an assignment statement to convert temperature in degrees Fahrenheit to degrees Celsius. The formula for this conversion is Celsius=5/9(Fahrenheit32).arrow_forwardGreenLawn a local lawn care company has different pricing policies for its customers. GreenLawn sends out monthly invoices and will give discounts if payments are made within 5 days. The discounting policy is as follow: If the amount of the monthly bill is greater than $300, subtract 4 percent from the invoice; if the amount is between $300 and $100, subtract a 2-percent discount; if the amount is less than $100, do not apply any discount. All bills made via the web automatically receive an extra 3-percent discount. Develop a decision for GreenLawn discounting decisions. Decision Table submission: Include the initial table with all rules, and the most simplified table. Use different colors in the columns to easily show how columns are collapsed/simplified. please do not provideo solution in image format thank you!arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage