Implement a number guessing game where a player will get up to seven chances to guess a mystery number in the range of 1 through 100.

Answers

Answer 1

The implementation of the guessing game ls written in python 3 which involves a maximum guess of 7 to make a prediction of the random integer generated.

import random

#import the random module for generating random numbers

num = random.randint(0, 100)

#generate a random integer value between 1 to 100 and store in the variable num

tries = 0

#initialize a counter to record the number of guesses made

while tries <7 :

#while loop ensures that only a maximum of 7 guesses is are made

guess = int(input('Enter your guess'))

#prompts user to make a guess

tries+=1

#increases the number of guesses by 1

if guess == num :

#checks if the guess is equal to the random number

print('success')

#dispaly success if true

elif tries < 7 :

#if not check if number of guesses is not up to 7 and tell user to try again

print('Try again')

elif tries == 7 :

#checks if number of tries is equal to 7

print('tries exceeded\n the random number is :', num)

# tell user that is number of tries has elapsed and display the correct number.

A sample run of the program and the output is attached.

Learn more :https://brainly.com/question/19347842

Implement A Number Guessing Game Where A Player Will Get Up To Seven Chances To Guess A Mystery Number

Related Questions

demons I shall be your eternal nightmare

Answers

What does this mean??? Should I be scared right now? Just kidding I’m not scared. Hope you’re not trying to cause harm. Hope you have a positive day and happy Thanksgiving to you and your family

can u please answer this logos?​

Answers

Answer:

19 is apple

I'm sorry I only know that, but I hope this helped you!!

Briefly describe the following advanced database systems and applications: object-relational databases, spatial databases, text databases, multimedia databases, the World Wide Web

Answers

Object-relational databases (ORD) are a type of database management system (DBMS) designed based on an object-oriented database model. The database framework and query language of ORD support objects, classes, and inheritance.

Spatial database is a kind of database designed for keeping and querying data that depicts objects specified in a geometric area.

Text database is a type of database designed to handle the maintenance of huge text compilation, then create quick and valid access to it.

Multimedia database is a type of database that saves multimedia data, including text, images, graphic objects, animation, audio, video, etc.

The World Wide Web is an information system that connects several documents through hyperlinks and can be accessed or retrieved through the internet. It is usually termed as web.

Hence, in this case, it is concluded that this advanced database and applications are vital in the modern world.

Learn more here: https://brainly.com/question/13044551

A printer is considered to be in the category of
a. software
Selected:b. hardware
c. operational system
d. equipment

Answers

A printer is considered to be in the category of b. hardware.

What is hardware?

Computer hardware contains the physical characteristics of a computer, such as a case, central processing unit (CPU), random access memory (RAM), monitor, mouse, keyboard, computer data storage, pictures card, sound card, speakers, and motherboard.

Hardware directs to the physical components of a computer. Also directed to as the machinery or the equipment of the computer. Examples of hardware in a computer exist the keyboard, the monitor, the mouse, and the processing unit However, most of a computer's hardware cannot be caught; It's inside the computer case.

A printer exists as an external hardware output device that brings the electronic data stored on a computer or other device and develops a hard copy.

Hence, A printer is considered to be in the category of b. hardware.

To learn more about hardware refer to:

https://brainly.com/question/24370161

#SPJ2

Jacob is a network technician who works for a publishing company. He is setting up a new hire's access permissions. The new hire, Latisha, is an editor. She needs access to books that have been accepted for publication but are in the review stage. Jacob gives her access to the network drive containing only books in review, but not access to administrative or human resources network drives. What principle is Jacob applying

Answers

If Jacob gives her access to the network drive containing only books in review, but not access to administrative or human resources network drives. The principle that Jacob is  applying is: The principle of least privilege

Principle of least privilege is a principle that help to protect confidential or sensitive information from unauthorized use.

Which means that a user is only authorized  or given the permission to  access least information or information  which the user only need to carryout their assignment or tasks.

Principle of least privilege is important as it help to minimize or limit the damages that can arise due to unauthorized usage.

Inconclusion  if Jacob gives her access to the network drive containing only books in review, but not access to administrative or human resources network drives. The principle that Jacob is  applying is: The principle of lease privilege.

Learn more here:

https://brainly.com/question/14132911

Manufactured computers and cell phones are part of which industry? Electronics Chemicals Machinery Metal products

Answers

Answer:

The correct answer is the electronic industry

Hope this helps

Answer:

Electronics

Explanation:

How is a worm different from a Trojan?

A. A worm reproduces itself on the same computer, whereas a Trojan attempts to spread through the network.

B. A worm gathers information and transmits to a server, whereas a Trojan hides and then spreads through a network.

C. A worm spreads through a network, whereas a Trojan hides inside another program.

D. A worm prevents a device from functioning until a ransom is paid, whereas a Trojan gathers information and transmits it to another device.

Answers

Answer:

C. A worm spread through a network, whereas a trojan hides inside another program.

Explanation:

Worms spread through computer networks, a great example of a popular computer worm that struck the world is the "ILOVEYOU" / "Love Letter for You" worm. The malware infected over ten million personal computers and was spread via the user's email and sent to all addresses in the user's address book.

A trojan virus is essentially a piece of malicious software that looks legitimate from the outside but in under the seal it's highly malicious and destructive; hence how it got it's name "Trojan Horse" which is a reference to an Ancient Greek story of deception.

Where do you find the option to Restore a Davinci Resolve Archive project file?

Answers

With your project fully archived, you need to restore it to use in Resolve. Back in the project window, right-click anywhere, and hit “restore.” Navigate to the archived project folder, and select open. Resolve will then import the project, bins, and media exactly as you left them prior to archiving

2) RMU divides students into house groups based on the month that they were born in.
born in May, June, July or August are put into Bridge House. All other students are
Students born in January, February, March or April are put into Ship house. Students
put into Anchor house.
Design a flowchart that will:
. Ask the user to enter a number (1 to 12) relating to their birth month
Decide which house they are in and print this out.
Keep a running total of how many students are in each house.
Repeat the above for 20 students.
When 20 students have entered their details, print out how many students are in
each house

Answers

describe your childhood

Declare an eight by eight two-dimensional array of strings named chessboard.

Answers

Answer:SOLUTION:  

String [][] chessboard = new String [8][8];

Describe briefly three applications/systems that can be used to add digital signature to a document?

Answers

Answer:

Applications of Digital Signature

To send and receive encrypted emails, that are digitally signed and secured.

To carry out secure online transactions.

To identify participants of an online transaction.

Explanation:

To create a cell reference in another spreadsheet you must need to start with _______ sign.
a. = = b. & c. = d. $

Answers

Answer:

You need to start with c) =

your favorite type of advertising

Answers

Answer:

Here are some of the best types of advertising:

•Social Media Advertising.

•Pay-Per-Click Advertising.

•Mobile Advertising.

•Print Advertising.

•Broadcast Advertising.

•Out-of-Home Advertising.

•Direct Mail Advertising.

•Target the Right Audience.

'But my favorite type of advertising is SOCIAL MEDIA ADVERTISING..'

Explanation:

Hope it helps you..

Y-your welcome in advance..

(;ŏ﹏ŏ)(ㆁωㆁ)

QUESTION 7
Any use of a direct quote or paraphrased idea does not need to be cited properly in APA style.
O True
O False

Answers

false, it needs to be properly cited because that is plagiarism which is illegal

A footnote can be configured to take up a fixed number of ______ of text

Answers

Footnote just like endnotes can be formatted to have a fixed number of lines of texts.

Footnotes are used to leave reference in the text for readers to make reference too and basically placed at the bottom of the page, although with a little formatting they can come in handy despite their limitations

Footnotes generally include the

Author name, The publication title,Publication date,Publisher information with the very first citation, and a Page number.  

For more information on footnotes and endnotes kindly visit

https://brainly.com/question/25365614

 

What is the key benefit of the least privilege approach
to security?
o It results in task being completed quicker
o It minimises the level of compromise in the event of a security breech
O Ensures modular, reusable output

Answers

Answer:

2nd

Explanation:

it has a low security

List and Explain the programming Languages required to start working in Apple.

Answers

Answer:

JavaScript, Java, and C++ are obvious additions. Mastering these programming languages can help you land a secured job at Apple. If you pay attention to the popularity of programming language skills, Python is an immensely popular generalist programming language across all leading tech companies

What type of data causes concern for institutions or business when collected, stored, and not secured properly?
Advertising information
Personal identifying Information
User interface information
Marketing information

Answers

Answer:

user interface information

Explanation:

This is because it exposes the infrastructure of the business or institution which includes the layout of plans and future perspective

The type of data that causes concern for institutions or business when collected, stored, and not secured properly is Personal identifying Information.

What is  Personal identifying Information?

Personal Identifiable Information (PII) is known to be any depiction of information that allows the identity of a person to whom the information is given to be reasonably taken by direct or indirect method.

Therefore, The type of data that causes concern for institutions or business when collected, stored, and not secured properly is Personal identifying Information as it can lead to issues and lawsuit if tampered with.

Learn more about Personal Information from

https://brainly.com/question/25228524

#SPJ6

How can you legally use the search engine

Answers

To perform a search, you'll need to navigate to a search engine in your web browser, type one or more keywords, also known as search terms, then press Enter on your keyboard.

After you run a search, you'll see a list of relevant websites that match your search terms. These are commonly known as search results. If you see a site that looks interesting, you can click a link to open it. If the site doesn't have what you need, you can simply return to the results page to look for more options.

Most browsers also allow you to perform a web search directly from your address bar, although some have a separate search bar next to the address bar. Simply type your search terms and press Enter to run the search.

Hope my answer helped u :)

I have problems in compiling this Java code:
class SumMatrix{
public static void main(String[] args){
matrixAdd({{1;2}; {5;6}}; {{8;7}; {3;4};});}
public static double[][] matrixAdd(double m1[][], double m2[][]){
int i,j;
double sum[][];
for (i=1;i<=2;i++){
for(j=1;j<=2;j++){
sum[i][j]=m1[i][j]+m2[i][j];
}}
for (i=1;i<=2;i++){
for(j=1;j<=2;j++)
return sum[i][j];
}
}
}
I get this errors:

Answers

Not my fault double sun you should restart your computer for it work

What reduces the likelihood of accidents occurring?

Answers

The first three on top are correct. This is correct because I took the test and it makes the most sense.

Hope this helps have a nice day :)

measurement, analysis and iteration forms which stages of the strategy and planning process​

Answers

Answer:

science is what it is that science

Explanation:

What is the best Computer in the World?
Wrong answer will be reported!

Answers

Dell XPS Desktop Special Edition is the best Computer in the World

▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪

Cutest Ghost

▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪

To change the type of tab showing in the Tab Selector Box, which of the following should be done? Right-click on the Tab Selector Box Click on the Ruler Right-click on the Ruler Click on the Tab Selector Box

Answers

Literally, a tab selector presents to the user varieties of tab marker options.

To change the type of tab, you simply (d) Click on the Tab Selector Box

The tab selector is situated at the left of the ruler, and there are four basic types of tabs.

Left-alignedCenteredRight-alignedDecimal-aligned.

To change between these tabs, you simply click on the tab selector.

Hence, the correct option to change the type of tab is option (d)

Read more about tab at:

https://brainly.com/question/14459387

a printer gives hard output whereas a screen gives_ output​

Answers

Answer:

Explanation:

Easy,soft copy output as the output given by a screen only can be seen but can't be touched

opción.
La configuración manual de parámetros
de red se realiza en la ventana de
"propiedades" del adaptador ethernet,
haciendo doble clic sobre la opción:
D

Answers

Answer:

haga doble clic en el icono de conexiones de red

Explanation:

haga doble clic en el icono de conexiones de red.

(perdón por mi mal español, todavía no soy muy bueno en eso, sin embargo espero que esto ayude)

Question 3 A benefit of using online tools is that: O you have more privacy because the information is stored locally on your computer. they are accessible anywhere you have the internet. it is the only way to utilize essential business software. everything is stored in the same place. Question 4​

Answers

Answer:

False, it doesn't mean that if a application is stored on a device, it can't steal any data. Take cloud service for example it is not locally stored on your computer it is stored on the huge amount of databases, meaning that the service provider could steal the files or delete them without consent.

Crashes involving new teen drivers are only caused by poor skills.
True
False

Answers

The answer is false because it can be someone else’s bad driving, they can run into you.

how to calculate 3 X (50 + 40) ÷ 5 on excel 2016

Answers

Answer:

I think this might help, don't know much of this

Explanation:

How do you calculate 3.5 increase in Excel?

How To Increase a Number By a Percentage. If want to calculate a percentage increase in Excel (i.e. increase a number by a specified percentage), this can be done by simply multiply the number by 1 + the percentage increase. - which gives the result 60.

Explanation:

I am not sure what your problem is.

you don't know how to enter a formula into an Excel cell ? or you don't know how to combine the content of cells into one result in another cell ? or ... ?

but just answering literally this one-line-problem-definition

you click into an empty cell and type

=3*(50+40)/5

and press return.

and the cell will show you the result. 54

What is Smart Content Profits all about?

Answers

Answer:

Smart Content Profits is a ground-breaking app that builds WordPress sites on auto-pilot. Just add in a domain and let this system do the rest.

Answer: A friendly system that lets you build content sites very quickly.

Explanation:

Other Questions
Given that ABD RQS and m DBC = 33, what is m RQS? write y=3/8x-2 in standard form How does Poe establish an atmosphere of fear or horror in his short stories?PLS WRITE AT LEAST 2 PARAGRAPHSBTW THIS IS ABOUT EDGAR ALLEN POEALSO, I WILL GIVE BRAINLIEST TO THE BEST ANSWER! The price of a video game is marked up by 35%. What is the new price of the game before the markup was 40$? (help A fish store can place 5 fish in each fish bowl. If there are 263 fish to place, how many fish bowls are needed for all 263 fish? Defina molculas hidroflico hidrofbico y anfiptico indique un ejemplo de bio molcula de cada uno de ellos explique cmo se comporta la molcula as Patikas en el agua y relacionarlo con la formacin de la membrana biolgica PLEASE HELP ME I REALLY NEED IT Can someone help me understand how you do rates/ratios for the last step like you would have to make them improper then divided and then times then flip them but what do you for the last part? Like for an a example this problem question? What are the reactants ofcell respiration?(what is needed) which membranous organelle is found next to the nucleus and is covered in ribosomes? Two cards are randomly drawn. (5 blue cards and 3 yellow cards) What is the probability of drawing two blue cards if the fist card is not included in the second draw? simlify your answer completely If u know please answer 5word puzzle about sounds waves across I really need help on this (: Cu 5. Mt vt dao ng iu ha vi phng trnh x = 20cos(10pit +pi/2) (cm). Xc nh thi im u tin vt i qua v tr c li x = 5 cm theo chiu m k t thi im t = 0. A map of Pennsylvania has a scale of inch to 25 miles. If Pittsburgh and Philadelphia are 9 inches apart on the map, how many miles apart are the two cities? When would the median be the most effective way to describe a distribution? P, Q, R, S, T, U, V and W are sitting around a circular table, facing the centre. P sits third to the right of W Ayuda plis estoy perdida if and are the zeros of p(x) = x 5x + 3, then find the value of + option (a)1, (b)2, (c)3, (d)5 please help