Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) Write your own choose your own adventure program that has a user follow instr

ID: 657458 • Letter: 1

Question

1)    Write your own choose your own adventure program that has a user follow instructions to go from
   location to location.

   For example:
  
   "You are in the hallway. There are three doors. Enter L to go through the left door, M to
   go through the middle door, or R to go through the right door."
  
  
   Your program should check what character the user enters and make a decision based on the
   user input. Be creative. Code at least three (3) different rooms for the user to go through.

2)    Take ceasr cipher program and using char or put char
   Check it for both upper and lower case. If you reach the end of the
   ascii table, you must go back to the beginning.
    Prompt the user to enter a number to shift the characters by.

Keep in mind only C not C++ programming anything from char, if,while,int, double, any beggining level C programming

Explanation / Answer

#include <stdio.h>

int main() {
   char ch;
   printf("%s ","Press L or l to enter in left door");
   printf("%s ","Press M or m to enter in middle door");
   printf("%s ","Press R or r to enter in right door");
   scanf("%c",&ch);
   if (ch == 'L' || ch == 'l')
       printf("Entered in Left door");
   else if (ch == 'M' || ch == 'm')
       printf("Entered in Middle door");
   else
       printf("Entered in Right door");
   return 0;
}