Discuss the due process function and the rehabilitation function of the courts

Answer following questions citing at least one source:
1. Discuss the due process function and the rehabilitation function of the courts.2. Compare/Contrast trial courts and appellate courts.3. What is a preliminary hearing and why is it important?4.Compare/Contrast a bench trial with a jury trial. Why would a defendant choose a bench trial over a jury trial. Provide a real-world case in your answer where a defendant has asked for a bench trial.5.Describe the goals of contemporary sentencing and be able to give an example of each.