Question: write the different java code of different parts from 1 to 5 from the given picture 1. Sorted Names Write a program that asks the

write the different java code of different parts from 1 to 5 from the given picture
1. Sorted Names Write a program that asks the user to enter three names, and then displays the names sorted in ascending order. For example, if the user entered "Charlie", "Leslie", and "Andy", the program would display: Andy Charlie Leslie 2. Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 20% I 20-49 30% 50-99 40% 100 or more 50% Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. 3. Roman Numerals Write a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number. If the number is outside the range of 1 through 10, the program should display an error message. 4. Magic Dates The date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year: 6/10/60 Write a program that asks the user to enter a month (in numeric form), a day, and a twodigit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
