The game begins with the player having 20 POINTS

The player rolls 2 six sided dice and the sum of faces on the two dice are calculated. That’s called the players POINT.

If the POINT is a 7 or 11, the player wins his POINT

If the POINT is a 2, 3, or 12, the player loses his POINT

If the POINT is anything else, then the game continues by the player rolling the two dice again and again recording and checking the sum until

The player makes his point (The sum of his dice roll equals his POINT value) and then he wins his POINT

The player rolls a 7 and then he loses his POINT.

The player is considered a winner if he can acquire 60 POINTS and is considered a loser when he runs out POINTS

After the program has finished, display the total number of rolls of the dice that were made in the entire game.
In need for python file grade 11 work

Answers

Answer 1

Answer:

Following are the code to this question:

import random#import package for using random method  

def rolling_dice(): #defining method rolling_dice that uses a random number to calculate and add value in dice1 and dice2 variable

   dice1 = random.randint(1,6)

   dice2 = random.randint(1,6)

   return dice1 + dice2

def rolling(): # defining method rolling

   n_roll = 0  # defining num variable that initial value that is 0.

   p = 20 # defining variable p for looping, that points in between 1 and 59

   while p > 0 and p < 60: # defining loop that counts value dice value two times  

       d = rolling_dice()#defining d variable that hold method value

       n_roll+= 1 #defining n_roll that increment n_roll value by 1

       if d == 7 or d == 11:# defining if block that uses the d variable that checks either 7 or 11, player won d in p variable

           p+= d   # use p variable that adds d variable

       elif d == 2 or d == 3 or d == 12:#defining elif block to that checks d variable by using or operator  

           p-= d#defining d variable that decreases d variable variable

       else: # defining else block

           p1 = d # using p1 variable that store d value  

           while True:# defining loop that calculates values

               d = rolling_dice()#defining d variable that holds method values

               n_roll += 1 #increment the n_roll value by 1

               if d == 7:#defining if block that checks d value equal to 7

                   p -= p1#subtract the value of p1 in p variable  

                   break # exit loop

               elif d == p:#defining elif block to check d value is equal to p

                   p += p1#adds the value of p1 in p variable  

                   break#using break keyword

   if p<= 0:#defining if block that checks p-value is less then equal to 0  

       print('Player lost')#using print method

   elif p>= 60:#defining else block that checks p-value is greater than equal to 60

       print('Player won')#using print method to print the value

   print('number of dice rolls:', n_roll)#use print method to print n_rolls value

rolling()

Output:

Player lost

number of dice rolls: 38

Explanation:

In the above-given python code, a method "rolling_dice" is declared, inside the method two-variable "dice1 and dice2" is declared, that uses the random method to calculate the value in both variable and use the return keyword to add both values.

In the next step, another method the "rolling"  is declared, inside the method "n_roll and p" is declared that assigns the values and use the two while loop, inside the loop if block is defined that calculates the values. In the next step, a condition block is used that stores value in the p variable and use the print method to print the "n_roll" value.  

Related Questions

Declare an array of int values westboundHollandTunnelTraffic that can store the number of vehicles going westbound through the Holland Tunnel - on a particular hour (numbered 0 through 23) - on a particular day (numbered 0 through 6) - on a particular week (numbered 0 through 51) - over the last ten years (numbered 0 through 9). The innermost dimension should be years, with the next being weeks, and so on.

Answers

Answer:

Following are the declaration of the array:

int westboundHollandTunnelTraffic [10] [52] [7] [24];  //defining an integer array  that holds days, week, hour, and year value

Explanation:

In the above-given code, an array that's name is " westboundHollandTunnelTraffic " is declared and the type of the storing elements in the array is an integer.

In this array, it first stores the year's value, and in second, it stores week values, in third, it stores day value, and the last it stores hours value.    

which of the following is not a selection tool in Adobe photoshop
a) Rectangular marquee tool
b) Single row marquee tool
c) Double row marquee tool
d) Single column marquee tool​

Answers

B. I believe this is the answer to your question

I maybe be wrong, but still... hope this helps ♥︎

The one that is not a selection tool in Adobe Photoshop is the single-row marquee tool. The correct option is b.

What is Adobe Photoshop?

When working with pixel-based graphics created for print, the web, and mobile apps, Photoshop is your go-to program. With the help of robust editing tools, you can adjust exposure and color balance, crop and align photographs, change the colors in your shot, erase imperfections from a portrait, and integrate numerous images into a single scene.

Photoshop is still one of the greatest photo editing programs for beginners to learn, despite the fact that you can feel intimidated by it as a novice photographer. Adobe Photoshop is an editing program that works with layers, which can take some getting accustomed to but is worthwhile.


Therefore, the correct option is b) Single row marquee tool.

To learn more about Adobe Photoshop, refer to the link:

https://brainly.com/question/17356292

#SPJ6

An agile team used planning poker to estimate user stories. After all team members read a user story, the facilitator asks everyone to choose a card with estimated number of ideal days to complete a user story and then reveal the card. If estimates were widely different, the facilitator would immediately ask for re-estimates until all the estimates converge. What did the facilitator do wrong?
A. Participants used ideal days as the unit for the estimates.
B. Participants re-estimated immediately after everyone revealed their cards.
C. Cards were revealed when the process should have been anonymous.
D. The facilitator did nothing wrong and played by the rules.

Answers

Answer:

The answer is "Option B"

Explanation:

In the given-choices, the only option B is correct because by reassessing instantly, the team loses is its advantage of debating its projections and how it chose those assessments, and the wrong choice can be defined as follows:

In choice A, Mostly as a unit for the projections, respondents should not use the ideal days.  In choice C, Whenever the procedure should've been anonymous, no cards were released. In choice D, Its mediator was incorrect and the laws were followed.

Website reputation is an important part of page quality (PQ) rating. Reputation can justify the Highest rating and the Lowest rating.

Answers

Answer:

The given statement is false.

Explanation:

A Website reputation seems to be a built-in feature or tool. It retains knowledge about users, through visiting pages. The committed resources for this site depending on either the website as well as the basic details about its design. The reputation including its Website has been used to strengthen the safety of phishing attacks or malicious content.

Therefore the solution given above is the right one.

learn to accept your mistakes even when you have done your ​

Answers

Answer:

besttttttttttttttttttttttt

Answer: done your best :)

Your company has decided to implement a wireless network. The wireless network users must be able to connect to resources on your internal network, including file, print, and DHCP services. Which options should you implement?

Answers

Options:

A Infrastructure mode

B Ad hoc mode

C a wireless access point

D static IP addresses

E APIPA

Answer:

A. Infrastructure mode

C. a wireless access point

Explanation: A DHCP is a server that makes use of s standard protocol called dynamic host configuration protocol to automatically assign internet protocol (IP) addresses and other computer parameters to clients. It gives them the opportunity to effectively make use of other network services such as DNS( domain name system) and NTP(network time protocol).

What are responsibilities of entrepreneurs? Check all of the boxes that apply.
to own businesses
to work for companies
to be responsible for employees
to be responsible to stakeholders

Answers

to own businesses and to be responsible for employees

A system has defined specifications that describe how signals are sent over connections. Which layer of the Transmission Control Protocol/Internet Protocol (TCP/IP) model provides this function

Answers

Answer:

"Transport" is the correct answer.

Explanation:

Two platforms resemble the transport layer: TCP, as well as UDP. This same different network IP protocol continues to provide a sequence number to the target server from some kind of destination node. That whenever a server user requests to another server, that indicates the enslaved person delivers a response to a network interface.

So that the above would be the correct approach.

What type of camera is a cell phone camera? A.) DSLR B.) manual C.) compact D.) zoom

Answers

Answer:

The correct option is;

D.) Zoom

Explanation:

The six types of camera found on smart phones includes the monochrome, macro camera, ultra-wide camera, periscope zoom camera, the main phone camera, and the depth sensor camera

The zoom cameras on smart phones can be found mainly in the top range models of smart phones due to the costs of the camera components including the sensor.

Smart phones also have digital zooming that make use of the high mega pixels that come with the phone.

What purpose does the underlined portion of this excerpt

serve in the argument that Americans should agree to pay

more taxes to raise money for entering the war?

Answers

Answer:

The below mentioned portion is missing from the question

A part of the sacrifice means the payment of more money in taxes. In my Budget Message I shall recommend that a greater portion of this great defense program be paid for from taxation than we are paying today. No person should try, or be allowed, to get rich out of this program; and the principle of tax payments in accordance with ability to pay should be constantly before our eyes to guide our legislation.

The passage provides the reason why extra taxes must be collected should America decide to join the war  or it introduces the claim that patriotic Americans should be willing to sacrifice and pay extra taxes.

NIST recommends selecting cloud providers that support strong encryption, have appropriate redundancy mechanisms in place, employ authentication mechanisms, and offer subscribers sufficient visibility about mechanisms used to protect subscribers from other subscribers and the provider.a) trueb) false

Answers

Answer:

The answer is "Option a".

Explanation:

In cloud computing, it is also known as the model, that enables you for accessible, convenient, through the-demand network access to global computer resources, which can be rapid to get and published via low administrative effort.  

Its recommending selection for the cloud providers support for the robust encryption, that has adequate replication processes in place, use user authentication, or provide ample clarity to customers regarding mechanisms that defend subscriptions against other subscriptions and the supplier.

What steps are needed for word to create an index

Answers

Answer:

Do this:

Position the insertion pointer where you want the index to appear. If you want the index to start on a new page, create a new page in Word. ...

Click the References tab.

In the Index group, click the Insert Index button. The Index dialog box appears. ...

Click the OK button to insert the index into your document.

Answer:

Position the insertion pointer where you want the index to appear.

(the insertion point is the point where the next characters typed from the keyboard will appear)

If you want the index to start on a new page, create a new page in the program you're using

Then you click the References tab.

In the Index group, click the Insert Index button.

When the Index dialog box appears, click the OK button to insert the index into your document.

You administer your company's 100BaseTX Ethernet network. TCP/IP is the networking protocol used on the network. You want the routers on the network to send you notices when they have exceeded specified performance thresholds. Which protocol should you use to enable the routers to send the notices

Answers

Complete Question:

You administer your company's 100BaseTX Ethernet network. TCP/IP is the networking protocol used on the network. You want the routers on the network to send you notices when they have exceeded specified performance thresholds. Which protocol should you use to enable the routers to send the notices?

Group of answer choices

A. ARP

B. SMTP

C. SNMP

D. Telnet

Answer:

C. SNMP.

Explanation:

In this scenario, you administer your company's 100BaseTX Ethernet network. TCP/IP is the networking protocol used on the network. Also, you want the routers on the network to send you notices when they have exceeded specified performance thresholds. Hence, you should use the SNMP to enable the routers to send the notices.

SNMP is an acronym for simple network management protocol, which is a standardized application-layer protocol that is used for monitoring and organizing management information about network devices on either a wide area network (WAN) or local area network (LAN).

Basically, the SNMP helps to provide a common language for network devices such as switches, routers, printers, servers etc to share information with a network management system.

A simple network management protocol (SNMP) is part of the Transmission Control Protocol and Internet Protocol (TCP⁄IP) suite.

What is the "online disinhibition effect"?​

Answers

Answer:

Online disinhibition is the lack of restraint one feels when communicating online in comparison to communicating in-person.

Upon running the ifconfig command, the IP address is listed along with the subnet mask in dotted decimal notation listed as 255.255.255.224. You have installed a remote access software that has an address field that requires the address to be configured in CIDR notation. Which of the following is the equivalent CIDR notation for the subnet mask listed?a. /23b. /24c. /27d. /28

Answers

Answer:

The answer is "Option c"

Explanation:

In the given question only option c is correct because "/27" is the IP "255.255.255.224" is the same as "/27" in the terminology in CIDR, in which it uses the compact IP address as well as corresponding prefix expression and it terminology consists of an IP with a slash ('/') or a decimal number. Its count of 1-bit proceeding to the mask traditionally referred to it as the network mask.

15 points please help!!!!


David works at a company that provides financial solutions. He wants to create an interactive presentation for his company. Which interactive platforms can David use for this presentation?

David can use an interactive or a for his presentation.

Answers

Answer:

Powerpoint presentation

Explanation:

Powerpoint presentation is a part of Microsoft office that is established by Microsoft. PowerPoint. It is used to present the company visions, missions, key points in a short and in an attractive way by using the various designs, pictures, audio clips, etc

Here David wants to create an interactive presentation so he should use the powerpoint presentations so that he could present the company visions, objectives, etc

(Rocks Mineral
When limestone undergoes several changes, it forms
2
(marblelse
PA
For
the
are underground natural resources.
3. Metals are extracted from their
4. Molten rock inside the earth is called
5.
is used in making glass.
L
(magmalla
(Limestone/Sla
Yo
# Science-5​

Answers

Answer:

TENDRIAS QUE PONER LA PREGUNTA MEJOR

Explanation:

In a response of approximately 50 words, explain why it would be essential for the successful A/V technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.

Answers

Answer:

The A/V technician should participate in the additions coursework, seminars and presentations offered by the equipment manufacturers because it would give him more knowledge about the various products launched by the manufacturers, after the coursework it would be easier for him to repair the new range of products. It is important for the technicians to stay updated with the latest technical changes in the industry.

The website allrecipes is a clearinghouse for recipes of all kinds, with users being able to post new ones as well as try and comment on the recipes of others. Members can get personalized recommendations and find ways to use ingredients they already have on hand. The allrecipes website would be considered

Answers

Answer:

The right answer is "web community ".

Explanation:

A digital community, commonly known as a social community as well as a web community, seems to be a virtual environment where representatives predominantly communicate over the internet. They become web-based community centers for stakeholders, specialists, collaborators, and many others to resolve issues, post feedback, including communicate with someone on the goods, services, and reputation of an organization. For several internet platforms, a "gang of silly superstitions" can feel most comfortable.

1. Here is a program segment to find the quantity base . Both base and exp are entered at the keyboard. System.out.println("Enter base and exponent: "); double base = IO.readDouble();// read user input double exp = IO.readDouble(); // read user input /* code to find power, which equals baseexp */ System.out.print(base + " raised to the power " + exp); System.out.println(" equals " + power); Which code is a correct replacement for /* code to find power, which equals baseexp */ ?

Answers

Answer:

The correct code to this question can be de4fined as follows:

double power;

power = Math.pow(base, exp);

Explanation:

In the given question the choices were missing, that's why we defined the correct code only.

In the given code a two double variable "base and exp" is declared, that input the value from the user-side, and store its value into there respective variables. In the next step, "power", that is a double variable is declared, which uses the  "Math.pow" function that calculates given values power and prints its value.

please find the attachment of the full code.

Why is access to equipment so important to the education of an A/V technician? (Select all that apply).

A. A/V technicians have to learn how to use many different types of devices.

B. A/V technicians must become familiar with many different software programs.

C. A/V technicians for large companies often have to buy their own equipment.

D. A/V technicians are not always provided the equipment they need by their employers.​

Answers

Answer:

The correct option is;

A. A/V technicians have to learn how to use many different types of devices

Explanation:

Sound recording, mixing boards, video monitors, projectors, speakers, and microphone equipment are set up and operated by audiovisual (A/V) technicians during concerts, live sport games, business meetings and conventions, TV and radio outdoors shoots and for on location assignments  as well as equipment maintenance for universities and other organization. As such A/V it is essential for A/V technicians to develop manual dexterity on a wide variety of audiovisual equipment.

Answer:

For this one it is A: A/V Technicians have to learn how to use many different types of devices

but it may be worded differently, and if so its:

D:They need to learn how to use a wide variety of different types of equipment.

Explanation:

edg2021

You find a list of websites that relate to your chosen topic and click on the first one. You ask yourself the three questions presented in this lesson to see if this site is reliable: 1) Who wrote it? There isn't an author listed anywhere that you can find. 2) What type of site is it? The site name ends in . 3) How current is the information? You see the site was updated yesterday. Is this website reliable and worth examining further? True or False?

Answers

Answer:

False

Explanation:

Information reliability is essential in production. sourcing information from a reliable source is base on several criteria. They are; the author of the resource file, the type of media platform holding the information, the frequent revision of the information, additional support or collaboration to publish public information, etc.

A government website ( with the site-address ending with a '.gov' ) which is concurrently revised by the institute, gives a piece genuine and reliable information, whereas a commercial website with no author and just recently revised or published, would be judged as an unreliable source of information

What can you use on the Internet to look for information?

Answers

Answer:

I use Wikipedia to know anything

Which function will add a grade to a student's list of grades in Python? add() append() print() sort()

Answers

Answer:

It will be add()

Answer:

A

Explanation:

How a student can use computer to improve academic performance?

Answers

Answer:

k Nishant

Explanation:

he can learn many things internet by using computer he change his self by learning about many things

Answer:

A student can use it by searching up things with his/her computer.

Browse for different new things everyday that gives knowledge.

Ask questions.

Do new things everyday.

A computer can easily input grades and send data.

Explanation:

Okay.

100BaseT network uses the TCP/IP protocol suite exclusively, and workstations on your network obtain addresses dynamically from a server. From your computer, you can contact all servers and workstations on your own network segment, but you are unable to gain access to network resources on other segments. Which factors should you investigate

Answers

Answer:

The two factors are:

The default gateway The routers

Explanation:

Default gateway:

The default gateway transmits individual information back and forth between the network. This is most consumers and commercial workplaces seem to be a router whereby channels communication from either the local area network to something like the cables or Cellular networks that transfer that one to the broadband service.

The routers:

A router would be the first safety boundary from even being intruded into a channel. Order to enable the highest possible level of device public safety eventually turns such as the proxy server into something.

How do I make my mobile number appears switched off to a specific number not with truecaller app...(vivo user)​

Answers

Answer:

Hello, there is no way you can make your mobile number appear switched off to a particular number unless you really switch it off.

However, you can set your phone to "Call Forwarding" on your Android device. What it would do is that when the person calls your number, he gets the message that you are unreachable.

Explanation:

Here's how to set Call Forwarding on your android

Open your phone dialerGo to your Phone Settings Click on Call SettingsSelect Call Forwarding (in some Androids, you'll have to select 'Calling Accounts' first)Select 'Always Forward', 'When Busy', 'When Unanswered' or 'When Unreachable'After selecting your preferred option, you can set the forwarding numberEnable the settings or click 'Ok'

Identify characteristics of structured programming design. Choose all that apply.
The code is easy to test and debug.
It creates a program made of modules that can be called when needed.
The code is difficult to modify due to the use of modules.
It uses logic flow.
The code is easier to follow.
The code is easier to modify.

Answers

Answer:

The correct options are;

The code is easy to test and debug

It creates programs made of modules that can be called when needed

It uses logic flow

The code is easier to follow

The code is easier to modify

Explanation:

The approach of structural programming is one such that the problem is well understood and the solution is economical

Features of structural programming includes;

Error debugging are facilitated by structural programs and as such testing to debugStructural program creates program modules that are reusableStructural programs can be easily modified hence maintainedStructural program emphasizes on logicThe structural program code is easily read and understood, and therefore, it is easier to follow

Answer:

A.B.D.E.F.

Explanation:

pretty much everything except C.

:)

in object oriented programming what is a constructor?

a. the attributes that allow a programmer to imagine a new object
b. the behaviors that allow a programmer to design a new object
c. the code that allows a programmer to create a new object
d. the template that allows a programmer to modify a new object

Answers

Answer:

The answer is A.

Answer:

A. the attributes that allow a programmer to imagine a new object

Explanation:

Got the answer right on the test!

how can development in ICT be utilized to speed up the development and integration efforts

Answers

Answer:

Explanation:

1.  Sustainability and scale

2.  Lack of knowledge

 

3. Pace of change

4.  Funding

5. Changing roles and norms

Other Questions
Children walking on the sidewalk, a person sitting in a parked car, and a parking lot with vehiclesentering and exiting indicate aA. construction zone.B. railroad crossing.C. school zone.D. none of the above At a department store, you adjust the mirrors in the dressing room so that they are parallel and 6.2 ft apart. You stand 1.8 ft from one mirror and face it. You see an infinite number of reflections of your front and back.(a) How far from you is the first "front" image? ft (b) How far from you is the first "back" image? ft how do you figure out ratios? the problem is 12 quarters to 34 dollars. thanks he Boston public school district has had difficulty maintaining on-time bus service for its students. Suppose the district develops a new bus schedule to help combat chronic lateness on a particularly woeful route. Historically, the bus service on the route has been, on average, 10 minutes late. After the schedule adjustment, the first 36 runs were an average of eight minutes late. As a result, the Boston public school district claimed that the schedule adjustment was an improvement using a two tailed teststudents were not as late. Assume a population standard deviation for bus arrival time of 10 minutes. The test statistic is 1.20 based on this and an alpha of .05 which of the following statements is not correct? In The Wonderful Wizard of Oz, the Woodman is taken to the Throne room to meet Oz. What does he see?O A. The room was empty; there was just a recorded voice.B. A woman with long green hairC. A beast the size of an elephant with five eyesD. A short man dressed in green, wearing a crown When did Captain cook discover Australia A customer opens a new margin account with the following position: Long: 1,000 XYZ Cmn Mkt Value: $20,000 Debit: $10,000If the market value rises to $22,000, how much SMA is created? Summary should be made up of which of the following A. Important details and interesting detailsB. Main idea and important details C. Main idea and writers thoughts and feelingD. Important details and writers opinion Which is true of "Paul Reveres Ride"? a It is a firsthand history of the start of the American Revolution. b It was the first short story in American History. c It was the first uniquely American novel. d It is a poem that inspired American patriotism. Based on the data table below, which number would be the BEST choice for the top number of the scale on the vertical axis of a scatter plot showing this data? A corporate bond currently yields 8.5%. Municipal bonds with the same risk, maturity, and liquidity currently yield 5.5%. At what tax rate would investors be indifferent between the two bonds? In your own words, explain whatestablishing justice means. Whyis this an important purposeof government? If it is summer in Santiago, Chile, what season is it in Istanbul, Turkey The highest mountain on mars is olympus mons, rising 22000 meters above the martian surface. If we were to throw an object horizontaly off the mountain top, how long would it take to reach the surface? (Ignore atmospheric drag forces and use gMars=3.72m/s^2a. 2.4 minutesb. 0.79 minutesc. 1.8 minutesd. 3.0 minutes i will mark brainlist!! Read this excerpt from another writer's account of the SmithsonianInstitutionestion(s).thy person. When he died ined States. Smithson, a BritishIp spread knowledge. Ino build the Smithsonianeducational sites inthat focus on art, history,When James Smithson left his wealth to the United States, he askedthat it be used to spread knowledge. The result was the founding of theSmithsonian Institution. Smithson's gift was generous, but the actualwork of defining and refining the Smithsonian's mission was left tofigures such as Joseph Henry, its first Secretary.Which of the following best describes the difference in theperspectives of the two authors on their topic?O A. The first highlights Smithson's role in founding theSmithsonian Instution, the second emphasizes the importantpart played by others.n Art features different formsVisitors can see Americanand other works. Thery has exhibits on all types ofout human, animal, and planterican History includesitems, along with inventionsAir and Space MuseumLion and aeronauticalThe first emphasizes the government's role in maintainingthe Smithsonian Institution, the second highlights Smithson'srole.C. The first emphasizes the importance of the Smithsonian inpreserving art, the second highlights its work in science.D. The first tends to portray James Smithson as a hero, thesecond tends to portray him as an ordinary man. How many grams of PtBr4 will dissolve in 250.0 mL of water that has 1.00 grams of KBr dissolved in it cooking a patty and putting the ingredients together are included in the process of making a hamburger true false Last year, you purchased a stock at a price of $78.00 a share. Over the course of the year, you received $2.70 per share in dividends and inflation averaged 3.2 percent. Today, you sold your shares for $82.20 a share. What is your approximate real rate of return on this investment? Why did American Indians cut themselves with theswords?