Name the new program: LastnameFPancake.java where Lastname is your last name and F is the first initial of your first name. Save in a file folder on your storage device. Start with PancakeSorting.java. You must start with this program, otherwise you will get an instant zero on this assignment.
You will modify nothing in the existing code. Leave the comments, etc. If you delete the comments, you will get an instant zero on this assignment.
Get the program to work.
This is the main modification to the program:
You will add code to do the burnt pancake sort.
Pancakes are represented by an array of integers, where the sign indicates whether the burnt side is up (-) or down (+).
Add the functions for this sort. Document these functions similar to that in PancakeSorting.java.
In the main, create a call to this sort, using a new array with the data: {-10, -5, 7, -12, 3}.
Display the sorted array.
You will keep everything else in the main.
I want comments on all the new functions similar to those existing comments.
Add 3 comments at the top of the page with your name, the class, and the date. Put each comment on a separate line.
Also, the variable and function names must be descriptive. I do not want to see the name “arr” for an array. If you use “arr” for an array name, you will get an instant zero on this assignment.
Make sure you do everything required.
Upload the LastnameFPancake.java file.
Important - Read this before proceeding
These instructions reflect a task our writers previously completed for another student. Should you require assistance with the same assignment, please submit your homework details to our writers’ platform. This will ensure you receive an original paper, you can submit as your own. For further guidance, visit our ‘How It Works’ page.