Assignment 5B : Maze Game! 2D Arrays can be used to store and represent information
about video game levels or boards. You will use this knowledge to make an interactive game where players attempt to move through a maze. You will start by creating a pre-defined 2D array with the following values:
{"_","X","_","X","X"}
{"_","X","_","X","W"}
{"_","_","_","X","_"}
{"X","X","_","_","_"}
{"_","_","_","X","X"}
You will then set the player (represented by "O") at index 0, 0 of the array, the top-left
corner of the maze. You will use a loop to repeatedly prompt the user to enter a
direction ("Left", "Right", "Up", or "Down"). Based on these directions, you will try to
move the player.
• If the location is valid (represented by "_"), you will move the player there
• If the location is out of bounds (e.g. index 0, -1) or the command is invalid, you
will inform the player and prompt them to enter another direction
• If the location is a wall (represented by "X"), you will tell the user they hit a wall
and the game is over.
If the player did not lose, you will print out the current state of the map and ask them for
a new direction. You will keep doing this until they lose or they reach the end
(represented by the "W").
Sample Output #1:
[Maze Game]
O.X._.X.X.
_.X._.X.W.
_._._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Up
You can't move there - it's out of bounds!
Which direction do you want to move? Down
_.X._.X.X.
O.X._.X.W.
_._._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Down
_.X._.X.X.
_.X._.X.W.

O._._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Down
You hit a wall - Game Over!
Sample Output #2:
[Maze Game]
O.X._.X.X.
_.X._.X.W.
_._._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Eleventy
That's not a valid direction!
Which direction do you want to move? Down
_.X._.X.X.
O.X._.X.W.
_._._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Down
_.X._.X.X.
_.X._.X.W.
O._._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Right
_.X._.X.X.
_.X._.X.W.
_.O._.X._.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Right
//Skipping ahead (This line is not part of the output)
_.X._.X.X.
_.X._.X.W.
_._._.X.O.
X.X._._._.
_._._.X.X.
Which direction do you want to move? Up
You win!

Answers

Answer 1

Answer:

yes

Explanation:


Related Questions

One of the features of using web mining is that it improves website usability. This usability refers to how easily website users can ________ with the site.

Answers

This usability above refers to how easily website users can query with the site.

What is Web content mining?

Web content mining is known as the act of looking into the unstructured content of Web pages thoroughly

Web structure mining  is one that is done to analyze or handle the universal resource locators found or seen in Web pages. Web mining is known as the application of data mining methods to known the various patterns from the World Wide Web.

Learn more about web mining from

https://brainly.com/question/2889076

Help me with this plzz

Answers

Answer:

the 1st one I believe

Explanation:

because plagiarism means to copy someone else work without permission. Example- if you are writing an essay and copy something off the internet and call it your own that's plagiarism

Answer:

Yeap you are right. The correct ans is the 1st one.

Plagiarism is the representation of another author's language, thoughts, ideas, or expressions as one's own original work.

11.1.1: Miles to track laps.


One lap around a standard high-school running track is exactly 0.25 miles. Write a program that takes a number of miles as input, and outputs the number of laps.

Ex: If the input is 1.5, the output is:

6.0

Ex: If the input is 2.2, the output is:

8.8

Your program should define and call a function:

Function MilesToLaps(float userMiles) returns float userLaps
i need the code in coral launague

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:                

 This program is written in coral language. The code of the program is given below:

.................................................................................................................................

Function MilesToLaps(float usermiles) returns float lap

  lap = usermiles*4

Function Main() returns nothing

  float userMiles

  float laps

  userMiles = Get next input

  laps = MilesToLaps(userMiles)

  Put laps to output

.................................................................................................................................

                                   

Answer:

Coral Language Code

Explanation:

Make sure you input the digits for output:

Ex: If the input is:  1.5  the output is:  6.0

Ex: If the input is:  2.2 the output is:  8.8

Function MilesToLaps(float userMiles) returns float userLaps

  userLaps = userMiles / 0.25

 

Function Main() returns nothing

  float result

  float userMiles

  userMiles = Get next input

  result = MilesToLaps(userMiles)

  Put result to output

In the microsoft powerpoint wiew ribbon. Which presentation wiew enables a user to view one slide at a time in the slide pain?

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

In the Microsoft PowerPoint view ribbon. A normal presentation view enables a user to view one slide at a time in the slide pain.

As we know that there are different views of presentation, such as, normal view, reading view, slider sorter, outline view, and note pages.

Only a Normal view allows you to see one slide at a time in the slide pain.

you can increase the resonant frequency of a series-tuned RLC circuit by

Answers

you need to increase l.

Answer:

  decreasing the inductance or capacitance or both

Explanation:

The frequency of a resonant LC circuit is inversely proportional to the square root of the product of L and C. Thus increasing the resonant frequency requires decreasing the product of L and C. This can be done by decreasing L, decreasing C, or both.

In this question, you will experimentally verify the sensitivity of using a precise Pi to the accuracy of computing area. You need to perform the following activities with Python program:

a. Compute the area of a circle with radius 10 using Pi from the Python Math Module. Assign the area to a variable, say realA.
b. Now compute the area of the circle using the Pi value with precision 1,2, and 3 points after the decimal place. (i.e., Pi = 3.1, 3.14 & 3.141). Then Print the percentage difference between each of the areas calculated using each of these values of Pi and realA.

Answers

Answer:

Follows are the code to this question:

import math as x #import math package

#option a

radius = 10#defining radius variable  

print("radius = ", radius)#print radius value

realA = x.pi * radius * radius#calculate the area in realA variable

print("\nrealA = ", realA)#print realA value

#option b

a1 = 3.1  * radius * radius#calculate first area in a1 variable  

print("Area 1= ", a1)#print Area

print("Percentage difference= ", ((realA - a1)/realA) * 100) #print difference  

a2 = 3.14  * radius * radius#calculate first area in a2 variable                            

print("Area 2= ", a2)#print Area

print("Percentage difference= ", ((realA - a2)/realA) * 100)#print difference  

a3 = 3.141  * radius * radius#calculate first area in a2 variable                       print("Area 3= ", a3)#print Area

print("Percentage difference= ", ((realA - a3)/realA) * 100) #print difference  

Output:

please find the attached file.

Explanation:

In the given Python code, firstly we import the math package after importing the package a "radius" variable is defined, that holds a value 10, in the next step, a "realA" variable is defined that calculate the area value.

In the next step, the "a1, a2, and a3" variable is used, which holds three values, that is "3.1, 3.14, and 3.141", and use the print method to print its percentage difference value.  

Write a C program to perform simple C arithmetic calculations. The user is to enter a simple expression (integer operator integer) such as
15 + 30
The program is to extract the 2 operands and the operator, perform the indicated calculation and display the result. For example
15 + 30 = 45
Operators should include + , - , * , / , and %
Operands are positive integers , no sign
Use getchar to input the expression
Allow for variable spacing before the first operands and between operators and operands ( 0, 1, or more spaces)

Allow the user the option of entering another expression
Code a function for each operator to do the appropriate arithmetic operations (5 functions)
No global variables
No string handling functions
No arrays
May only use input and output functions such as getchar and putchar

Answers

Answer:

Input example:

select the funcion: 1                                                                                                                  

write the 1sd number2                                                                                                                  

write the 2nd number1                                                                                                                  

value is 2.000000                                                                                                                      

Explanation:

#include <stdio.h>

main()

{

//define the variables as float

float a, b, c, e;

char d;

while (1)  

{      

//input values

printf("select the function: ");

scanf("%c",&d);

printf("write the 1sd number");

scanf("%f",&a);

getchar();

printf("write the 2nd number");

scanf("%f",&b);

getchar();

if (d=='%')

{

    a=a*b/100;

}

if (d=='*')

{

    a=a*b;

}

if (d=='+')

{

    a=a+b;

}

if (d=='/')

{

    a=a/b;

}

if (d=='-')

{

    a=a-b;

}

printf("value is %f \n",a);

}

printf("final value is %f",a);

getchar();

}

The slide that is used to introduce a topic and set the tone for the presentation is called the Question 1 options: Title slide Bullet slide Table slide Graph slide

Answers

Answer:

Title Slide

Explanation:

The slide that is used to introduce a topic and set the tone for the presentation is called the Title slide. Then the correct option is A.

What is the title slide?

A presentation's opening slide is the title slide. Both a title and a subtitle are typically present. The first slide in a presentation is one of the most crucial since the title slide typically establishes the mood. However, a lot can go wrong in this situation as well.

Microsoft creates a Title slide by default when you create a new presentation because it expects the first slide in your presentation will be for the title. Two text placeholders are included on a title slide.

The Title slide is used to introduce a topic and establish the mood for the presentation. Then, choice A is the best one.

More about the title slide link is given below.

https://brainly.com/question/25647444

#SPJ6

If a user inserts a piece of clip art over some text but does not want the art to block the text, the user should select
the piece of clip art and click which option?
OBring Forward
OSend Backward
O Align
ORotate

Answers

Answer:

send backward

Explanation:

Answer:

Send Backwards

P a. Write a program to input a side of a square. Calculate and print the area of a square.

Answers

Answer:

INPUT "What is the side of the square"; sidelength

areasquare = sidelength*sidelength

PRINT areasquare

Explanation:

the formula for area of a square is side times side

done in QBASIC programming language!

Given the following code segment, what is output after "result = "? int x = 1, y = 2, z = 3; cout << "result = " << (x < y ? y : x) << endl;

a. 1
b. 2
c. 3
d. 4

Answers

Answer:

b. 2

Explanation:

The recipients title located

Answers

In the inside address....

Answer:

in the Inside Address

Explanation:

How are images added to a website? CODING

Answers

Answer:

Depends

Explanation:

This is what I know and I researched some years back

Copy the URL of the image you wish to insert.

Next, open your index. html file and insert it into the img code. Example: <img src=”(your image URL here)”>

Save the HTML file. The next time you open it, you'll see the webpage with your newly added image.

Explanation:

Hi! I also don't know how to add images since im new to the app too, I've read some of the comments from the other answer and i found it really helpful too! Im just answering so that he can get brainliest! And im sorry if im not supposed to answer if i dont know the answer,,

A mid-sized company's IT security engineer is attempting to make it more difficult for their wireless network to be compromised. She is using techniques such as using a random challenge-response dialogue for authentication, timestamps on authentication exchanges, and one-time pad or session-based encryption. What form of wireless attacks is she defending against

Answers

The form of wireless attacks is she defending against is Hijack .

Hijack attack on a system?

Cyber hijacking is a term that is also called  computer hijacking. This is known to be a  type of network security attack where  the attacker often have full control of computer systems, software programs and others.

Due to the attack, the company or firm cannot have control over their system and as such the engineer  in the above firm is defending against is Hijack.

The options are below

What form of wireless attack is she defending against?

Eavesdropping Insertion Hijack Replay

Learn more about Hijack from

https://brainly.com/question/23294592

when I turn on my pc using a graphics card, it does give video, and everything is normal, but when I try to turn on my pc with the integrated graphics of the cpu, nothing appears on the screen, could you help me to be able to use the integrated graphics?

Answers

Answer:

Check BIOS

Explanation:

There are many reasons this could occur I highly would recommend checking BIOS to see if anything seems off their under the Graphics and CPU tab, because a common thing amoung lots of people are that their intergrated graphic setting is turned off in BIOS. If this doesnt work try updating BIOS/motherboard to see if there a change.

what is the difference between delete and backspace key?​

Answers

they are the same thing

Answer: delete what's in front (right) vs behind (left) of cursor

Explanation:

Delete allows you to remove whats in front of the cursor while backspace allows you to remove whats behind the cursor.

what is purpose of indexing​

Answers

ANSWER:
Indexing is accessing your data faster; readings and updates in the database.

EXPLANATION:
Indexes allow you to look up a small subset of the fields called keys, which are stored in an ordered order, and find the actual data using the key. These keys in the index point to the actual data records.

Indexes also help in sort operations, if the sort is on an indexed field. Also, a single index can be useful in multiple queries.

Indexes take up storage space and, while they are running, memory. When data is created or updated, the indexes need updates, sometimes; that's extra write. Therefore, the use of indices needs careful study.

When people buy products from people instead of companies, it's called:

Answers

Answer:

when people buy products from people instead of companies it's called as secondary exchange

Explanation:

mark as brainiest

why was the first cell phone created

Answers

Cooper wanted people to have freedom to talk on the phone away from their cars.
Cooper wanted people to have freedom to talk on the phone away from their cars. So in reaction, he and Motorola embarked on a project to create a more portable device. ... Martin Cooper placed what's recognized as the first public cell phone call in New York City in 1973. :)

Choose the correct color to complete the sentence. Colors have different meanings in different cultures. In western cultures the color generally represents purity cleanliness. In many Asian cultures, it is associated with death and mourning,​

Answers

white

i really do hope this helps

(1 point)
5. Which of the following types of professionals are most likely to perform administrative tasks
during training?
O Market research analysts
O Public relations specialists
O Advertising sales agents
O Advertising, marketing, and promotions managers

Answers

Answer: b public relations specialist

Explanation: took the quiz on edge, got 100%

What can be done in order to secure a WLAN/wireless access point?

Answers

Answer:

this may help "Change default passwords. ...

Restrict access. ...

Encrypt the data on your network. ...

Protect your Service Set Identifier (SSID). ...

Install a firewall. ...

Maintain antivirus software. ...

Use file sharing with caution. ...

Keep your access point software patched and up to date."

Explanation:

write the implementation (.cpp file) of the gastank class of the previous exercise. the full specifiction of the class is:

Answers

Answer: (no specifications)

Explanation:

Given that there is nothing listed about the class there would be no specifications for the class. This part of the question will not provide you with enough information to write code.

Which of the following best describes personal responsibility.

Answers

Answer:

Provides the basis for your code of ethics even if no one is watching

Explanation:

The option that best describes personal responsibility is how you act even if no one is watching.

What is Personal responsibility?

This is known to be the ability of  a person to be willing to accept the importance of standards that a society has set up and also live by those standards.

Note therefore that the option that best describes personal responsibility is how you act even if no one is watching as it tells more about what a person can or cannot do.

Learn more about personal responsibility from

https://brainly.com/question/1461386

#SPJ2

b. WAP to check whether input number is palindrome number or not using SUB...... END SUB.​

Answers

For a number to be palindrome, the reverse of the number and the original number must be the same.

The main program

The program written in Python, where comments are used to explain each line is as follows:

#This gets input for the number

num = input()

#This reverses the number

numrev = num[::-1]

#If the reverse and the original number is the same

if num == numrev:

   #This prints Palindrome

   print("Palindrome")

else:

   #Otherwise, it prints Not palindrome

   print("Not palindrome")

Read more about Python programs at:

https://brainly.com/question/26497128

In not more than 3 pages discuss the concept of digital literacy

Answers

I don’t know if you want me something to

12 points. Which option represents the location of the Goal Seek function?
Goal tab
Data tab, Forecast group
Formulas tab, Forecast group
Insert tab on the ribbon

Answers

Answer:

goaltab

Explanation:

The represents the location of the Goal Seek function is Data tab, Forecast group. The correct option is (B).

What do you mean by the Goal Seek function?

In Excel, the Goal Seek command may be found in the Forecast command group in the What-If Analysis dropdown menu on the Data tab.

By altering an underlying assumption, the Goal Seek Excel function (also known as What-If-Analysis) allows one to solve for a desired output.

Back-solving is effectively done by the function by feeding in guesses and trying different solutions until it finds the right one.

The formula used for goal seek uses the input value to produce the target value. Then, by altering the formula's input value,

Goal Seek makes an effort to find an answer for the input value. Goal Seek only functions with one input variable value.

Therefore, the  represents the location of the Goal Seek function is Data tab, Forecast group.

To know more about the Goal Seek function, visit:

https://brainly.com/question/21530148

#SPJ2

When would you prefer to use a jump drive over using a hard drive? Choose the most appropriate answer.
when you want to back up your data on the same computer
when you need quick access to the data
when you want to rename your data files on your computer
when you want to carry your data with you while on vacation

Answers

Answer:

The answer to this question is given below in the explanation section. The correct option is:

when you want to carry your data with you while on vacation

Explanation:

The question is when would you prefer to use a jump drive over using a hard drive? Choose the most appropriate answer.

when you want to back up your data on the same computer when you need quick access to the data when you want to rename your data files on your computer when you want to carry your data with you while on vacation

The correct option of this question is 4 i.e you would prefer to use a jump drive over using a hard drive when you want to carry your data with you while on vacation. Because carrying data on a computer while on vacation seems not good, and also handling it becomes difficult. It is good to carry data in a jump drive while you are planning to go on vacation.

When James added a date field to a PivotTable, Excel grouped the date values into quarters, months, and years. He does not want to group the data this way, so he clicks the Remove button on the PivotTable Tools Analyze tab.

a. True
b. False

Answers

When James clicks the Remove button on the PivotTable Tools Analyze tab is a true statement.

What is PivotTable?

A PivotTable is known to be a kind of interactive method that is used to quickly make a summary of large amounts of data.

Note that this table is one that a person can use to analyze numerical data thoroughly and it is known to be one that answer quick and unplanned questions about one's data.

Note that one can  remove the set date field without having any effect on the year or quarter fields.

Learn more about PivotTable from

https://brainly.com/question/15214258

Which of these are NOT a common mistake in the website structure?
Question 8 options:

Having too many options on the navigation.

No category landing pages.

Not promoting important articles.

Having a navigation bar in a standard location.

Lack of search and structure integration.

Answers

The choices which is not a common mistake in the website structure is;

Having a navigation bar in a standard location.

Mistakes in Website Structure

It's common for local businesses specifically to have problem with bad or outdated website design as it scares customers away. If one's customers are being scared away by the way the website looks, one is going to lose out on a lot of revenue.

However, having a navigation bar in a standard location is a good practice and hence is not a common mistake.

Read more on mistakes in web design;

https://brainly.com/question/19118327

Other Questions
help plsThe Whigs nominated ___ as their Presidential candidate.Zachary TaylorMartin Van BurenJohn TylerLewis CassHenry Harrison How were the first colonists chosen to come to Georgia? People were chosen by the trustees from applications. All those in debtors' prison were given the first spots. Anyone wishing to come was allowed to settle. Soldiers were the first to come and settle a fort. Which sentence best identifies the problem with this claim?The U.S. military is extremely powerful.A. It uses a logical fallacy.OB. It can never be proven.O c. It uses evidence unfairly.D. It isn't debatable. Find the area of the figure. (Sides meet at right angles.)4 in4 in5 in5 in8 inB in3 in11 in Which would be an appropriate use for an Eyewash? *Flush loose foreign objects in your eyesPollen in your eyes, flush loose foreign objects in your eyes, and remove chemicalsfromyour eyesRemove chemicals from your eyesTo wash your handsTo get a drinkRemove pollen in your eyes A household product manufacturer creates a new liquid detergent for the Central American market. They are surprised when the detergent does not sell well soon after product launch. Which aspect of culture does the company not understand well about Central American consumers? Arrange these events in the correct chronological order:I. Moses Austin met with Governor MartinezII. Moses Austin became part owner of the Bank of St. LouisIII. Moses Austin moved to MissouriIV. Panic of 1819a.I, III, II, IVb.III, II, IV, Ic.I, II, III, IVd.II, III, I, IV Is 831 divisible by 3?? Yes or no Question 2 of 5Which transformation was applied to ABCD to transform it to EFGH?A. Rotation about the originB. Reflection over the yaxisC. TranslationD. Reflection over the x-axis Why was Porfirio Diaz able to rule as a dictator at 35 years please help with these conjugationsElla ___tamales. (cocinar - to cook)l ____ en Mxico. (vivir - to live)Nosotros ___las pizzas. (cortar - to cut)____ t salsa picante? (comer - to eat) ___usted caf? (beber - to drink Select the correct answer.Which function defines ?A. B. C. D. Under what circumstance can the quadratic function not be written in factored form What do both the selection from The Boston Girl and the poem Sybil Ludingtons Ride indicate about the young women?A-The young women are courageous in dangerous situations.B-The young women wish to improve their communities.C-The potential of the young women should be recognized.D-The enthusiasm of the young women can be overwhelming. The spleen is located in which of the abdominopelvic quadrants. PLEASE PLEASE HELP!!! ONLY HAVE 30 MIN!!!WILL GIVE BRAINLIEST!!!! Gary has made this note in his reading notebook. Slowly giving readers answers moves story along. This note refers to which central idea found in A Simple Way to Create Suspense? What almost no one had in 1980 and almost everyone had in 1990 was a remote control. Even viewers who knew the answer for sure stuck around, in order to be gratified. "How do you bake a cake?" has the wrong structure. The basic narrative fuel is always the slow unveiling of the final answer. The role of communication skills in health care What is the supporting idea of the second section " how does a fair trial protect citizens" xavier is working two summer jobs, making $14 per hour life guarding and $15 per hour tutoring. Xavier earn at least $170 this week. write an inequality that would represent the possible values for the number of hours life guarding l, and the number of hours tutoring t, that Xavier can work in a given week.