Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Write a program that prompts the user to enter a movie name, adult ticket price, child ticket price, number of adult tickets sold,

Using C++

image text in transcribed

Write a program that prompts the user to enter a movie name, adult ticket price, child ticket price, number of adult tickets sold, number of child tickets sold, and percentage of gross amount to be donated to charity. The program should output the following information: Movie name Total number of tickets sold Gross amount Percentage of amount donated Amount donated Net sale Set precision to 2 decimal numbers and format the output as shown in the sample below. Sample input/output: Enter the movie name: Duckey Goes to Mars Enter the price of an adult ticket: 11.5 Enter the price of a child ticket: 8.5 Enter the number of adult tickets sold: 1234 Enter the number of child tickets sold: 256 Enter the percentage of donation: 15 149e Percentage of Gross Amount Donated: Amount Donated: . 15.00% $ 2455.es

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_2

Step: 3

blur-text-image_3

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

LO4 Identify a system for controlling absenteeism.

Answered: 1 week ago