What is the difference between a direct appeal and a Writ of Habeas Corpus? What are the consequence…