A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a c++ 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. Assume the price of an adult ticket is $10.00, the price of a child's ticket is $6.00 and the theater keeps 20% of the gross box office profit.
Q: Is it important to keep an eye out for anything in particular when creating software? The other four…
A: Full stack info: Any excellent programmer or designer requires specific knowledge and skills. The…
Q: To clarify, what does A.I. actually mean?
A: Artificial intelligence is a discipline of computer science that creates smart sensors to execute…
Q: There is a wide range of motivations among those who enjoy cybercrime.
A: Cybercriminals are attracted to crime for a variety of reasons.
Q: The primary differences between the Core i3 architecture and the ARM architecture lie in the…
A: Processor Core i3: The Core i3 has built-in graphics. The Core i3 is capable of supporting the…
Q: How do you close a file that is no longer in use? Group of answer choices delete file; ~file;…
A: Dear Student, The answer to your question is given below -
Q: What will happen if the synchronization is not handled in your simple OS? Illustrate by example the…
A: Process synchronization: Coordinating the execution of processes so that no two processes can access…
Q: Does the OS's microkernel adhere to any established standards for structure? Discuss the…
A: Introduction ; Operating systems with a micro kernel reduce the kernel to just the most essential…
Q: What would be the printout of the following code if the same file.txt was used as above? int main()…
A: The given code snippet:- int main() { fstream file("file.txt", ios::in); char ch; file.get(ch);…
Q: What do we call the OS parts that live in RAM? Is there a time limit on how long these parts of the…
A: Dear Student, The answer to your question is given below -
Q: how with the aid of pseudocode how you would calculate all the prime numbers to n where n is an…
A: Dear Student, The pseudocode is given below -
Q: What exactly does it mean for a computer to be operating in kernel mode, and why is this significant…
A: Introduction: The kernel of an operating system is a computer software that acts as the system's…
Q: Write program that simulates the toss of a six sides die. What is the ratio of the number 2 with the…
A: Dear Student, Here, Input will be the number of times you want to toss the die. Output will be the…
Q: Use of tailor-made software may be used to five distinct ends (Definition of customized software -…
A: Some of the customized software-applications must be highlighted. Customized software is software…
Q: Create an unrestricted computational grammar that reverses any string of a's and b's. For example,…
A: Unrestricted Grammar Unrestricted Grammar or Phrase Structure is common in the Chomsky Hierarchy of…
Q: Tell me about the upsides of utilizing a WYSIWYG editor and the problems that may crop up if I…
A: The scary-looking acronym actually stands for What You See Is What You Get. WYSIWYG HTML editors are…
Q: The path length of a tree T is the sum of the depths of all positions in T. In the existing class…
A: The solution for this question has been given below..
Q: Searching: bool linear_search(const bool binary_search(const int arr[], int n, int value, int&…
A: C++ code: #include<iostream>using namespace std; int linear(int ar[],int size,int item){…
Q: What is the main difference between a Scrum Master and a project manager? A Scrum Master is…
A: Dear Student, The answer to your question is given below -
Q: Given the following residue network Gf. The argumenting path p is represented by the shaded will be…
A: Lets see the solution.
Q: Please provide a description, in terms of transparency, of the following minimally desirable…
A: Instead of having just one logical database, it is actually possible to have a distributed database…
Q: If you have the time, could you elaborate on the function of metrics in the software development…
A: Software metrics may be used for a range of tasks, such as evaluating software performance, planning…
Q: Do different kinds of internet resources affect your schoolwork in different ways?
A: Introduction: In education, the internet's capacity to facilitate communication between instructors…
Q: Is it important to keep an eye out for anything in particular when creating software? The other four…
A: Full stack info Any excellent programmer or designer requires specific knowledge and skills. The…
Q: What are the primary functions of the kernel?
A: The process of creating a set of instructions that tells a computer how to perform a task is known…
Q: Can you explain what ERD is and why it's important?
A: Entity Relationship Diagram is a term used in database management systems. It is a well-known…
Q: A graph G=(v, e) is a _______ graph, if we can partition V=L u R, s.t. all edges in E go between L…
A: We say that a directed edge points from the first vertex in the pair and points to the second vertex…
Q: How does it function when data is cached in an entirely associative format?
A: A fully associative cache permits data to be stored in any cache block, instead of forcing each…
Q: Just how do floppy disks work?
A: There are approximately two types of computer memory: volatile and nonvolatile. Primitive Memory A…
Q: You should think about these ten risks when supervising IT projects:
A: Introduction: The following list of common project risks can help with risk management and planning.…
Q: There are many features in C++ programs that must be ``balanced'' to be syntactically correct. For…
A: Introduction Function: A block of code known as just a function performs out a specific task. The…
Q: Given file.txt that contains only one line as follows: I have a dream. What would be the printout…
A: Dear Student, The answer to your question is given below -
Q: What would be the content of out.txt after executing the following code? int main() { ofstream…
A: The Correct option would be the following (3rd) 3.1415003.1423.143.1
Q: What is the CAP theorem, and how does it function, exactly? But what exactly does this mean when it…
A: What is the CAP theorem, and how does it function, exactly? The CAP theorem, originally introduced…
Q: What causes malicious software with global consequences to be developed?
A: Types of global malware and why Malware is malicious software. What malware can do. sabotage, steal,…
Q: First, compile a list of the OS's most crucial Visual Basic 6.0-based parts. To begin, could you…
A: VisualisationVisual basic window - An IDE window. This window appears when the current project's ex…
Q: Distinguish between point-to-point, ring, and mesh network topologies.
A: The Answer is in given below steps
Q: Which of the following is the most crucial trait for a software test engineer to have?
A: Software testing is examining and confirming that a software programme or product does what it is…
Q: If f is a maximum flow in a flow network G, then there is no the resigual capacity a cut an…
A: Introduction Network flow: It can be employed to represent a wide range of different types of…
Q: For example, suppose your kid uses the school's wireless LAN to access the web by typing in…
A: Introduction: LAN is a set of linked devices in a building, company, or household. A LAN may range…
Q: For e-commerce to flourish in the future, cloud computing is a must.
A: Let's see the answer:
Q: Constructing a productive discussion is distinct from developing a user interface.
A: A conversation captures the flow of communication between a user and a system. Compare and contrast…
Q: Describe how to elect the master node in a distributed cluster? (Reference paper: Zookeeper:…
A: In order to elect the master node in a distributed cluster, the following rule should be followed :-…
Q: Create an e-learning entity-relationship- diagram for student,teachers,admin, course, schedule, quiz…
A: An entity relationship diagram (ER Diagram) is the kind of diagram that describes relationships…
Q: 1. What are the new trends in PPT? 2.What is the latest PPT? 3. How many types of PPT are there?
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: I will upvote answer. Define a function in Scheme and a relation in Prolog that returns the…
A: Prolog Factorial is the product of an integer and other integers below that number, i.e. 5! is…
Q: Find an incorrect statement. Group of answer choices Type iostream is used for handling both input…
A: Dear Student, The answer to your question is given below -
Q: Manually trace the execution of the following Java code segment: (e) a=1, b=2; if…
A: Manually trace the execution of the following Java code segment:
Q: When talking about procedures that don't belong in a systems analysis, it could be helpful to use…
A: Introduction: The use of structured language to describe non-systems analytical procedures will be…
Q: When addressing activities that aren't part of systems analysis, you may find that using structured…
A: It will be described how processes not connected to systems analysis are structured: Structured…
Q: How significantly does the Linux partitioning scheme affect the performance of the
A: Dear Student, The answer to your question is given below -
A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a c++
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- In C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions:Function getData: This function asks the user to enter the…Write a C program that calculates the price of a pizza and prints the receipt as follows: 1- Your program should first ask the user to enter the size of the pizza (integer value 1=large, 2=medium, 3=small) as well as the number of toppings (integer). 2- Your program should then read the pizza basic price (double) as well as the price of a topping ( float ) from the user. 3- Your program should then calculate the total price of the pizza using the following formula: Total price = ( basic price + number of toppings * topping price ) / size; And print a receipt which displays the details of your pizza order as well as the final total price to the screenWrite a c program that calculates the amount of tip per person given bill amount after tax. Atax of 16% will be added to the bill.Your program should input the following information:1. The bill2. The percentage of tip that the person wants to pay: (10%, 15%, or 20%)3. The number of personsYour program should output the following information:1. The tax amounts.2. The bill after tax3. tip per person4. Total per person
- Write a C++ program that asks the user to enter the number of books purchased this month and then displays the number of points awarded. An online book club awards point to its customers based on the number of books purchased each month. Points are awarded as follows: Books Purchased Points earned 0 0 1 5 2 15 3 30 4 or more 60In C++ , Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows…Write a C++ program that displays a table of speeds in kilometers per hour with their values converted to miles per hour. The formula for converting kilometers perhour to miles per hour is: MPH = KPH * 0.6214. In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometers per hour. The table that your program displays should show speeds from 60 kilometers per hour through 130 kilometers per hour, in increments of 10, along with their values converted to miles per hour.
- Write a C program that will calculate the total payment for a brand new car being purchased on installment. The user will input the car price, amount of downpayment made (for 0% to 80% of the car price), interest rate per annum (from 5% to 20%, can be fractional up to 2 decimal places), and the number of months of amortization (12, 24, 36, 48 or 60). Show a summary of the details inputted by the user together with the amount to be financed and the monthly amortization cost. Dispaly a running tally per month of the number of months paid, the total amortization paid (in pesos), and the total running cost of the car. Please provide comments if possible so that i could follow your code easily :)Need help with a C++ program Write a C++ program that helps a person determine how long they can hike for under various conditions on a given supply of water. Your program should prompt the user to enter how much water they can carry in liters. Then, for each of the following conditions, print out how many hours the user can hike for. - moderate temperature, moderate difficulty: 1/2 liter per hour- moderate temperature, high difficulty: 3/4 liter per hour- high temperature, moderate difficulty: 1 and 1/2 liters per hour- high temperature, high difficulty: 1 and 3/4 liters per hour SAMPLE OUTPUT Hello! Welcome to the Hiking Water Calculator!How many liters of water can you carry? 8 OK. Here is how long you can hike for on 8 liters of water under the following conditions: moderate temperature, moderate difficulty: 16 hoursmoderate temperature, high difficulty: 10.6666666 hourshigh temperature, moderate difficulty: 5.3333333 hourshigh temperature, high difficulty: 4.5714285 hours.…The Hotel Inn named as On Time Hotel in which you plan to spend the night tonight offers very interesting rates, as long as you do not arrive too late. Housekeeping finishes preparing rooms by noon, and the sooner guests arrive after noon, the less they have to pay. But if the guest arrives earlier, they would need to wait for noon before they can checked-in. Build a C program that calculates your price to pay based on your guest's time of arrival. Your program will read an integer (0 to 23) indicating the military hour of your arrival. For example, 12 indicates 12 noon arrival, 13 means 1pm arrival, 0 means midnight arrival, etc. The base price is 1000 pesos, and 200 pesos are added for every hour after noon. Thankfully the total is capped at 2000 pesos, so you'll never have to pay more than that. Your program should print the price (an integer) you have to pay, given the input hour of arrival. Additionally, If the client arrives from 6 until 11, then program must ask first whether…
- Jason Hardy opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium(12 oz), and large (15 oz). The cost of one small cup is $1.75, one medium cup is $1.90, and one largecup is $2.00. Write a menu-driven program in c++ that will make the coffee shop operational. Your programshould allow the user to do the following:a. Buy coffee in any size and in any number of cups.b. At any time show the total number of cups of each size sold.c. At any time show the total amount of coffee sold.d. At any time show the total money made.Your program should consist of at least the following functions:1. a function to show the user how to use the program,2. a function to sell coffee,3. a function to show the number of cups of each size sold,4. a function to show the total amount of coffee sold, and a function to show the totalmoney made.Your program should not use any global variables and special values such as coffee cup sizes and cost of a coffee cup must be declared as…In C++ Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements. Ex: If the input is: 20.0 3.1599 the output is: 3.16 11.85 79.00 Note: Real per-mile cost would also include maintenance and depreciation.In C++, write a program that calculates and prints a monthly paycheck for an employee. The net pay is calculated after taking the following deductions from the employee's gross salary: Federal Income Tax: 17.5% State Tax: 9.1% Social Security Tax: 6.2% Medicare Tax: 1.45% Retirement Plan: 9.29% Health Insurance: $51.48 Life Insurance: $3.71 Your program will prompt the user to input the employee ID, the employee name, and the employee's monthly gross salary. The program will calculate the deductions listed above, along with the percentage of take home pay (defined as the net pay divided by the gross salary). After calculating each deduction and percentage, the output will be printed to the screen (see example output below). Requirements All decimal numbers must be formatted to 2 decimal places. Ask for the employee's ID first, then full name (can include spaces), then the salary. The prompt to enter the salary must include the employee name. The employee ID MUST be…