Write a Java Program for following:- 14 Shasha Travels Pvt. Ltd. gives the following discount to its
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a Java Program for following:-
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner public class TicketCalculateMain Function to calculate d... View the full answer
Posted Date:
Students also viewed these programming questions
-
Write a Java program for a restaurant with the following features: Customer: Name, Surname, ID (incremental ID by 1 for each new customer), Email, Phone, Address. Service: ID (incremental ID by1...
-
Write a java program for overloaded function calculate() with following function definitions. void calculate(int x, int y ) to calculate the sum of all even numbers from x till y and print the sum ....
-
Write a Java program that simulates car racing, as shown in Figure 16.22(a). The car moves from left to right. When it hits the right end, it restarts from the left and continues the same process....
-
Mount Everest is Earth's highest mountain above sea level, located in the Mahalangur Himal sub-range of the Himalayas. The ChinaNepal border runs across its summit point. Its elevation of 8,848.86 m...
-
Assume Whitfield Company, a camera store, lost some inventory in a fire on August 15. To file an insurance claim, Whitfield Company must estimate its August 15 inventory by the gross profit method....
-
What are two important reasons to base the valuation of assets and liabilities on their historical cost?
-
The expected activity of the paper-making plant of Leventhal Paper Company was 45,000 machine hours per month. Practical capacity was 60,000 machine hours per month. The standard machine hours...
-
Gomez Industries produces three products from a single operation. Product A sells for $3 per unit, Product B for $6 per unit, and Product C for $9 per unit. When B is processed further, there are...
-
Solve the inequality: h^(2) <6h-10 Give your answer in interval notation. Enter DNE if there is no solution.
-
Assume that you have just been hired by Adams, Garitty, and Evans (AGE), a consulting firm that specializes in analyses of firms capital structures and dividend policies. Your boss has asked you to...
-
Smokin' Joe Inc. acquired 1,000 shares of its common stock at $3 per share. The par value of the stock was $2. What is the entry to record this transaction? Select one: O a. Dr. Treasury Stock...
-
Asphine already has $15,500 saved for a down payment for a house and she plans to save another $400 at the end of each month for the next three years. If she earns 8.4% compounded monthly how large...
-
Boat for $3M. He was to return his acceptance in the course of Post. By a letter also dated the 1st February, Mark informed Joe that he was selling his Toyota Rav 4 car for $1, 500,000.00. He stated...
-
A rainstorm produced a 90-million-volt lightning bolt, but only for 0.004 seconds. The bolt struck a conducting pipe and the current passing through the pipe was 400 amperes. (a) What was the total...
-
A field party is capable of making taping observations with a standard deviation of 0.010 ft per 100-ft tape length. What standard deviation would be expected in a distance of 200 ft taped by this...
-
Approximately how long will it take for $1000 to double if the interest rate is 7%?
-
Herbert, Inc., acquired all of Rambis Company's outstanding stock on January 1, 2020, for $601,000 in cash. Annual excess amortization of $16,300 results from this transaction. On the date of the...
-
1-Stern observed all of the following results EXCEPT _______ in his experiment. A-one of the recombinant phenotypes was associated with an X chromosome of normal length B-the number of car, B+ male...
-
Define the term measurement.
-
A local magazine makes a listing every year of the places that sell the best pizza in your city. Do you think that a valid measurement system is used to make this list? Why or why not?
-
When you buy a box of cookies in the store, the box usually has information on it containing many different types of measurements about the nutritional content of a serving of cookies. A. What is the...
Study smarter with the SolutionInn App