
1. You should write a C-program to create a fixed maze of size 25 × 40 and place the @ symbol at
the entrance of the maze as shown in diagram below::
2. You should define four keys on the keyboard for moving in the left/right/up and down directions
so that you can move the @ character in order to find your way through the maze till the exit
point,
3. The program should time how long it takes for a player to reach the exit point and should compare
this value to the previous scores which may exist in a text file and inform the player how many
people who have played before has done better than him/her. Last player’ score should also be
appended to the existing scores of the earlier players that are already in the text file.


Step by stepSolved in 2 steps

- C program onlyarrow_forwardLOTTERY Bill buys 10 lottery tickets which he plays randomly. Let us write a C# program for Bill that suggests random numbers for him. After the winning numbers are drawn, the program informs Bill of the results of each lottery ticket. There are 5 winning numbers in one lottery ticket. Each number is from 1 to 90.arrow_forwardPart 1: Complete the survey. Part 2: Peek-a-boo is a fun game that little kids like to play. To simulate this game on the computer, write a program that will generate a random number between 1 and 4. Then, will print to the screen the animal name associated to that number. The animal names used will be: pig when a 1 is generated cow when a 2 is generated chicken when a 3 is generated horse when a 4 is generated If your program generates a 3, the output will be: chicken The player will then enter a 1 if they would like to play again or anything else to exit the program. If the player enters "1 1 1 0", the output will be: horse chicken cow horse For coding simplicity, follow each output animal by a space, even the last one. Hint: To make testing easier, seed your random number generator with 0.arrow_forward
- Question 2: Write a program to check responses of a student to the multiple-choice final exam. The final exam consists of 20 questions, and answer sheet is abedeabcdeabedeabcde. Your screen should look like: Please, write your answers: abbdeabbdeabbdeabbde Please, write your answers: or aaaaaaaaaaaaaaaaaaaa Your score is 16 out of 20. Your score is 4 out of 20.arrow_forwardPython questionarrow_forwardJAVA PROGRAM Your task is to make a point calculator which takes a point in the 1st quadrant and then finds its position in user entered quadrant.arrow_forward
- flow chart and dimple program. Python thank youarrow_forward1. Write a pyrhon program that prints out a classic hangman stick figure. The program should ask the user to enter a number from 1-6 and the corresponding hangman should be printed. The value the user inputs corresponds to the number of incorrect guesses in a real hangman game and so the completeness of the hangman will correspond to the number of ‘incorrect guesses’ inputted by the user (e.g., if the user enters 1, then only the head of the hangman will be printed; full example below). Example:Enter a number from 1-6: 1O Enter a number from 1-6: 2O|Enter a number from 1-6: 3O\||Enter a number from 1-6: 4O\|/|Enter a number from 1-6: 5O\|/|/Enter a number from 1-6: 6O\|/|/ \ 2. Modify your program from problem 1 so that the user input is checked to be a validsingle digit (1-6) before printing the corresponding hangman. If the input is not valid, theninstead of a hangman the following message should be printed “Invalid input: you must enter asingle number from 1-6.” Example:Enter a…arrow_forwardA rod is used to hang a load (force) of 1000 N.There are 4 ingredients with their respective strengths.Create a program to create a bar diameter table, if using the 4 materials.Example: Copper Steel Material. Aluminum. Bronze Strength(N/mm2) 2000. 1600. 1400. 1700Rod Diameter: Ingredient. Copper Steel. Aluminum. BronzeDiameter. (mm) …. …. …. …..Note: Strength is the maximum stress the material can withstandStress S = force/sectional area S=force/A A = force/SmaxCross-sectional area A = 3.14 x d2 /4 d = root(4xA/3.14)Instructions: Make a list to store the ingredient names and strengths Create in a python programarrow_forward
- Write a pseudocode for each example ( a though e) , making sure your pseudocode is structured and accomplishes the same tasks as the flow chart segementarrow_forwardPascal's Triangle: The example output of this program shows a pascal's triangle. To build the pascals triangle, start with 1 at the top, then continue placing numbers below it in a triangular pattern. Each number is the numbers directly above is added together. Explore this link for hints of pascal's triangle: https://www.mathsisfun.com/pascals-triangle.html 3.a): Write a C++ program to print the pascal's triangle by using “for loop". The program should take the number of rows as input from the user. The output of the program should be as in the following pattern (e.g., if you enter the number of rows = 8). Note: specific grading criteria: You need to use only for loop and print a well-designed pattern. The output mentioned below is just an example; more clear and well-presented output will improve your marks. (10 marks). Example Output: Enter the number of rows: 8 1 1 1 1 2 1 13 3 1 1 4 6 4 1 15 10 10 5 1 16 15 20 15 6 1 1 7 21 35 35 21 7 1arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





