MovieTicketSale

MovieTicketSale - /* / Author D.S. Malik / / Program: Movie...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//*************************************************************** // Author D.S. Malik // // Program: Movie ticket sale and donation to charity. // This program 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 the percentage of the // gross amount to be donated to the charity. // The program outputs the movie name, the number of tickets // sold, the gross amount, the percentage of the gross amount // donated to the charity, the amount donated to the charity, // and the net amount. //*************************************************************** / import javax.swing.JOptionPane; i public class MovieTicketSale { public static void main(String[] args) { //Step 1 String movieName; String inputStr; String outputStr; double adultTicketPrice; double childTicketPrice; int noOfAdultTicketsSold; int noOfChildTicketsSold; double percentDonation; double grossAmount; double amountDonated; double netSaleAmount;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

MovieTicketSale - /* / Author D.S. Malik / / Program: Movie...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online