- Please do this in Python
Programming and provide screenshots - The output should be exact same like in the examples.
- If the output in the example is in 2 decimals, then it should be like that.
1e - Othello 2
During a game of Othello, the time a player spends thinking about his moves is recorded. Write a program that reads the times that the two players have thought, in milliseconds. One of the players is human, the other is a computer. The program determines which of the two players is human and prints the thinking time of the human in the following format: hh:mm:ss. It may be assumed that a computer always has less thinking time than a human.
Example:
Enter the time the black player thought: 21363
Enter the time the white player thought: 36
The time the human player has spent thinking is: 00:00:21.
Put your program in othello_2.py
=> The following assignments use loops. Use the right loop for the right assignment.
1f - Manny
Mobster Manny thinks he has found the perfect way to part money from their rightful owners, using a computer program. Mobster Manny secretly installs the program on someone's computer and remains hidden in a corner, waiting for the program to finish. The program will ask the user how much he or she wants to donate to charity, Thirsty Toads in the Sahara (Manny's Wallet). If the unsuspecting victim wants to donate less than €50, the program will ask again. The program will continue to ask for an amount until the user has agreed to donate €50 or more, after which Mobster Manny will show up to collect the money.
Write this malicious program, but make sure it does not fall in the wrong hands!
Example:
Enter the amount you want to donate:
0
Enter the amount you want to donate:
10
Enter the amount you want to donate:
52
Thank you very much for your contribution of 52.00 euro.
Put your program in manny.py
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images
- Please answer in python with showing the codesarrow_forwardPlease make sure the output be the same exact output on the picture (In python)arrow_forwardTranscribed Image Text Listed below are number in the table. If the user want to search for 65, what will be the display of the program? Create a program using 5.2. Sequential Search 17 20 65 31 44 54 55 65 77 93arrow_forward
- Solve In Python Provide Screenshots of input and output You have been asked by the Olympic committee to write a program for scoring the Olympic diving events. In an Olympic diving event, each dive has a degree of difficulty (DD). The dives are evaluated by a panel of 7 judges who can award 0 to 10 points. To determine an athlete's final score for a dive, the highest and lowest judges scores are discarded and then the average of the rest of the scores are calculated. The average is then multiplied by the DD, resulting in the final score for the dive. Write a program that will read in the attached data file that contains the event information. Each tab separated line will contain in order: -A diver name -The DD -7 scores for the dive Your program should parse this file and output the divers name, the dive DD, and the score for that dive. REMEMBER to submit your source code, and a screenshot of your output. The input file should be attached to this dropboxarrow_forwardPlease help me with this question in python using psedocode details. I have attached both pictures below:-arrow_forward..5-- I have a python programing question In 1937, a German mathematician named Lothar Collatz formulated an intriguing hypothesis (it still remains unproven) which can be described in the following way: 1. take any non-negative and non-zero integer number and name it c0; 2. if it's even, evaluate a new c0 as c0 ÷ 2; 3. otherwise, if it's odd, evaluate a new c0 as 3 × c0 + 1; 4. if c0 ≠ 1, skip to point 2. The hypothesis says that regardless of the initial value of c0, it will always go to 1. Of course, it's an extremely complex task to use a computer in order to prove the hypothesis for any natural number (it may even need artificial intelligence), but you can use Python to check some individual numbers. Maybe you'll even find the one which would disprove the hypothesis. Write a program which reads one natural number and executes the above steps as long as c0remains different from 1(c0 != 1). Moreover, we'll add another task - we want you to count the steps needed to achieve the goal.…arrow_forward
- Write a Python code This lab requires you to write a complete program using a condition controlled loop, a counter controlled loop, and an accumulator. The program is as follows: Write a program that will allow a grocery store to keep track of the total number of bottles collected for seven days. The program will calculate the total number of bottles returned for the week and the amount paid out (the total returned times .10 cents). The output of the program should include the total number of bottles returned and the total paid out. The program will ask the user if they have more data to enter and will end the program if they do not. Step 1: In the pseudocode below, declare the following variables under the documentation for Step 1. A variable called totalBottles that is initialized to 0 This variable will store the accumulated bottle values A variable called counter and that is initialized to 1 This variable will control the loop A variable called todayBottles…arrow_forwardPlease help me code in python. Include screenshots of your code for better understanding. Thank you!arrow_forwardIn python, write a program that receives an integer from the user, called n, and prints the first n prime numbers. For example, if the input is 7, the output should be: 2, 3, 5, 7, 11, 13, 17.arrow_forward
- Using Pythonarrow_forwardUse Kotlin. Create a program to display a series of fibonacci up to the given number and calculate the sum of its term.arrow_forwardAdd a print statement to say “Multiplication Table” and then prompt the user to enter an integer. Your program should then print a “times table” for the numbers from 1 to the given integer (inclusive). That is, for input n, you would print a table of n rows (lines) each with n columns, where the cell at row i and column j contains the value i × j. The coding language must be Java.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY