Which of the following number 1001,1002,1004 will be the sum of 994 and a 2 digit number

Answers

Answer 1

The number that will be the sum of 994 and a 2 digit number is 1004 (option 3). Details about digits of numbers can be found below.

What is a 2-digit number?

A digit is the whole numbers from 0 to 9 and the arabic numerals representing them, which are combined to represent base-ten numbers.

A 2-digit number is any number between 10 and 99.

According to this question, 994 is said to be added to a 2 digit number to result into either 1001, 1002 or 1004.

1001 - 994 = 7 (1 digit)1002 - 994 = 8 (1 digit)1004 - 994 = 10 (2 digit)

Therefore, the number that will be the sum of 994 and a 2 digit number is 1004.

Learn more about number at: https://brainly.com/question/17429689

#SPJ1


Related Questions

divide the sum of 36 and the product of 18 and 6 by 12

Answers

Answer:

12

Step-by-step explanation:

Here is what you have defined:

(36+ (18 x 6) ÷ 12

(36 + 108) / 12

144/12

12

– A BOX CONTAINS 9 RED AND 2 BLUE MARBLES. IF YOU SELECT
ONE MARBLE AT RANDOM FROM THE BOX, DETERMINE THE ODDS AGAINST
SELECTING A RED MARBLE.

Answers

The odds against selecting a red marble is =2/11

Calculation of probability

The number of marbles which were red = 9

The number of marbles which were blue = 2

The total amount of marbles in the Box = 11

When one marble is picked at random from the box, the odds against selecting a red marble can be gotten through the blue marble.

That is, the number of blue marble/ total marble

= 2/11

Learn more about probability here:

https://brainly.com/question/24756209

#SPJ1

Suppose that $17,699 is invested at an interest rate of 6.6% per year, compounded continuously

a) Find the exponential function that describes the amount in the account after time t, in years.
b) What is the balance after 1 year? 2 years? 5 years? 10 years?
c) What is the doubling time?​

Answers

a)

[tex]s(t) = 17699(1 .066) {}^{t} [/tex]

b)

[tex]s(1) = 17699(1.066) = 18867.13 \\ s(2) = 17699(1.066) {}^{2} = 20112.36 \\ s(5) = 17699(1.066) {}^{5} = 24363.22 \\ s(10) = 17699(1.066) {}^{10} = 33536.73[/tex]

c)

[tex]s(t) = 2 \times initial \: capital \: \\ s(t) = 2 \times 17699[/tex]

[tex]17699(1.066) {}^{t} = 2 (17699) \\ 1.066 {}^{t} = 2 \\ t = log¹°⁰⁶⁶(2) = 10.84511 \: years[/tex]

Caisse can download a maximum of 1000 mb of songs or movies to her smartphone each month. the file of each movie is 85mb, and the file of each song is 4mb. write an inequality that represents the number of movies(M) and songs(S) that Caisse downloads each month?

Answers

If Caisse can download a maximum of 1000 mb of songs or movies then the inequality that represents the number of movies and songs that Caisse downloads each month is 85x+4y<1000.

Given that Caisse can download a maximum of 1000 mb of songs or movies to her smartphone each month. the file of each movie is 85mb, and the file of each song is 4mb.

We are required to find the inequality that represents the number movies and songs that Caisse downloads each month.

Inequality is like an equation that shows the relationship between variables that are expressed in greater than, less than , greater than or equal to , less than or equal to sign.

let the number of movies be x and the number of songs be y.

According to question Caisse cannot download more than 1000 mb, so we will use less than towards equation.

It will be as under:

85x+4y<1000.

Hence if Caisse can download a maximum of 1000 mb of songs or movies then the inequality that represents the number of movies and songs that Caisse downloads each month is 85x+4y<1000.

Learn more about inequality at https://brainly.com/question/11613554

#SPJ1

he polynomial of degree 5, P ( x ) has leading coefficient 1, has roots of multiplicity 2 at x = 3 and x = 0 , and a root of multiplicity 1 at x = − 1 Find a possible formula for P ( x ) .
f]

Answers

The possible formula for the polynomial in discuss whose roots are described as; having roots of multiplicity 2 at x = 3 and x = 0 , and a root of multiplicity 1 at x = − 1 is; P(x) = x^5 -5x⁴-6x³+18x².

What is the polynomial in discuss whose roots and leading coefficient are as discussed?

The polynomial which is as described in the task content whose roots are as given can be written in its factorised form as follows;

P(x) = (x-3) (x-3) (x) (x) (x+1)

The expanded form is therefore;

P(x) = x^5 - 5x⁴- 6x³+ 18x².

Therefore, the polynomial having roots of multiplicity 2 at x = 3 and x = 0 , and a root of multiplicity 1 at x = − 1 is P(x) = x^5 - 5x⁴- 6x³+ 18x².

Read more on polynomials;

https://brainly.com/question/13793580

#SPJ1

Como derivar cos(2x)/tan(2x)

Answers

Use the quotient and chain rules. If

[tex]y = \dfrac{\cos(2x)}{\tan(2x)}[/tex]

then the derivative is

[tex]\dfrac{dy}{dx} = \dfrac{\tan(2x) \frac d{dx}\cos(2x) - \cos(2x) \frac d{dx}\tan(2x)}{\tan^2(2x)}[/tex]

[tex]\dfrac{dy}{dx} = \dfrac{\tan(2x) (-\sin(2x)) \frac d{dx}(2x) - \cos(2x)\sec^2(2x) \frac d{dx}(2x)}{\tan^2(2x)}[/tex]

[tex]\dfrac{dy}{dx} = \dfrac{-2\sin(2x)\tan(2x) - 2 \sec(2x) }{\tan^2(2x)}[/tex]

and we can rewrite this by

• multiplying by [tex]\frac{\cos^2(2x)}{\cos^2(2x)}[/tex],

[tex]\dfrac{dy}{dx} = \dfrac{-2\sin^2(2x)\cos(2x) - 2 \cos(2x) }{\sin^2(2x)}[/tex]

• factorizing,

[tex]\dfrac{dy}{dx} = -\dfrac{2\cos(2x) \left(\sin^2(2x) + 1\right)}{\sin^2(2x)}[/tex]

etc

A machinist needs 98 pieces of steel rod. The rods come in bundles of 8 pieces. How many bundles of steel rod does the machinist require?

Answers

Given that the pieces of steel rods comes in bundles, the mechanist will require 13 bundles of steel rods to get the 98 pieces of steel rod he needs.

How many bundles of steel rod does the machinist require?

Given the data in the question;

Machinist needs 98 pieces of steel rodThe rods come in bundles of 8 piecesNumber of bundles of steel rods required by the mechanist = ?

To determine the bundle of steel required, let y represent the bundle.

Since;

1 bundle = 8 piece

y bundle = 98 piece

We cross multiply

y bundle × 8 piece = 1 bundle × 98 piece

y = ( 1 bundle × 98 piece ) / ( bundle ×  8 piece  )

y = 98 pieces / 8 piece

y = 12.25 ≈ 13

Given that the pieces of steel rods comes in bundles, the mechanist will require 13 bundles of steel rods to get the 98 pieces of steel rod he needs.

Learn more word problems here: brainly.com/question/2610134

#SPJ1

PLEASE HELP ASAP WITH EXPLANATION: If f(x) = 2f(x − 1) for all integers x, and f(n) = 3 for some integer n, find the value of
[f(n − 5)][f(n + 5)].

Answers

Answer:F to the power of 2,N to the power of 2,—25,f to the power of 2

Step-by-step explanation: i really hope under stand

what is the best estiment of the mass of a bowling ball

Answers

Step-by-step explanation:

The heaviest legal bowling ball weighs 16 pounds. The lightest weight you can usually find at most bowling alleys is six pounds.

PLEASE MARK ME AS BRAINLIST

ASAP Please help me with this questions ASAP

Answers

Answer:

an angle bisector

Step-by-step explanation:

This is showing the construction of the bisector of ∠LNM

Which of the following is the equation of the line that passes through the point (-5,-7) and has a slope of 2/5?

No multiple choice

Answers

Answer is y = 2/5x -9.

Step by step.

The equation of the straight line y = m x +b.
We need to find y intercept, or “b”.

Substitute (-5,-7) and slope 2/5 into the equation y= mx + b.
So
-7 = 2/5 (-5) + b
-7 = -2 + b
b= -7-2
b = -9

By using slope intercept form, the equation of the line that passes through the point (-5, -7) and has a slope of 2/5 is
y = 2/5x -9.

The equation of the line passing through the point (-5, -7) with a slope of 2/5 is y = (2/5)x - 5.

How did we get the values?

To find the equation of a line, we can use the point-slope form of a linear equation:

y - y₁ = m(x - x₁),

where (x₁, y₁) is the given point on the line and m is the slope.

In this case, the given point is (-5, -7) and the slope is 2/5. Substituting these values into the equation, we have:

y - (-7) = (2/5)(x - (-5)).

Simplifying further:

y + 7 = (2/5)(x + 5).

Distributing the 2/5:

y + 7 = (2/5)x + 2.

Subtracting 7 from both sides:

y = (2/5)x - 5.

Therefore, the equation of the line passing through the point (-5, -7) with a slope of 2/5 is y = (2/5)x - 5.

learn more about linear equation: https://brainly.com/question/2030026

#SPJ2

round 00.963.785 to the nearest. hundredth​

Answers

There are extra periods so I’m not exactly sure but I think it’s 00.96

HELP ASAP WITH EXPLANATION: If f(x) + f(2 − x) = 4 for all x, find f(y − 2) + f(4 − y)

Answers

Answer:

f(y-2)+f(4-y)=4

Step-by-step explanation:

Assume (let) x=y-2

So: y=x+2

f(y-2)+f(4-y)=f(x)+f(-x+2)=f(x)+f(2-x)

The value of that expression is 4 from the given.

Please help me with this question <3

Answers

[tex] \qquad \qquad \bf \huge\star \: \: \large{ \underline{Answer} } \huge \: \: \star[/tex]

For two lines to be parallel, there should be angles that follow some specific properties that is usually observed with parallel lines.

We can clearly see that :

[tex] \qquad❖ \: \sf \: \angle7 \cong \angle16[/tex]

( by Alternate interior angle pair )

[tex] \qquad \large \sf {Conclusion} : [/tex]

Lines l and m are parallel to each other.

A ball is thrown from an initial height of 2 meters with an initial upward velocity of 25 m/s . The ball's height h (in meters) after t seconds is given by the following.

Answers

The value of  values of t for which the ball's height is 7 meters then is 4.79secs.

What is velocity?

Velocity can be regarded as a vector measurement of the rate as well as direction of motion.

It is the the speed at which something moves in one direction and with the given velocity, the time as well as the distance can be calculated as :

Given:

h=2+25t-5t^2

But h=7

Then 2+25t-5t^2=7

-5t^2++25t +2-7=0

-5t^2+25t -5=0

we can then factorize as :

-5(t^2+5t -1)=0

Solving the equation using quadratic formula, the the roots of equations are: 4.79  and -5.0

The value of  values of t for which the ball's height is 7 meters then is 4.79secs.

Learn more about Velocity at;

https://brainly.com/question/6504879

#SPJ1

COMPLETE QUESTION :

A ball is thrown from an initial height of 2 meters with an initial upward velocity of 25 m/s . The ball's height h (in meters) after t seconds is given by the following. h=2+25t-5t^2

Find all values of t for which the ball's height is 7 meters.

Round your answer(s) to the nearest hundredth.

Find the missing segment in the image below

Answers

Answer:

42

Step-by-step explanation:

similar triangles

24/x = (24+8)/x+14

that looks complicated so we do

8/24 = 14/x

or

24/8 = x/14

3 = x/14

x = 3*14

x = 42

we test it with the first equation

24/42 = 32/56

simplify

4/7 = 4/7

true so 42 is correct

A "Shirley Temple" drink is made by a 5.
mixing 2 cups of 7-Up with 4 tablespoons
of grenadine syrup. Write a ratio of
grenadine syrup to 7-Up. (hint: 160 lstot of an
Tablespoons = 1 Cup)

Answers

The ratio of grenadine syrup to 7-Up will be 1:8.

How to find the ratio?

From the information given, we are told that Shirley Temple" drink is made by a 5 mixing 2 cups of 7-Up with 4 tablespoons of grenadine syrup.

The ratio of grenadine syrup to 7-Up will be:

4 tablespoon : 2 cups

Note that 1 cup = 16 teaspoon

4 : (2 × 16)

= 4:32

= 1:8

Therefore, the ratio of grenadine syrup to 7-Up will be 1:8.

Learn more about ratio on:

brainly.com/question/2328454

#SPJ1

if this graph of f(x)=a^(x+g) +k then;

A. the domain is (h,∞) and the range is (-∞,∞)
B. the domain is (-∞,∞) and the range is (h,∞)
C. the domain is (h,∞) and the range is (k,∞)
D. the domain is (-∞,∞) and the range is (k,∞)

Answers

The correct option regarding the domain and the range of the function f(x)=[tex]a^{x+g} +k[/tex] is given by that the domain is (-∞,∞) and the range of the function is (k,∞).

Given a function f(x)=[tex]a^{x+g} +k[/tex].

We are told to find the domain and range of the function.

The domain is basically the values which we enters in a function.

The range is basically the values which we are getting by entering some values in the function.

An exponential function is given in the function which has no restrictions hence the domain is  (-∞,∞).The range depends on the vertical shift given by k. Hence the range of function is (k,∞).

Hence the correct option regarding the domain and the range of the function f(x)=[tex]a^{x+g} +k[/tex] is given by that the domain is (-∞,∞) and the range of the function is (k,∞).

Learn more about function at https://brainly.com/question/10439235

#SPJ1

Write the equation y=-3x+3 in function notation using f(x) to denote the function.

Answers

The function notation form of the given equation; y = -3x +3 as in the task content is; f(x) = -3(x) +3.

What is the function notation form of the equation?

According to the task content, the equation given; y = -3x +3 is to be written in function notation.

Consequently, since the function expression given is linear in variable X, it follows that the required function notation is;

f(x) = -3x +3.

Read more on function notation;

https://brainly.com/question/25638609

#SPJ1

Your family borrowed $400,000 from the bank to purchase a new home. If the bank charges 3.8%
interest per year, compounded weekly, it will take 25 years to pay off the loan. How much will each
weekly payment be?

Answers

Answer:

472.19

Step-by-step explanation:

$472.19 weekly

Thus the required weekly installment is $402.30 for 25 years.



Given,
The family borrowed $400,000 from the bank to purchase a new home.
the bank charges 3.8% interest per year, compounded weekly, it will take 25 years to pay off the loan. How much will each weekly payment to be determined?

What is Statistic?

Statistics is the study of mathematics that deals with relations between comprehensive data.

The principle amount to refund = 400,000
Let the principle amount for weekly = P
Rate per year = 3.8%
Tenure = 25 year
For weekly installments,
52 Weeks in a year
Tenure = 25/52

Now,
[tex]Amount = P(1-(1+r)^{-tn})/i\\400000 = P (1-(1+0.038/52)^{-25*52}) / (0.038/52)\\400000 * 0.038/52 = P(1-(52.038)^{-25*52})\\292.30 = P(1-(1.001)^{-1300})\\292.30 = P(1-0.273)\\292.30=P * 0.727\\P = 402.30[/tex]

Thus the required weekly installment is $402.30 for 25 years.

Learn more about Statistics here:
https://brainly.com/question/23091366

#SPJ5

The function f(x)=58(1.6)x represents the possible bird population in a park x years from now. Each year, the expected number of birds is ____the number the year before.

Answers

Answer:

  1.6 times   or   60% more than

Step-by-step explanation:

The question seems to be asking about the growth factor in the given exponential function.

Exponential function

A generic exponential function will have the form ...

  quantity = (initial value) × (growth factor)^(number of intervals)

Comparing this form to the given formula ...

  f(x) = 58 × 1.6^x

we see the "growth factor" is 1.6. This is the multiplier from one interval (year) to the next.

Each year the expected number of birds is 1.6 times the number the year before.

__

Additional comment

A growth factor is sometimes expressed in terms of a growth rate, usually a percentage.

  growth factor = 1 + growth rate

  1.6 = 1 + 0.60 = 1 + 60%

The growth rate of this bird population is 60% per year. Each year, the population is 60% more than the year before.

Answer: 1.6

Step-by-step explanation:

Which shapes have less than 3 lines of symmetry?

A) B and C

B) A and D

C) B and D

D) A and C

Answers

The shapes that have less than 3 lines of symmetry are Isosceles trapezoid and Isosceles triangle

How to determine the shapes that have less than 3 lines of symmetry?

The shapes are given as:

Isosceles trapezoidSquareIsosceles triangleRegular Pentagon

The lines of symmetry are the lines that, when the shape is rotated through this line, the shape remains the same

As a general rule:

An Isosceles trapezoid and an Isosceles triangle have two lines of symmetry

Hence, the shapes that have less than 3 lines of symmetry are Isosceles trapezoid and Isosceles triangle

Read more about lines of symmetry  at

https://brainly.com/question/1460991

#SPJ1

Describe the translation.

y=(x−5)2+5 → y=(x−0)2+0
A. T<−5,5>
B. T<5,−5>
C. T<−5,−5>
D. T<5,5>

Answers

Answer:

C

Step-by-step explanation:

This is a translation 5 units left and 5 units dowh.

Here, the translation is [tex]T < 5,-5 >[/tex].

What is translation?The translation is a coordinate transformation operation in which a point or a figure moves left/right/up or down in a coordinate system or a set of axes. After applying translation, the size of the figure remains unchanged, just the position changes. For example, consider a function [tex]y=f(x)[/tex]. If we translate it to the new function [tex]y'=f(x+a)+b[/tex], then the graph of [tex]y[/tex] moves [tex]a[/tex] units to the right and [tex]b[/tex] units to the up and in this case the translation is denoted by [tex]T < a,b >[/tex]

Here, the translation is given as: [tex]y=2(x-5)+5\longrightarrow y=2(x-0)+0[/tex].

i.e. [tex]y=2(x-5)+5\longrightarrow y=2(x-5+5)+(5-5)[/tex].

So, the graph of [tex]y[/tex] moves 5 units to the right and (-5) units to the up i.e., 5 units to the down.

Therefore, here, the translation is [tex]T < 5,-5 >[/tex].

To know more about translation, refer: https://brainly.com/question/12861087

#SPJ9

2) Find the perimeter and area of the figures:
a)
P =
A =
8
8 ft.
b)
P =
A =
12
5m

Answers

Answer:

8+8+12+5= 33

Step-by-step explanation:

8+8+12+5=33

If a 90ml drink has 2 parts milk and 1 part chocolate topping, how many mls of milk and chocolate topping is that?

Answers

Answer:

The milk would be 60 ml and the topping would be 30 ml

Step-by-step explanation:

If there are 2 parts milk and 1 part toppings that would be a total of 3 (2+1 =3)  So we are looking for 2/3 of 90 and 1/3 of 90.

What is the solution to x2 – 9x < –8? x < 1 or x > 8 x < –8 or x > 1 1 < x < 8 –8 < x < 1

Answers

Linear Inequality

In mathematics a linear inequality is an inequality involving a linear function. A linear inequality contains one of the inequality symbols.​< is less than > is greater than ≤ is less than or equal to ≥ is greater than or equal to ≠ is not equal to.

x²− 9x < − 8

Let's find the critical points of the inequality.

x² − 9x = − 8

x² − 9x −(−8) = − 8 −(−8) (Subtract -8 from both sides)

x² − 9x + 8 = 0

(x − 1)(x − 8) = 0 (Factor left side of equation)

x − 1 = 0 or x − 8 = 0 (Set factors equal to 0)

x=1 or x=8Check intervals in between critical points. (Test values in the intervals to see if they work.)

x < 1 (Doesn't work in original inequality)

1 < x < 8 (Works in original inequality)

x > 8 (Doesn't work in original inequality)

Answer:1 < x < 8

The third option is the correct one.

See more at:https://brainly.com/question/14338402

Tamela plants 6 rows of t tomato plants each. How many tomato plants did she plant?

Answers

Answer:

6t tomato plants

Step-by-step explanation:

There are 6 rows, Tamala places t in each row. We multiply 6 by t.

If t were 5, the tomato plants would be 30 since we multiply the rows by the number of tomato plants

Answer:

6t

Step-by-step explanation:

number of rows × number of plants per row = total number of plants

6 × t = 6t

Answer: 6t

please help urgently ​

Answers

Answer:

2

Step-by-step explanation:

Substitute:

2(1)(3)+2 / 2(1)(3)-2 =

6 + 2 / 6 - 2 =

8 / 4 =

2.

Hey there!

2ab + 2 / 2ab - 2

= 2(1)(3) + 2 / 2(1)(3) - 2

= 2(3) + 2 / 2(3) - 2

= 6 + 2 / 6 - 2

= 8 / 4

= 2


Therefore, your answer should be: 2


Good luck on your assignment & enjoy your day!


~Amphitrite1040:)

You inherit one million dollars. You invest it all in three accounts for one year. The first account pays 3% compounded annually, the second account pays 4% compounded annually, and the third account pays 2% compounded annually. After one year, you earn $34,000 in interest. If you invest four times the money into the account that pays 3% compared to 2%, how much did you invest in each account?

Answers

The amount that was invested are at 3% = 400000, at 4% = 500000 and at 2% = 100000

How to solve for the amount invested

We have x + y + z = 1000000

((1+0.03)x - x)+ ((1+0.04)y - y) + ((1 + 0.02)z-z) = 34000

4z + x + z = 1000000

((1+0.03)4z - 4z)+ ((1+0.04)y - y) + ((1 + 0.02)z-z) = 34000

((1+0.03)4z - 1)+ ((1+0.04)y - 1) + ((1 + 0.02)z-1) = 34000

12/100z + 4/100y +2/100z = 34000

2y + 7z = 1700000

-2y - 10z = -2000000

2y + 7z = 1700000

Solve through the use of the simultaneous linear equation

z = 100000

y = 500000

x = 400000

The amount that was invested are at 3% = 400000, at 4% = 500000 and at 2% = 100000

Read more on compounding here:

https://brainly.com/question/2449900

#SPJ1

help please.

Malaysia police traffic department claims that 54% of fatal car accidents are caused by driver error. A researcher studies 30 randomly selected accidents and founds that 14 were caused by driver error. Using a = 0.05, is that Malaysia police traffic department's statement is true?​

Answers

Answer:

The Malaysia police departments statement was true, because 14/30 is extremely close to 54% (roughly 15.5/30).

Type: Probability

Please rate this answer based on how helpful it was!
Other Questions
When one organism gains a benefit at the expense of a second organism and causes them harm is called: A. patasitismB. MutualismC. CommensalismD. Predation What is the area of this figure?14 km8 km9 km8 km5 km4 km4 km4 km please help urgently The particualr skills, abilities and process that an organization has developed to manage close customer relationships are referred as:________ N the great mosque (1. 9. 9) there are red and white stone wedges that make up the series of repeating arches that dominate the interior. what are these stone wedges called? 1/2 to the 2nd power in fraction form A study, generally in the form of an interview or a questionnaire, is referred to as :______ _______ consumers in the united states have increasing influences on mainstream u. S. Culture, and the buying power of this group is projected to reach $1. 3 trillion in 2015. At a school 45% of the students are boys; 30% of the boys and 40% of the girls play soccer. What percentage of the whole school plays soccer? The SkyWheel has a diameter of 183 feet. What is the radius? (don't round and just write the numerical answer, no units) Ellen is 12 years old and on the stanford-binet intelligence scale, her iq is 100. what is her mental age on this test? What structure in the male reproductive system produces most of the seminal fluid? Could someone explain this sentence for me ? Chopin never published his "FantasieImpromptu," and itwas almost lost whenA. Chopin made his sister promise to burn it after his death.B. Chopin forgot where he put it.C. it was left out in the rain. help help help help me please why factors of production are important in promoting south Africa's economic growth and development How to do 8+(-3)+(-2) three diffrent ways on a number line? When societies are using all available resources and technology most efficiently they are? Hr-to-employee ratio is classified as a(n) __________ metric of human resources. How do you fix this?from random import randintclass Character: def __init__(self): self.name = "" self.health = 1 self.health_max = 1 def do_damage(self, enemy): damage = min( max(randint(0, self.health) - randint(0, enemy.health), 0), enemy.health) enemy.health = enemy.health - damage if damage == 0: print("%s evades %s's attack." % (enemy.name, self.name)) else: print("%s hurts %s!" % (self.name, enemy.name)) return enemy.health randint(1, self.enemy.health): print("%s flees from %s." % (self.name, self.enemy.name)) self.enemy = None self.state = 'normal' else: print("%s couldn't escape from %s!" % (self.name, self.enemy.name)) self.enemy_attacks() def attack(self): if self.state != 'fight': print("%s swats the air, without notable results." % self.name) self.tired() else: if self.do_damage(self.enemy): print("%s executes %s!" % (self.name, self.enemy.name)) self.enemy = None self.state = 'normal' if randint(0, self.health) < 10: self.health = self.health + 1 self.health_max = self.health_max + 1 print("%s feels stronger!" % self.name) else: self.enemy_attacks() def enemy_attacks(self): if self.enemy.do_damage(self): print("%s was slaughtered by %s!!!\nR.I.P." % (self.name, self.enemy.name)) def fall(self): print( "%s fell down a pit and dies.\nR.I.P." % self.name) self.health = 0Commands = { 'quit': Player.quit, 'help': Player.help, 'status': Player.status, 'rest': Player.rest, 'explore': Player.explore, 'flee': Player.flee, 'attack': Player.attack,}p = Player()p.name = input("What is your character's name? ")print("(type help to get a list of actions)\n")print("%s enters a dark cave, searching for adventure." % p.name)while(p.health > 0): line = input("> ") args = line.split() if len(args) > 0: commandFound = False for c in Commands.keys(): if args[0] == c[:len(args[0])]: Commands[c](p) commandFound = True break if not commandFound: print("%s doesn't understand the suggestion." % p.name)