Shasha Travels Pvt. Ltd. gives the following discount to its customers: Ticket Amount Discount Above Rs....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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 KboatShashaTravels public static void mainString args Scanner in ... View the full answer
Posted Date:
Students also viewed these programming questions
-
Write a program to input any amount of US dollars and convert the amount into any chosen world currency and output your results. Input the conversion factor for the currency of your choice.
-
6. (Practice) a. Write a program to input the following values in an array named volts: 11.95, 16.32, 12.15, 8.22, 15.98, 26.22, 13.54, 6.45, and 17.59. After the data has been entered, have your...
-
Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 30 the...
-
Prove that there exist two languages A and B that are Turing-incomparablethat is, where A T B and B T A.
-
Dan and Patricia form Crane Corporation. Dan transfers land (worth $200,000, basis of $60,000) for 50% of the stock in Crane. Patricia transfers machinery (worth $150,000, adjusted basis of $30,000)...
-
A condensed income statement for the Golf Equipment Division of Scottish Pride Inc. for the year ended January 31, 2006, is as follows: Sales ............... $2,400,000 Cost of goods sold ............
-
In the Earth reference frame, box 1 is approaching box 2 , which is initially at rest on a low-friction floor, with velocity \(v\). Box 1 has five times the inertia of box 2 . They collide...
-
Kinokawa Consultants Companys trial balance on December 31, 2014, follows. The following information is also available: a. Ending inventory of office supplies, $86 b. Prepaid rent expired, $700 c....
-
1. Your program asks the user how many bananas they want to buy, and what the price is. This information is then passed to getTotal to calculate the total cost. System.out.println("How many bananas...
-
Badlands, Inc. manufactures a household fan that sells for $40 per unit. All sales are on account, with 40 percent of sales collected in the month of sale and 60 percent collected in the following...
-
Question 2: Conversion Strategies Using Blackboard Ultra as an example, explain the following What conversion strategy was used to deploy Blackboard Ultra, the new version of Blackboard? What are the...
-
What are the approaches to both pharmacological and nonpharmacological treatment of pain, and how do they compare in terms of efficacy and side effects?"
-
In September of the current year, Eric purchased a new computer for use in his business. The cost of the computer was $4,300, while freight and setup charges totaled $600. It is his only purchase for...
-
The Lyman series results from transitions of the electron in hydrogen in which the electron ends at the n = 1 energy level. Using the Rydberg formula for the Lyman series, calculate the wavelength...
-
An accounting firm is considering dropping a client who paid $105,000 in audit fees, but cost $120,000, including billable employee time ($90,000), supplies and copying($4,000), client-specific fixed...
-
Anderson Equipment Company uses a spreadsheet to prepare its financial statements. Using the following amounts from its spreadsheet, what would it report as net income?
-
D iabetes is a major health problem, particularly for the millions of Americans with undiagnosed diabetes, for whom treatment and glycemic control could substantially reduce the onset of...
-
Figure displays a 12.0 V battery 3 four uncharged capacitors of capacitances C1 = 4.00F, C2 = 6.00F, and C3 = 3.00F. The switch is thrown to the left side until capacitor 1 is fully charged. Then the...
-
What does the Richter scale measure?
-
Where do earthquakes occur?
-
Climates farther from the equator usually have (a) lower average temperatures. (b) higher solar intensity. (c) more precipitation. (d) more water.
Study smarter with the SolutionInn App