1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
seraphim [82]
3 years ago
13

You are making a game! The player tries to shoot an object and can hit or miss it. The player starts with 100 points, with a hit

adding 10 points to the player’s score, and a miss deducting 20 points. Your program needs to take 4 action results as input ("hit" or "miss"), calculate and output the player’s remaining points.
Computers and Technology
1 answer:
Anni [7]3 years ago
3 0

The program illustrates the use of loops and conditions.

Loops are used for repetitions, while conditions are used to make decisions

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

#This initializes the point to 100

point = 100

#The following loop is repeated 4 times

for i in range(4):

   #This gets the current action

   action = input("Hit or Miss: ")

   #This following if statement calculates the point

   if action.lower() == "hit":

       point+=10

   else:

       point-=20

#This prints the calculated point

print(point)

Read more about loops and conditions at:

brainly.com/question/14284157

You might be interested in
8. To be a Bunk Leader, a staff member must have over 4 service years and have completed leadership training. In cell L2, enter
Nitella [24]

Answer:

=IF(AND([Service Year]>4,[Leadership Training]="Yes"),"Yes","No")

Explanation:

To make use of structured references, a table has to be defined (created). Assume that the table definition is as follows;

Staff --- Service Year --- Leadership Training --- Status

In cell L2, type the above formula

Analyzing the formula:

=; An Excel formula must start with an = sign

IF; This signifies  that the formula is an "IF" function

AND; This signifies that there are more than one condition in thee formula and all conditions must be true

[Service Year]>4; The question requires that the formula uses a structured referencing. Structured referencing is such that the columns of a table are called instead of cell names;

Here, reference is being made to [Service Year] because Service Year is a column name and its value must be greater than 4

[Leadership Training]="Yes"; The above analysis is applicable here too because Leadership Training is column name and it must be "Yes" for it to return a true value.

"Yes"; Return Yes if both conditions are true

"No"; Otherwise, return No.

4 0
4 years ago
Does windows 7 has vb6stkit.dll in system 32
vfiekz [6]
Yes! If you want a more in depth answer then look at http://www.processlibrary.com/en/directory/files/vb6stkit/21517/ | Hope I helped and have a nice day!
5 0
3 years ago
Universal Containers has quotes that have multiple Quote Lines for the same Product. They require all Products with the Product
shusha [124]

Answer:

The field that is used to sum the fields that are relevant in the list and show in the main record is known as roll up field.

<u>Explanation</u>

The universal containers are used to contain all types of products information for the purpose of security and management of data.

It is required in the document that, we have to mention the quotes at different places along with their name. So, we use <em>roll up field </em>to manage the quotes of same product name at different lines of the document.

<u></u>

4 0
4 years ago
Help plz plus 10 points :)
yan [13]

She should  customize her logo

7 0
3 years ago
Computer C’s performance is 4 times as fast as the performance of computer B, which runs a given application in 28 seconds. How
slamgirl [31]

Answer:

112

Explanation:

Since computer C's performance is 4 times faster, naturally I'd multiply 28 by 4.

6 0
3 years ago
Other questions:
  • Which writing format is also beneficial to public speaking? a. Five paragraph essay c. Conventions b. Prose d. None of these
    5·2 answers
  • PLEASE HELP ITS EASY I JUST BIG STOOPYHEAD!!!!
    5·2 answers
  • Which of the following is a trend that began during the Vietnam War and continued with the Internet?
    5·1 answer
  • I.C.T
    15·2 answers
  • There are three required elements needed to connect to the internet: hardware, web browser, and __________.
    15·2 answers
  • ______ is the software that prevents people from being able to access your personal information.
    8·2 answers
  • Which tab should you choose to add a picture from a file to your presentation?
    8·1 answer
  • There is only one way to change line spacing in Word.
    14·1 answer
  • PLEASE HELP!!!
    11·2 answers
  • Give an example of SaaS (Software as a service) and explain why this can impact organisational security posture
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!