ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Your story needs to have at least three (3) turning points. It can have more but no fewer. If the user answers three questions, this will result in…

by | Nov 28, 2023 | engineering

Your story needs to have at least three (3) turning points. It can have more but no fewer. If the user answers three questions, this will result in eight (8) possible outcomes for your story. To keep from becoming confused you will have to keep your code well formatted and organized.

You don’t need to write novel. A sentence or two between each question is totally fine.

  • Three (3) questions must be asked no matter how the user answers the previous question.
  • The story must have eight (8) possible different outcomes.
  • The story must be printed out to the console.
  • As usual, keep it safe for work.
  • You must personalize the story using data asked from the user.

Hint

This program will require you to format your code carefully. Use indentation rules the way I have demonstrated in class and lecture notes. You will need to place if/else blocks within other if/else blocks for this program to work. For example:

(firstAnswer === ) { (secondAnswer === ) {} {}} {}

This example shows a single level of nesting. Your program must have two levels of nesting. In the simplest case, there should be a total of 7 if keywords and 7 else keywords.

Some general coding guidelines

  • When creating loops and if/else blocks put the opening curly brace on the line that contains the beginning statement.
  • Put all code in if/else blocks or loops on another line (not on the line stating the block).
  • The closing curly brace should be on a new line after any other code in the block.
  • Prefer === to == when checking for equality.
  • Indent code within if statements and loops.

Good example:

(name === ) {.log();} {.log();} (bobAge < ) {.log();}

Bad example:

(name == ){.log();}{.log();} (bobAge < ) {.log();}

Example Program Output

Here is an example of a how the program might work…

Enter your favorite color: redEnter your favorite food: applesEnter your favorite animal: tigerYou are walking down the street eating some apples when a red tiger runs up and takes your lunch and then runs away… you want the tiger ?> run awayYou run away the tiger but it a bad idea run an animal. It turns decides try eat you. You see a bus blocking your up ahead. you the bus ?> aroundYou around the bus see a subway entrance. you ?> There a zoo keeper the subway. He captures the tiger you saved.The End.

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!

Open chat
1
Scan the code
ScholarMatic
Hello! Welcome to to our WhatsApp support.
We offer READY solutions, HIGH QUALITY PLAGIARISM FREE essays and term-papers.

We are online and ready to help