Create a dice game that randomly “rolls” five dice for the computer and five dice for the player. After each random roll, store the result in a computer dice roll list and player dice roll list. The application displays all the values, which can be from 1 to 6 inclusive for each die. Decide the winner based on which player had the largest number of matching dice. For this game, the numeric dice values do not count. For example, if both the player and computer have three of a kind, it is a tie, no matter what the values of the three dice are.


Be sure to review the provided links on generating random integers, and using the Python count() function, as both will be used in this program. To assist you, pseudocode has been provided. Download the file DiceGamePseudocode.py and follow the pseudocode to complete the program.


Program 2 requirements:


The program generates and stores five random dice values each for the player and computer

The program determines the largest number of matching dice for the player and computer

The program displays the dice values for the player and computer

The program displays the largest number of matching dice for the player and computer

The program uses a decision structure to display a message indicating who won the game


And please follow the pseudocode!

Create A Dice Game That Randomly Rolls Five Dice For The Computer And Five Dice For The Player. After
Create A Dice Game That Randomly Rolls Five Dice For The Computer And Five Dice For The Player. After

Answers

Answer 1

The Python program that can be able to implements the dice game based on the things that are given in the pseudocode is given below.

What is the dice game about?

This python code is known to be program that tends to bring about or make as well as stores five random dice values for the people that is both the player as well as  computer using list comprehensions.

Therefore, it is one that tends to make use the max() function along with the key parameter that is known to be set to the count() method to be able to find the most frequent dice value for all of the player as well as the computer.

Hence The program also shows  the dice values as well as the number of matching dice for all of the player.

Learn more about dice game from

https://brainly.com/question/30028788

#SPJ1

Create A Dice Game That Randomly Rolls Five Dice For The Computer And Five Dice For The Player. After

Related Questions

You may review Chapter 2, pages 67-71 of the textbook or communication skills.
Now please answer the following questions:
• What communication systems do you believe are best to be used at a help desk?
• What may be a couple of reasons for the satisfaction disparity?
• How can you ensure that all employees are satisfied with the help desk's services regardless of how
Responses to Other Students: Respond to at least 2 of your fellow classmates with at least a 50-100-w
found to be compelling and enlightening. To help you with your discussion, please consider the following
• What differences or similarities do you see between your posting and other classmates' postings?
**
What communication system do you believe are best to be used at a help desk ?

Answers

Note that the above prompt ahs to do with communication skills and communication systems.

What is the best communication system for a help desk?

Note that the best communication set up or system for a help desk is one that allows they to quickly address customer inquires.

How can this be implemented? this can be done via esuring that the help desk has a variety of communication channels such as:

EmailsPhoneLive ch. at; and Social media.

Communication systems are best most effective when they are manned by trained support agents who are also able to carry out ticketing of issues effectivley and eficiently.

Note that one fo the metrics for measuring the effectiveness of communication systems is time taken to resolve issues.

Learn more about communication systems at:

https://brainly.com/question/18825060

#SPJ1

What formatting changes do spreadsheet applications permit in the rows and columns of a spreadsheet?
Row and Column Formatting Options
Formatting rows and columns is similar to cell formatting. In an OpenOffice Calc spreadsheet, you can format data entered into rows and columns with the help of the Rows and Columns options. You can insert rows and columns into, or delete rows and columns from, a spreadsheet. Use the Insert or Delete rows and columns option on the Insert tab. Alternatively, select the row or column where you want new rows or columns to appear, right-click, and select Insert Only Row or Only Column options.

You can hide or show rows and columns in a spreadsheet. Use the Hide or Show option on the Format tab. For example, to hide a row, first select the row, then choose the Insert tab, then select the Row option, and then select Hide. Alternatively, you can select the row or columns, right-click, and select the Hide or Show option.

You can adjust the height of rows and width of columns. Select Row and then select the Height option on the Format tab. Similarly, select Column, then select the Width option on the Format tab. Alternatively, you can hold the mouse on the row and column divider, and drag the double arrow to the position. You can also use the AutoFit option on the Table tab to resize rows and columns.

Answers

Formatting rows and columns in a spreadsheet is similar to cell formatting. In OpenOffice Calc, users can insert or delete rows and columns, hide or show them, and adjust the height and width of the rows and columns.

What is spreadsheet?

A spreadsheet is an electronic document that stores data in a tabular format and is used to perform calculations and analysis. It is a type of software program designed to assist with data entry, calculations, and other analysis tasks. Spreadsheets often contain formulas and functions that allow users to quickly and accurately calculate values based on the data they enter. Spreadsheets also provide users with the ability to present data in an organized and visually appealing way. Spreadsheets are an essential tool for businesses, schools, and other organizations to help them make decisions, track progress, and manage resources.

Users can access these options from the Insert, Format, and Table tabs. Alternatively, they can select the row or column they want to format, right-click, and select the relevant option. Additionally, users can hold the mouse on the row or column divider and drag the double arrow to the desired position. The AutoFit option on the Table tab can also be used to resize rows and columns.

To learn more about spreadsheet
https://brainly.com/question/30039670
#SPJ1

pretend it is 2012, describe two companies that still exist
and tell me why you think they did well in the last 10 years. These should be stocks that are publicly traded. You can purchase stocks on NASDAQ and the New York Stock Exchange.

Answers

Answer:

One company that still exists and has done well in the last 10 years is Apple Inc. (AAPL). Apple is a publicly-traded company that produces consumer electronics, computer software, and online services. In the last 10 years, Apple has continued to innovate and release new products, such as the iPhone, iPad, and Apple Watch. These products have been very successful, and have helped Apple become one of the most valuable companies in the world. Additionally, Apple has a loyal customer base and a strong brand, which has helped it maintain its position in the market.

Another company that still exists and has done well in the last 10 years is Amazon.com, Inc. (AMZN). Amazon is a publicly-traded company that operates an online marketplace and provides cloud computing services. In the last 10 years, Amazon has continued to grow and expand, both in terms of its product offerings and its geographic reach. Amazon has also invested heavily in new technology, such as artificial intelligence and robotics, which has helped it stay ahead of the competition. Additionally, Amazon has a strong focus on customer service and satisfaction, which has helped it build a loyal customer base and maintain its position as a leader in the e-commerce industry.

Consider that you have a code of 200,000 instructions which is executed using a 16 stages pipeline. It is expected that 20% of the instructions will cause an exception. In order to handle the exception, there is an exception handler which is using 20 cycles to execute (includes the flushing and reloading and the actual handling of the exception). The pipeline frequency is 2 GHz

i) How many cycles does it take to execute the code?

ii) What is the average CPI for this code?

iii) How long does it take to execute the code?

Answers

Answer:

i) The total number of cycles required to execute the code can be calculated as follows:

Total number of instructions = 200,000

Number of instructions causing exceptions = 20% of 200,000 = 40,000

Number of instructions without exceptions = 200,000 - 40,000 = 160,000

Cycles required for instructions without exceptions = 160,000 x 16 = 2,560,000

Cycles required for instructions causing exceptions = 40,000 x (16 + 20) = 1,440,000

Total number of cycles required = 2,560,000 + 1,440,000 = 4,000,000 cycles

ii) The average CPI (Cycles Per Instruction) can be calculated as follows:

Total number of cycles required = 4,000,000 cycles

Total number of instructions executed = 200,000 instructions

Average CPI = Total number of cycles required / Total number of instructions executed

= 4,000,000 / 200,000

= 20 cycles per instruction

iii) The time required to execute the code can be calculated as follows:

Total number of cycles required = 4,000,000 cycles

Pipeline frequency = 2 GHz

Time required to execute the code = Total number of cycles required / Pipeline frequency

= 4,000,000 / 2,000,000,000

= 2 milliseconds

To execute the code using a 16-stage pipeline, each instruction will take 16 cycles. Therefore, the total number of cycles required to execute 200,000 instructions is: 3,200,000 cycles.

What is CPI?

CPI stands for Cycles Per Instruction. It is a metric used to measure the efficiency of a computer's instruction processing. The lower the CPI, the more efficiently the computer is processing instructions.

Each instruction will take 16 cycles to execute using a 16-stage pipeline. As a result, the total number of cycles required to execute 200,000 instructions is as follows:

200,000 times 16 = 3,200,000 cycles

The percentage of instructions causing an exception is 20%, so the average CPI can be calculated as:

Average CPI = (Ideal CPI x Percentage of Instructions without Exceptions) + (Cycles per Exception x Percentage of Instructions with Exceptions)

Average CPI = (1 x 0.8) + (20 x 0.2)

Average CPI = 4.4 cycles per instruction

The length of time it takes to execute the code can be calculated using the following formula:

Execution Time = (Number of Cycles x Cycle Time)

Since the pipeline frequency is 2 GHz, the cycle time is:

Cycle Time = 1 / 2 GHz = 0.5 ns

Therefore, the execution time is:

Execution Time = (3,200,000 + (0.2 x 200,000 x 20)) x 0.5 ns

Execution Time = 1,640,000 ns

Thus, it takes 1,640,000 nanoseconds to execute the code.

For more details regarding CPI, visit:

https://brainly.com/question/14453270

#SPJ2

3. In your own opinion, with all the policies and procedures being made or created and perfected, why is it that these rules are still being violated or abused

Answers

With all the policies and procedures being made or created and perfected, the reason these rules are said to be still being violated or abused are:

Lack of AwarenessHuman Error

What are the policies?

Lack of Awareness  is one that shows that even if there are policies as well as procedures that are said to be made and perfected, people or employees can not be fully made known of them and as a result can bring about  unintentional form of  violations or abuse.

Lastly in terms of Human Error, one need to know that people's Mistakes or lapses can be seen in terms of judgment  and this can lead to abuse also.

Learn more about policies from

https://brainly.com/question/3006046

#SPJ1

verom each drop-down menu. Raymond is assigned the task of backing up the data on a web server. However, he has limited storage place on the backup media.. Which type of backup should he choose and how would it benefit him?


Raymond should select a(n)_______backup.

The benefit of using this type of backup is that there is______.​

Answers

Raymond should select a(n) incremental backup.

The benefit of using this type of backup is that there is a lower storage space requirement compared to a full backup. Incremental backups only copy the data that has been changed since the last backup, which means that they require less storage space than a full backup that copies all the data every time. This allows Raymond to back up the web server's data more frequently and efficiently, with less strain on the storage media.

Nigeria Amateur Volleyball Association was formed in what year​

Answers

Answer:

The Nigerian Amateur Volleyball Association was formed in 1969.

PLS MARK BRAINLIEST

Explanation:

Answer:

1969

Explanation:

The Nigerian Amateur Volleyball Association was formed in 1969.

Write a program that displays the number array below as an output. Use only do while
loop. N is a number entered by an user.

13 19 25 31 37 43 49 … N

Answers

Here's the Python code to solve the problem using a do-while loop:

n = int(input("Enter a number: "))

num = 13

print(num, end=" ")

while True:

num += 6

if num > n:

break

print(num, end=" ")

One concern about Internet advertising is that viral marketing________.
a.
Can create an air of excitement
b.
Can be entertaining to consumers
c.
Can mislead or exploit consumers
d.
None of the above


Please select the best answer from the choices provided

A
B
C
D

Answers

One concern about Internet advertising is that viral marketing c. Can mislead or exploit consumers

What is the Internet advertising?

Viral advertising is a form of blasting that aims to spread facts or knowledge about a product or duty through public networks and spoken.

While it maybe active in constructing excitement and amusement for shoppers, skilled are still concerns that it maybe deceptive or exploitative if it is not understandable or candid in allure to foreshadow. For example, fervid shopping campaigns may use dishonest strategies to a degree fake information or fake consumer reviews to advance a product or duty, etc.

Learn more about advertising  from

https://brainly.com/question/1658517

#SPJ1

1. What would be the best explanation of the variable name 'int indexSize'?
a. Shows the number in the index is big
b. Holds the number in the last index spot
c. Holds the number in the first index spot
d. Holds the number of indexes in the array

Answers

1The option that would be the best explanation of the variable name 'int indexSize' is option d. Holds the number of indexes in the array

What is the variable about?

The variable name 'int indexSize' is one that tells that it have the number of indexes in an array.

Note that The use of the term "indexSize" is one that tells that it stand for the size or the amount of the indexes in the array, and thus it is one that is telling the total number of indexes as well as the elements that is seen in the array.

Therefore, It is common work in programming to be able to make use of variable names that are said to be descriptive.

Learn more about variable from

https://brainly.com/question/28248724

#SPJ1

Select the correct answer from each drop-down menu.
Lucy wants to add some notes in her research paper that provide additional information to the reader. She also wants to display her university logo on all the pages as part of the title. What formatting can she apply to her document to include these details?
Lucy can display her notes in the form of a . She can indicate the logo as part of the .

Answers

Lucy can display her notes in the form of a footnote or endnote

She can indicate the logo as part of the header or footer section.

What is a Footnote?

This refers to the bottom of a page is where footnotes are located. They provide references or offer commentary on a specific passage of material above it. Say, for instance, that you want to add a thought to a sentence you have written, but the thought has nothing to do with the thesis of your paragraph.

Hence, it can be seen that for Lucy to accurately add her notes, she has to add them as a footnote or end note and would be placed in the header or footer section for her logo.

Read more about logo here:

https://brainly.com/question/22856492

#SPJ1

Can someone help me fix my code for this question? got pretty far but now i'm stuck on the syntax error.

In this lab, you use what you have learned about parallel arrays to complete a partially completed C++ program. The program should:
Either print the name and price for a coffee add-in from the Jumpin’ Jive Coffee Shop
Or it should print the message Sorry, we do not carry that.
Read the problem description carefully before you begin. The file provided for this lab includes the necessary variable declarations and input statements. You need to write the part of the program that searches for the name of the coffee add-in(s) and either prints the name and price of the add-in or prints the error message if the add-in is not found. Comments in the code tell you where to write your statements.

Instructions
Study the prewritten code to make sure you understand it.
Write the code that searches the array for the name of the add-in ordered by the customer.
Write the code that prints the name and price of the add-in or the error message, and then write the code that prints the cost of the total order.
Execute the program by clicking the Run button at the bottom of the screen. Use the following data:

Cream

Caramel

Whiskey

chocolate

Chocolate

Cinnamon

Vanilla

The Gdb one is what i have so far but i can't figure out what i'm doing wrong as far as syntax.

Answers

To be able to complete the code that can be used to searching a coffee add-in in an array as well as printing its name and price, look at the example of the implementation in C++ that is given below

What is the syntax error?

In the code that is known to be given, one can declare as well as initialize two arrays - addIns that can be used for saving the names of coffee add-ins, as well as the prices for saving of  the prices of the all of the corresponding add-ins.

Therefore, We can be able to collect input from a given customer for the coffee add-in they need to order. Finally, we can be able to make use of an if-else statement to be able to print the name and price of all ofthe add-i.

Learn more about syntax error from

https://brainly.com/question/28957248

#SPJ1

Fill in the blank after egrep to get output on matrix exactly as shown

$ egrep "_____________" ~mark.fernandes/pub/notes/data/cars

plym fury 77 73 2500
chevy nova 79 60 3000
volvo gl 78 102 9850
Chevy nova 80 50 3500
fiat 600 65 115 450
honda accord 81 30 6000
toyota tercel 82 180 750
chevy impala 65 85 1550


NO quotes. Use as few characters as you can to get the output above.
Answer does not use egrep options. Keep trying as many answers exist.

HINT: Use answer(s) from previous question(s) for clues to solve this
question except these blanks use regex not egrep options and no quotes.

Answers

One possible answer to the above output is:

ruby

(?i)chevy nova.*$

What is the output  about?

(?i) - This is a flag for case-insensitive matching, which allows "Chevy" to match both "Chevy" and "chevy".

chevy nova - This is the literal string "chevy nova".

.*$ - This matches any characters (.*) until the end of the line ($), effectively capturing the entire line that contains "chevy nova".

The regex pattern that fills the blank is:

css

^.{4}\b

The output of the command will be:

yaml

plym fury 77 73 2500

chevy nova 79 60 3000

volvo gl 78 102 9850

Chevy nova 80 50 3500

fiat 600 65 115 450

honda accord 81 30 6000

toyota tercel 82 180 750

Therefore, The ^ character matches the beginning of the line. The .{4} pattern matches any character (except for a newline) exactly 4 times. This matches the first four characters of each line in the input.

Read more about output  here:

https://brainly.com/question/14352771

#SPJ1

Formal Writing Assignment: CUNY WAN Modernization Project Spring 2023
The CUNY University System has begun developing programs for enterprising professionals and advanced degree students that want to complete their studies remotely. This emerging need originated when the CUNY University System was operating fully remote due to the Corona virus. There is significant interest in continuing to provide this remote mode of instruction and expand it to new outreach programs within the New York City region. The CUNY University System has hired you to provide help with their modernized WAN that will be needed for developing these new programs.

Providing WAN Services to Remote locations
CUNY University System plans to offer night and weekend classes for professionals and advanced degree students, paralegal students, and nurses, in five “Centers of Excellence” remote locations at each borough of the City of New York.. Its plan is to have professors offer the classes from the main campus site and to use video conferencing and multimedia options at these “Centers of Excellence” remote sites. The CUNY University System main site has a TCP/IP Ethernet network. The remote “Centers of Excellence” sites, which are not yet set up, will also have TCP/IP Ethernet networks.
The CUNY University System Director of Information Technology is asking you to write a proposal for three WAN options (possible candidates are: Frame Relay, Broad Band and MPLS) to connect the “Centers of Excellence” remote sites to the main campus and provide a rationale for each of these options. Your WAN options must provide for the use of voice over IP, video conferencing and multimedia applications. Each WAN option should provide details on the following factors:
 How does the technology work?
 Bandwidth costs
 Bandwidth allocation (how much bandwidth is available/supported) by the method.
 Equipment costs associated with the method.
 Ability for the method to address future expanded bandwidth requirements.
 Ability for the method to incorporate other applications such as voice and video.
 Ability for the method to offers fault tolerant options to provide more guaranteed uptime—an important consideration for providing long-distance learning.
Teaching Classes from Home
The CUNY University System president enjoys participating in several classes once a week as a guest speaker or mentor, but she wants to do this from home, so she can spend more time with her family instead of driving back to the main CUNY University System campus, which is about ten miles away.
Write a 1–2-page letter to the CUNY University System president explaining how she might be connected to the main CUNY University System campus network through a particular WAN technology, and why you recommend that WAN technology. One of the requirements is that she needs to be able to use the telephone in her home office while she is connected to the CUNY network.
WAN Connectivity for a Business Incubator
The CUNY University System is starting a business incubator on the main campus. The business incubator provides one year of resources for up to five new small businesses, including a business location and office resources, such as computers, printers, scanners and Internet access. Write a 1–2-page letter to the CUNY University System president explaining to her the WAN connectivity options that are most appropriate for these small businesses, so that it is consistent with what they can use when they leave the incubator facilities.

Answers

In order to carry out this assignment, you want to make sure that you research and thouroughly understand the Wide Area Network (WAN) techologies of Frame Relay, Broad Bank, and MPLS.

What else needs to be done?

You must present a proposal for each WAN alternative, describing the bandwidth prices, allocation, equipment costs, capacity to handle future bandwidth requirements, include audio and video, and offer fault-tolerant choices.

You would need to submit a letter outlining the proposed WAN technology to link her to the campus network while enabling her to use her phone in response to the CUNY University System president's request to participate in classes from home.

You would also need to produce another letter for the business incubator describing the best WAN connectivity alternatives for small enterprises to use once they depart the incubator facility. Thus,, the project necessitates good research abilities as well as the ability to communicate material clearly and concisely.

Learn more about WAN:
https://brainly.com/question/621746
#SPJ1

Other Questions
T/F? The two components that are required in order to carry out asset valuation are (1) the stream of expected cash flows and (2) the required rate of return. Peripheral reflexes are controlled by a reflex arc in the spinal cord. In addition, signals are also still sent to the brain. Why is this? Distribute and combine like termsto simplify the expression6x + 2(4 + 2x). Explain why the United Nations "2-step translation" process requires fewer translators than a "1-step translation" process. Which sentence in this excerpt from Henry David Thoreau's "Civil Disobedience" implicitly argues that people need to think independently and question authority? How is damage to DNA bases recognized by the cellular machineries that repair them? Please answer my stats question Lennie has killed his puppy by bouncing it too hard. What two pieces of information does Curley's wife share with Lennie? the instructor prepared a solution of NaOH by dissolving 8 gram of NaOH in 2 L of H20. what is the approximate molarity of the solution prepared by the instructor?a) 0.1 Mb) 0.2 Mc) 0.4 Md) 4.0 M what does the corpus luteum degrade into in the case of no pregnancy? A California driver who is under the age of twenty-one and who is found to have a 0.01% BAC level or higher will have his or her license suspended for: The Ksp of Al(OH)3 at 25 oC is 1 x 10-33. Consider a solution that is 2.0 x 10-10 MAl(NO3)3 and 2.0 x 10-8 M NaOH.A. Q > Ksp and a precipitate will not form.B. Q>Ksp and a precipitate will formC. Q decision point: choosing your target market the communication process begins with selecting a target audience -- the group with whom take-a-ride will be communicating. which target market would be the most likely to find the bike-share program valuable, and thus be the most profitable for the firm? select an option from the choices below and click submit. charleston residents charleston college students tourists How long does it take for $3725 to double if it is invested at 85% compounded continuously Round your answer to two decimal places 8.15 years0.32 years0.01 years0.08 years Imagine, you conducted regression and get the coefficients for those three factors in Fama-French model. How would you set up a hypothesis test to test the reliability of those coefficients? Please list your detailed steps. What musculoskeletal disease is associated with abnormalities of the thymus gland? Mark the capitalized word a as noun, pronoun, adjective, Adverb, verb, preposition, interjection, or conjunction. NEITHER Jan NOR Jane can come. (both are the same part of speech) What are the scars of surgery like to a surgeon (when compared to a poet)? Amino acid catabolism releases nitrogen in the form of ammonia. In the liver, the urea cycle prepares ammonia for excretion. Which amino acid could undergo deamidation to produce ammonia for the urea cycle? Surface area leave in pie