Question: Write a Java Program for following:- 14 Shasha Travels Pvt. Ltd. gives the following discount to its customers: Ticket Amount Discount Above Rs. 70000 18%

Write a Java Program for following:-

14 Shasha Travels Pvt. Ltd. gives the following discount to its customers:

14 Shasha Travels Pvt. Ltd. gives the following discount to its customers: Ticket Amount Discount Above Rs. 70000 18% Rs. 55001 to Rs. 70000 16% Rs. 35001 to Rs. 55000 12% Rs. 25001 to Rs. 35000 10% Less than Rs. 25001 2% Write a program to input the name and ticket amount for the customer and calculate and return the discount amount from in the function double calculate(int a) where a is ticket amount. Calculate net amount and display the output in the following format for each customer: Name Ticket Charges Discount Net Amount

Step by Step Solution

3.52 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class TicketCalculateMain Function to calculate d... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!