Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Looking for code to this problem. The code is missing from the Cramster database

ID: 3548811 • Letter: L

Question

Looking for code to this problem. The code is missing from the Cramster database.

Theater Revenue.

A movie theater only keeps a percentage of the revenue earned from ticket
sales. The reaminder goes to the movie company. Create an application that
calculates and displays the following figures for one night's box office
business at a thater:

Assume the theater keeps 20% of its box office receipts and sends the other
80% to the movie company. Use a named constant in your code to represent this
percentage.


I NEED THE FULL CODE!!

Explanation / Answer

#include <iostream>


float PERCENTAGE_TO_MOVIE_COMPANY = 0.2;


int main() {

float adultRevenue, childRevenue;

std::cout << "Enter the Gross revenue for adult tickets sold:" << std::endl;

std::cin >> adultRevenue;

std::cout << "Enter the Gross revenue for child tickets sold:" << std::endl;

std::cin >> childRevenue;

std::cout << "Net revenue for adult tickets sold:" << (1 - PERCENTAGE_TO_MOVIE_COMPANY) * adultRevenue << std::endl;

std::cout << "Net revenue for child tickets sold:" << (1 - PERCENTAGE_TO_MOVIE_COMPANY) * childRevenue << std::endl;

std::cout << "Total gross revenue:" << (childRevenue + adultRevenue) << std::endl;

std::cout << "Total net revenue:" << (1 - PERCENTAGE_TO_MOVIE_COMPANY) * (childRevenue + adultRevenue) << std::endl;

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote