Description
Unformatted Attachment Preview
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
View attached explanation and answer. Let me know if you have any questions.screenshot of running code is attachedadditionally the...
Completion Status:
100%
Review
Review
Anonymous
Really great stuff, couldn't ask for more.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
FLOWCHART and PSEUDOCODE , programming homework help
Create a FLOWCHART and a PSEUDOCODE for each problem.Use the information below to create a pseudocode (which can be a text ...
FLOWCHART and PSEUDOCODE , programming homework help
Create a FLOWCHART and a PSEUDOCODE for each problem.Use the information below to create a pseudocode (which can be a text-based description for solving the problems) and a flowchart (using flowchart symbols to illustrate how you would program) to solve each problem. You may use Microsoft Word® for your pseudocode and Microsoft PowerPoint® for your flowchart. 1. Problem 1: Write a program that will calculate the problem and stop after the condition has been met. This is an IF/THEN/ELSE problem.a=1b=a+1c=a+bCondition: If c is less than 5, then the loop will continue; else, it will end.a will increase by one after every completed loop.2. How many loops will be necessary to meet the condition incrementing 'c' by 1? Why?
Central Michigan University Incorporate Data Scientist Tasks Paper
Read through the scenario below, then open the jupyter notebook you uploaded and you will find instructions in the comment ...
Central Michigan University Incorporate Data Scientist Tasks Paper
Read through the scenario below, then open the jupyter notebook you uploaded and you will find instructions in the comments throughout the file.Python + Mysql + Excel Save this file as you edit, ensuring you do not lose any work.When you are finished, rename your .ipynb file, create a zip with:Your .ipynb solution fileChad's "spreadsheet"Your spreadsheetSubmit this zip file of your entire project here on Canvas.ScenarioThings keep moving along well with your role at Northwind Traders. Now they are asking you to start incorporating Data Scientist tasks into your workflows.Think about all of the times you've seen or heard about companies struggling with redundant data. As you've heard several times before, one of the most important first steps in any analytics project is grabbing your data, sometimes from various sources, and cleaning it up or combining it so that it is ready to go. Turns out, Northwind is no different.Northwind has just entered into an agreement with their suppliers where they have committed to helping drive traffic to their supplier's own sites so they can upsell customers on warrantees and support, as well as market complementary products to their customers. In trade, Northwind's suppliers have agreed to sell their products through Northwind exclusively for the next five years.Remember Chad? Well, he is currently hiding from a pack of furious DBAs. He was given the task of updating all of the suppliers' website URLs so that work can begin on the new project to direct traffic to their various sites.Chad messed up. Instead of updating the database with new homepages for each suppler, he just created a spreadsheet of supplier names and their URLs. Thanks, Chad.So now we have an Excel Workbook with supplier names and URLs and a MySQL database with a table of Suppliers that has far more info about each supplier, but has outdated info on each of their websites. This is where you come in.Your first job here is to get a report of all of the supplier IDs, company names, contact names, contact phone numbers, and up-to-date URL information. This is going to require us to grab data from the MySQL database as well as reference Chad's super-helpful spreadsheet. Once you've combined the data correctly from our sources, we can share it back out in the form of a new Excel Workbook.
details the design and layout characteristics of Android phone applications, programming homework help
AssignmentDetails_2_8_2016 (2).pdf For this assignment, complete the following steps:Write a research paper of 3–4 ...
details the design and layout characteristics of Android phone applications, programming homework help
AssignmentDetails_2_8_2016 (2).pdf For this assignment, complete the following steps:Write a research paper of 3–4 pages (cover and references pages not included in page count) that details the design and layout characteristics of Android phone applications.Specifically describe the design process for an Android phone application.Include a discussion of the role of Extensible Markup Language (XML) in the design process and how XML is used in the Android application files.Discuss the best practices and also the problems and solutions regarding design, layout, performance, compatibility, and security.Explain the difference between a light and a heavy layout and how they both relate to overall performance.unit_1_ip_by_sherry_l_cooper_beck.docx
SWE 321 Zayed University Object Oriented Programming Python Lab Report
Hello, can you only solve for me please questions 2, 5, 8, 9 in page 7 and question 2 in page 8. I need every question is ...
SWE 321 Zayed University Object Oriented Programming Python Lab Report
Hello, can you only solve for me please questions 2, 5, 8, 9 in page 7 and question 2 in page 8. I need every question is a separate python file and all files in one zip file. Can you also please add code documentation as how it is shown in page 4. If you have any question please let me know. I need perfect work please because this lab worth many grades.
Grossmont College Calculate Damage in Dungeons and Dragons Python Code
Project: PythonIn this project, you will create a simple program to roll some dice and calculate damage in the style of Du ...
Grossmont College Calculate Damage in Dungeons and Dragons Python Code
Project: PythonIn this project, you will create a simple program to roll some dice and calculate damage in the style of Dungeons and Dragons, a popular roleplaying game. What you need to knowOne of the main components of the game is the dice roll. This allows for randomization and adds variations to the game. Die sides are denoted by d3, d6, d20, etc., with the number referring to the number of sides that the die has. Since we are using a computer, we can have a die like d1000 (meaning a 1000-sided die) which would not be possible in real life. We can also roll multiple dice.
For example, 1d6 means a six-sided die that can output anything from 1, 2, 3, 4, 5, or 6. 2d6 means two six-sided dice that can output the sum of two dice throws (e.g., 2 through 12). If the first roll is 3 and the second roll is 2, the sum is 5. Use the starter codePlease find the starter code here: https://repl.it/@bus101/Final-project-starter-code Copy the code into your own account. Make sure that you don’t change any of the provided code.
You will need “random” to generate random numbers (e.g., the die roll). What you need to createFunction: get_roll(rollstring)This function takes an input parameter as a string that looks like “1d3”, “3d5”, etc. The function should return an integer simulating those dice rolls. In the case of “3d5”, for example, the function will generate a random number between 1 and 5, three times, and return the total as an integer. Function: get_damage(attack, defense)This function gets the value of damage based on roll strings. If the defense roll is greater than the attack roll, damage is 0. Otherwise, return attack minus defense, as an integer.Function: main_menu()In this function, ask the user how many rolls they want to take. Next, ask the user to input the attack dice and the defense dice for roll 1, roll 2, etc., up to the number of rolls they entered.
Finally, display each roll round and the damage from that round.
This function does not need to return anything.Sample outputEach group of output is from a separate run of the program. The program only needs to run once each time.
How many rolls do you want to take? 3Input attack and defense roll 1: 1d3,1d3Input attack and defense roll 2: 1d6,1d3Input attack and defense roll 3: 1d6,1d10Attack:1d3, Defense:1d3 : Damage: 0Attack:1d6, Defense:1d3 : Damage: 2Attack:1d6, Defense:1d10 : Damage: 0
How many rolls do you want to take? 2Input attack and defense roll 1: 100d5,150d3Input attack and defense roll 2: 99d6,100d7Attack:100d5, Defense:150d3 : Damage: 0Attack:99d6, Defense:100d7 : Damage: 0
How many rolls do you want to take? 5Input attack and defense roll 1: 500d5,500d5Input attack and defense roll 2: 600d6,600d6Input attack and defense roll 3: 123d456,123d123Input attack and defense roll 4: 1d10000000,1d100000000000Input attack and defense roll 5: 1d1,1d1Attack:500d5, Defense:500d5 : Damage: 0Attack:600d6, Defense:600d6 : Damage: 0Attack:123d456, Defense:123d123 : Damage: 20058Attack:1d10000000, Defense:1d100000000000 : Damage: 0Attack:1d1, Defense:1d1 : Damage: 0How to submit your Python codeIf you do not see a “Share” button in the top right, please turn off any ad blockers.
When you are done with your code, click “Share” in the top right. You will see an info box pop up like the screenshot below. At the bottom of the box, click “Copy repl link”. Please do not use the “Invite someone with a join link” feature.
Create a new text submission in iLearn. Paste your link into the text box (not the comments box) and submit. Note: if you change the title of your repl after submitting, your link will no longer be valid. You will need to create a new link (see steps above) and submit again. I recommend making the title of your repl something simple like “[first name] [last name] Project” and leaving it like that.ResourcesYou will need to learn additional Python concepts on your own. I will provide updated resources here that will help.
Here’s how to use these resources: https://www.loom.com/share/f46abf6088ca48b2967e39c454ec4022
Functions (Dr. Chuck):https://www.youtube.com/watch?v=5Kzw-0-DQAkhttps://www.youtube.com/watch?v=AJVNYRqn8kMLists (Dr. Chuck):https://www.youtube.com/watch?v=ljExWqnWQvohttps://www.youtube.com/watch?v=bV1FQUBIApMhttps://www.youtube.com/watch?v=GxADdpo6EP4
Using the split() function: https://www.w3schools.com/python/ref_string_split.asp (Hint: if the roll string is “1d5”, what separator should you use to split the string into the number of dice and number of sides?)
randint() function: https://www.w3schools.com/python/ref_random_randint.asp
The following textbooks are for reference only. You don’t need to read them all the way through.Python for Everybody (Dr. Chuck’s book): http://do1.dr-chuck.com/pythonlearn/EN_us/pythonlearn.pdfThink Python: http://greenteapress.com/thinkpython2/thinkpython2.pdf
New material Dec 5This is another good instructorFunctions: https://www.youtube.com/watch?v=NSbOtYzIQI0Lists: https://www.youtube.com/watch?v=tw7ror9x32sFor loops: https://www.youtube.com/watch?v=OnDr4J2UXSAWhile loops: https://www.youtube.com/watch?v=6TEGxJXLAWQDictionaries: https://www.youtube.com/watch?v=ZEZdys-fHDw
Similar Content
CMPS 151 Qatar University Python Attendance Report Project
CMPS 151 Homework 2
During the COVID-19 Lockdown, Blackboard Collaborate Ultra was used at Qatar University as
the main pl...
The UDP client sends 20 messages to the UDP server, programming homework help
Before
reading this specification, you have to understand the protocol and
architecture of UDP client and server progr...
Proposed Research vm
Cloud computing - vmware.docx ...
Programming help the student to make him/her bright future.
i have experience in this sector almost 5 year so i know how to explain our student. ...
CSUS C++ Implementing a Container Class Project
...
lab 7 modification dictionaries in python
This lab is all about dictionaries in python. I uploaded everything you need...
25619642 1
The impact of race, ethnicity, and social structure in crime The Impact of race, ethnicity, and social structure in crime...
Positive Rights
A major ethical challenge that could impact a U.S. company that desires to get a Non-U.S.-based company is the problem of ...
Info
I have created 3 separate projects, each for one problem. They are all in separate folders in .zip file. I...
Related Tags
Book Guides
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
FLOWCHART and PSEUDOCODE , programming homework help
Create a FLOWCHART and a PSEUDOCODE for each problem.Use the information below to create a pseudocode (which can be a text ...
FLOWCHART and PSEUDOCODE , programming homework help
Create a FLOWCHART and a PSEUDOCODE for each problem.Use the information below to create a pseudocode (which can be a text-based description for solving the problems) and a flowchart (using flowchart symbols to illustrate how you would program) to solve each problem. You may use Microsoft Word® for your pseudocode and Microsoft PowerPoint® for your flowchart. 1. Problem 1: Write a program that will calculate the problem and stop after the condition has been met. This is an IF/THEN/ELSE problem.a=1b=a+1c=a+bCondition: If c is less than 5, then the loop will continue; else, it will end.a will increase by one after every completed loop.2. How many loops will be necessary to meet the condition incrementing 'c' by 1? Why?
Central Michigan University Incorporate Data Scientist Tasks Paper
Read through the scenario below, then open the jupyter notebook you uploaded and you will find instructions in the comment ...
Central Michigan University Incorporate Data Scientist Tasks Paper
Read through the scenario below, then open the jupyter notebook you uploaded and you will find instructions in the comments throughout the file.Python + Mysql + Excel Save this file as you edit, ensuring you do not lose any work.When you are finished, rename your .ipynb file, create a zip with:Your .ipynb solution fileChad's "spreadsheet"Your spreadsheetSubmit this zip file of your entire project here on Canvas.ScenarioThings keep moving along well with your role at Northwind Traders. Now they are asking you to start incorporating Data Scientist tasks into your workflows.Think about all of the times you've seen or heard about companies struggling with redundant data. As you've heard several times before, one of the most important first steps in any analytics project is grabbing your data, sometimes from various sources, and cleaning it up or combining it so that it is ready to go. Turns out, Northwind is no different.Northwind has just entered into an agreement with their suppliers where they have committed to helping drive traffic to their supplier's own sites so they can upsell customers on warrantees and support, as well as market complementary products to their customers. In trade, Northwind's suppliers have agreed to sell their products through Northwind exclusively for the next five years.Remember Chad? Well, he is currently hiding from a pack of furious DBAs. He was given the task of updating all of the suppliers' website URLs so that work can begin on the new project to direct traffic to their various sites.Chad messed up. Instead of updating the database with new homepages for each suppler, he just created a spreadsheet of supplier names and their URLs. Thanks, Chad.So now we have an Excel Workbook with supplier names and URLs and a MySQL database with a table of Suppliers that has far more info about each supplier, but has outdated info on each of their websites. This is where you come in.Your first job here is to get a report of all of the supplier IDs, company names, contact names, contact phone numbers, and up-to-date URL information. This is going to require us to grab data from the MySQL database as well as reference Chad's super-helpful spreadsheet. Once you've combined the data correctly from our sources, we can share it back out in the form of a new Excel Workbook.
details the design and layout characteristics of Android phone applications, programming homework help
AssignmentDetails_2_8_2016 (2).pdf For this assignment, complete the following steps:Write a research paper of 3–4 ...
details the design and layout characteristics of Android phone applications, programming homework help
AssignmentDetails_2_8_2016 (2).pdf For this assignment, complete the following steps:Write a research paper of 3–4 pages (cover and references pages not included in page count) that details the design and layout characteristics of Android phone applications.Specifically describe the design process for an Android phone application.Include a discussion of the role of Extensible Markup Language (XML) in the design process and how XML is used in the Android application files.Discuss the best practices and also the problems and solutions regarding design, layout, performance, compatibility, and security.Explain the difference between a light and a heavy layout and how they both relate to overall performance.unit_1_ip_by_sherry_l_cooper_beck.docx
SWE 321 Zayed University Object Oriented Programming Python Lab Report
Hello, can you only solve for me please questions 2, 5, 8, 9 in page 7 and question 2 in page 8. I need every question is ...
SWE 321 Zayed University Object Oriented Programming Python Lab Report
Hello, can you only solve for me please questions 2, 5, 8, 9 in page 7 and question 2 in page 8. I need every question is a separate python file and all files in one zip file. Can you also please add code documentation as how it is shown in page 4. If you have any question please let me know. I need perfect work please because this lab worth many grades.
Grossmont College Calculate Damage in Dungeons and Dragons Python Code
Project: PythonIn this project, you will create a simple program to roll some dice and calculate damage in the style of Du ...
Grossmont College Calculate Damage in Dungeons and Dragons Python Code
Project: PythonIn this project, you will create a simple program to roll some dice and calculate damage in the style of Dungeons and Dragons, a popular roleplaying game. What you need to knowOne of the main components of the game is the dice roll. This allows for randomization and adds variations to the game. Die sides are denoted by d3, d6, d20, etc., with the number referring to the number of sides that the die has. Since we are using a computer, we can have a die like d1000 (meaning a 1000-sided die) which would not be possible in real life. We can also roll multiple dice.
For example, 1d6 means a six-sided die that can output anything from 1, 2, 3, 4, 5, or 6. 2d6 means two six-sided dice that can output the sum of two dice throws (e.g., 2 through 12). If the first roll is 3 and the second roll is 2, the sum is 5. Use the starter codePlease find the starter code here: https://repl.it/@bus101/Final-project-starter-code Copy the code into your own account. Make sure that you don’t change any of the provided code.
You will need “random” to generate random numbers (e.g., the die roll). What you need to createFunction: get_roll(rollstring)This function takes an input parameter as a string that looks like “1d3”, “3d5”, etc. The function should return an integer simulating those dice rolls. In the case of “3d5”, for example, the function will generate a random number between 1 and 5, three times, and return the total as an integer. Function: get_damage(attack, defense)This function gets the value of damage based on roll strings. If the defense roll is greater than the attack roll, damage is 0. Otherwise, return attack minus defense, as an integer.Function: main_menu()In this function, ask the user how many rolls they want to take. Next, ask the user to input the attack dice and the defense dice for roll 1, roll 2, etc., up to the number of rolls they entered.
Finally, display each roll round and the damage from that round.
This function does not need to return anything.Sample outputEach group of output is from a separate run of the program. The program only needs to run once each time.
How many rolls do you want to take? 3Input attack and defense roll 1: 1d3,1d3Input attack and defense roll 2: 1d6,1d3Input attack and defense roll 3: 1d6,1d10Attack:1d3, Defense:1d3 : Damage: 0Attack:1d6, Defense:1d3 : Damage: 2Attack:1d6, Defense:1d10 : Damage: 0
How many rolls do you want to take? 2Input attack and defense roll 1: 100d5,150d3Input attack and defense roll 2: 99d6,100d7Attack:100d5, Defense:150d3 : Damage: 0Attack:99d6, Defense:100d7 : Damage: 0
How many rolls do you want to take? 5Input attack and defense roll 1: 500d5,500d5Input attack and defense roll 2: 600d6,600d6Input attack and defense roll 3: 123d456,123d123Input attack and defense roll 4: 1d10000000,1d100000000000Input attack and defense roll 5: 1d1,1d1Attack:500d5, Defense:500d5 : Damage: 0Attack:600d6, Defense:600d6 : Damage: 0Attack:123d456, Defense:123d123 : Damage: 20058Attack:1d10000000, Defense:1d100000000000 : Damage: 0Attack:1d1, Defense:1d1 : Damage: 0How to submit your Python codeIf you do not see a “Share” button in the top right, please turn off any ad blockers.
When you are done with your code, click “Share” in the top right. You will see an info box pop up like the screenshot below. At the bottom of the box, click “Copy repl link”. Please do not use the “Invite someone with a join link” feature.
Create a new text submission in iLearn. Paste your link into the text box (not the comments box) and submit. Note: if you change the title of your repl after submitting, your link will no longer be valid. You will need to create a new link (see steps above) and submit again. I recommend making the title of your repl something simple like “[first name] [last name] Project” and leaving it like that.ResourcesYou will need to learn additional Python concepts on your own. I will provide updated resources here that will help.
Here’s how to use these resources: https://www.loom.com/share/f46abf6088ca48b2967e39c454ec4022
Functions (Dr. Chuck):https://www.youtube.com/watch?v=5Kzw-0-DQAkhttps://www.youtube.com/watch?v=AJVNYRqn8kMLists (Dr. Chuck):https://www.youtube.com/watch?v=ljExWqnWQvohttps://www.youtube.com/watch?v=bV1FQUBIApMhttps://www.youtube.com/watch?v=GxADdpo6EP4
Using the split() function: https://www.w3schools.com/python/ref_string_split.asp (Hint: if the roll string is “1d5”, what separator should you use to split the string into the number of dice and number of sides?)
randint() function: https://www.w3schools.com/python/ref_random_randint.asp
The following textbooks are for reference only. You don’t need to read them all the way through.Python for Everybody (Dr. Chuck’s book): http://do1.dr-chuck.com/pythonlearn/EN_us/pythonlearn.pdfThink Python: http://greenteapress.com/thinkpython2/thinkpython2.pdf
New material Dec 5This is another good instructorFunctions: https://www.youtube.com/watch?v=NSbOtYzIQI0Lists: https://www.youtube.com/watch?v=tw7ror9x32sFor loops: https://www.youtube.com/watch?v=OnDr4J2UXSAWhile loops: https://www.youtube.com/watch?v=6TEGxJXLAWQDictionaries: https://www.youtube.com/watch?v=ZEZdys-fHDw
Earn money selling
your Study Documents