Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A movie in a local theater is in great demand. To help a local charity, the theater owner has decided to donate to the charity

A movie in a local theater is in great demand. To help a local charity, the theater owner has decided to donate to the charity a portion of the gross amount generated from the movie. This example designs and implements a program that prompts the user to input the movie name, adult ticket price, child ticket price, number of adult tickets sold, number of child tickets sold, and percentage of the gross amount to be donated to the charity. The output of the program is as follows:

image text in transcribed
Enter the movie name: Avengers Enter the price of an adult ticket: 22.50 Enter the price of a child ticket: 21.00 Enter the number of adult tickets sold: 12 Enter the number of child tickets sold: 5 Enter the percentage of donation: 5 Movie Name: Avengers Number of Tickets Sold: 17 Gross Amount : ... . . . . . RM 375.00 Percentage of Gross Amount Donated: 5.00% Amount Donated: RM 18.75 Net Sale: . . ..I RM 356. 25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions