Question: Looking for help with writing this program in RUBY . I also have been having issues getting the spacing right on the output. Introduction The
Looking for help with writing this program in RUBY. I also have been having issues getting the spacing right on the output.



Introduction The purpose of this assignment is to familiarize you with the writing Ruby scripts that make use of print statement. In this assignment, we will display an Apple Bavarian Torte recipe. Apple Bavarian Torte Display the recipe for the Apple Bavarian Torte using the print statement. You will be printing fractional characters for the ingredients. I have included the necessary codes to print the fractions and have included a sample of how to print the first ingredient. The recipe has been attached. The program output should match the sample output and contain no spelling errors. Program Output Shown below is the expected output produced by the program. Note: the spacit lengths should be identical. Apple Bavarian Torte A classic European torte baked in a springform pan. cream cheese, s7iced almonds, and apples make this the perfect holiday treat (12 servings). INGREDIENTS 1/2 cup butter 1/3 cup white suqar Y/4 teaspoon vani11a extract 1 cup a71-purpose flour 1 ( 8 ounce) package cream cheese 1/4 cup white sugar 1egg 1/2 teaspoon vani11a extract 6 apples - peeled, cored, and sliced 1/3 cup white sugar 1/2 teaspoon ground cinnamon 1/4 cup s7iced almonds DIRECTIONS 1. Preheat oven to 450F(230C). 2. Cream together butter, sugar, vani11a, and flour. 3. Press crust mixture into the flat bottom of a 9 -inch springform pan. Set aside. 4. In a medium bow1, blend cream cheese and sugar. Beat in egg and vanil1a. Pour cheese mixture over crust. 5. Toss apples with sugar and cinnamon. spread apple mixture over a71. 6. Bake for 10 minutes. Reduce heat to 400F(200C) and continue baking for 25 minutes. 7. Sprinkle almonds over top of torte. Continue baking until lightly browned. cool before removing from pan. Program Notes Students will need to create a file: fl_Assignment_4B.rb Where a is the students first letter of their first name and b is the first letter of their last name. The Ruby file is required to have a programmer header containing the following: Submit Instructions - Before submitting, Refer to the Python Programming Coding Standards document on Canvas. - Correct any spelling or grammar errors. - Submit file via Canvas's submission tool
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
