Write two programs in java

[ad_1]
Write your code in the file TwoLargest.java, your file has to have this exact name with T and L capitalized. You must use the IO module to read inputs and output your answers. When prompting the user, use System.out.print() or System.out.println().Write a program that takes a set of numbers and determines which are the two largest numbers.Ask the user for the following information, in this order:A terminating value (real number). The user will enter this value again later, to indicate that he or she is finished providing input.A sequence of real numbers. Keep asking for numbers until the terminating value is entered again.Make sure the user inputs at least two numbers before reentering the terminating value.Compute and output the largest and second-largest real number, in that order. It is possible for the largest and second-largest numbers to be the same (if the sequence contains duplicate numbers).Write your code in the file DonateToPaws.java, your file has to have this exact name with D, T and P capitalized.Imagine that you work for an animal donation processing service called DonateToPaws. DonateToPaws charges money receivers the following fees:The first $150 has a flat fee of $3. (any donation up to $150 has a flat fee of $3)Donations over $150 (but under $1500) have a fee of 4% or $8, whichever is higher.Donations of $1,500 (but under $15,000) and over have a fee of 1% or $20, whichever is higher.Donations of $15,000 and over are subject to (fees as follows):The first $15,000 have a fee of 1%The next $4,000 have an additional fee of 2%Anything more will demand an additional fee of 3%For example, a donations of $40,000 would be subject to $860 fee: 1% on the first $15,000 ($150 fee), 2% on the next $4,000 ($80 fee), and 3% on the last $21,000 ($630 tax).Write a method that takes as an argument the donation amount received (real number) and outputs the fee owned (real number). Use the following method signature: public static double donationFee (double donationAmount) Assume no errors.
[ad_2]Source link
 
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"