1. The manager of a basketball stadium wants you to write a program that calculates the total amount for each type of ticket sales after each game as well as the grand total ticket sales which will be stored in a file called “sales.txt“.
There are four types of tickets – premium, upper box A, upper box B, and general admission. Premium is 250 pesos, upper box A is 100 pesos, upper box B is 50 pesos, and general admission is 10 pesos.
Create a Java program that will allow the user to input the number of tickets sold for each type of ticket. The program in return will compute for the total ticket sales for each ticket type as well as the grand total ticket sales.
Ex. Ticket Type Input number of total ticket sales sold
Premium 100
Upper Box A 200
Upper Box B 200
General Admission 500
Sales.Txt
Ticket Price Total Tickets Sold Total Amount
250 100 25000.00
100 200 20000.00
50 200 10000.00
10 500 5000.00
Grand Total Amount: 60000.00
2. Using JCreator, create a Java program that will facilitate a Method Overloading activity given the ff. requirements:
input: two whole numbers
two double numbers
two String data
For each pair of input requirements, output the message “The two values are equal” if they are equal to one another. Otherwise, output “They are not equal.”