Question: Please write the java programme in a basic way without an advanced methods I just took the course 4 weeks ago. And for printing please
Please write the java programme in a basic way without an advanced methods I just took the course 4 weeks ago.
And for printing please use the (printf) method to format whatever we need to print----> System.out.printf("");.

Problem 1: Tickets Sale and Donation to Charity To help a local charity, a theater owner has decided to donate to the charity a portion of the gross amount generated from movies' sale. In this question, you need to implement a Java 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 program calculates the tickets gross amount, amount donated and net sale. Sample input/output Enter movie name: Journey to Mars Enter the price of an adult ticket: 4.50 Enter the price of a child ticket: 3.00 Enter number of adult tickets sold: 800 Enter number of child tickets sold: 1850 Enter the percentage of donation: 10 The output of the program is as follows. Movie Name: Journey to Mars Number of Tickets Sold: 2650 $ 9150.00 Gross Amount: Percentage of Gross Amount Donated: Amount Donated: 10.00% $ 915.00 $ 8235.00 Net Sale: Note that the strings, such as "Movie Name:", in the first column are left-justified, the numbers in the right column are right-justified, and the decimal numbers are output with two decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
