(Solved) : Ruby Please Help Assignment Answering Questions Since Ruby Code Long Site Attached Ruby Pr Q42773845 . . .

For Ruby.

Please help me with this assignment by answering thequestions below:

Reinforcement Exercises The following exercises are designed to further your understanding of Ruby programming by challenging4. Currently, players who fail the quiz are advised to watch all the Superman movies before retaking it. Theres also a Wikip

Since the ruby code is too long for this site, I haveattached the ruby program for this assignment here:

https://gofile.io/?c=LzE4OI

Thank you!

Reinforcement Exercises The following exercises are designed to further your understanding of Ruby programming by challenging you to make improvements to the chapter’s game project, the Superman Movie Trivia Quiz. 1. Currently, the Superman Movie Trivia Quiz consists of five questions. Make the quiz more challenging by increasing its size to 10 questions. To implement this change, copy the last of the five statements that call on the Quiz object’s disp_c method to pose a quiz question. Add five copies of the statement immediately after the copied statement’s question (along with the corresponding answers). You will also have to adjust the way the method calculates the number of questions missed. To do so, modify the determine_grade method so that six or more questions must be correctly answered to pass the quiz. 2. Give players the opportunity to take the quiz again if they fail. To implement this change, add the appropriate statements in a loop within the script’s Main Script Logic section (added to the program file in Step 10). Prompt the player to take the quiz again if fewer than six questions are answered correctly. If the player elects not to retake the quiz, terminate the execution of the loop and allow the quiz to end. 3. Modify the quiz so that if the player decides not to take the quiz, the game still displays the text displayed by the display_credits method. To implement this change, replace the statements at the end of the program file that invite the player to play again with a statement that executes the Quiz object’s display_credits method. 4. Currently, players who fail the quiz are advised to watch all the Superman movies before retaking it. There’s also a Wikipedia page that provides information about each Superman movie. Modify the game to provide players with this web page’s URL (i.e., http://en.wikipedia.org/wiki/ Superman_movies). To implement this change, modify the statements in the Quiz object’s determine_grade method that are responsible for displaying output text. 5. Currently, the quiz does not inform players about the grading scale. As such, they have no way of ascertaining how they are doing until the game ends and their grades are displayed. Modify the game so that the player has the option of reading about the grade scale. To implement this change, modify the Quiz object’s display_instructions method by adding the programming logic needed to collect player input. Then add a new method named disp_scale to the Quiz object and program it to display the quiz’s grading scale. Lastly, go back to the display_instructions method and add a statement that calls upon the disp_scale method whenever the player elects to view it. Show transcribed image text Reinforcement Exercises The following exercises are designed to further your understanding of Ruby programming by challenging you to make improvements to the chapter’s game project, the Superman Movie Trivia Quiz. 1. Currently, the Superman Movie Trivia Quiz consists of five questions. Make the quiz more challenging by increasing its size to 10 questions. To implement this change, copy the last of the five statements that call on the Quiz object’s disp_c method to pose a quiz question. Add five copies of the statement immediately after the copied statement’s question (along with the corresponding answers). You will also have to adjust the way the method calculates the number of questions missed. To do so, modify the determine_grade method so that six or more questions must be correctly answered to pass the quiz. 2. Give players the opportunity to take the quiz again if they fail. To implement this change, add the appropriate statements in a loop within the script’s Main Script Logic section (added to the program file in Step 10). Prompt the player to take the quiz again if fewer than six questions are answered correctly. If the player elects not to retake the quiz, terminate the execution of the loop and allow the quiz to end. 3. Modify the quiz so that if the player decides not to take the quiz, the game still displays the text displayed by the display_credits method. To implement this change, replace the statements at the end of the program file that invite the player to play again with a statement that executes the Quiz object’s display_credits method.
4. Currently, players who fail the quiz are advised to watch all the Superman movies before retaking it. There’s also a Wikipedia page that provides information about each Superman movie. Modify the game to provide players with this web page’s URL (i.e., http://en.wikipedia.org/wiki/ Superman_movies). To implement this change, modify the statements in the Quiz object’s determine_grade method that are responsible for displaying output text. 5. Currently, the quiz does not inform players about the grading scale. As such, they have no way of ascertaining how they are doing until the game ends and their grades are displayed. Modify the game so that the player has the option of reading about the grade scale. To implement this change, modify the Quiz object’s display_instructions method by adding the programming logic needed to collect player input. Then add a new method named disp_scale to the Quiz object and program it to display the quiz’s grading scale. Lastly, go back to the display_instructions method and add a statement that calls upon the disp_scale method whenever the player elects to view it.

Expert Answer


Answer to For Ruby. Please help me with this assignment by answering the questions below: Since the ruby code is too long for this…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us