Find Jobs
Hire Freelancers

python program

$15-25 CAD / hour

In Progress
Posted over 2 years ago

$15-25 CAD / hour

1: Rock, Paper, Scissors (Topics: Variables, user-input, flow-control, function) [20pnts] Task 1 implements the "rock, paper, scissors" game. This is a two-player game, where each player simultaneously selects from one of three options: rock, paper, scissors. The game is typically played with hand gestures and has the following rules: Rock wins against scissors, loses to paper, ties with rock. Paper wins against rock, loses to scissors, ties with paper. Scissors win against rock, lose to paper, tie with scissors. Image credit: Enzoklop (CC) In our version, the user will select first, and then the computer opponent named "HAL" will make a random selection. In a real game, both players would make their selection simultaneously. Require function In addition to the task1() function, you need to implement the following function: printOutcome(params: userSelection, computerSelection) -> no return The parameters are the user's and computer's selection. The function prints the outcomes depending on the selections: (1) "You win!"; (2) "HAL wins!"; (3) "A tie!" You decide what data type the parameters should be (e.g., integers representing the selection or strings representing "rock", "paper", "scissors"). Just ensure your function prints the correct outcome. Task 1 should behave as follows: (1) Print "Rock, Paper, Scissors!" (2) Print "Make your selection. . ." (3) Get input from user – 1 (rock), 2 (paper), 3 (scissors). (4) If the input is not 1, 2, or 3, print "Invalid selection. Try again." and ask the user for input again. (5) Randomly select HAL's choice – rock, paper, scissors. (6) Print out the user's selection and HAL's selection. (7) Pass the user's and HAL's selections to the function printOutcome() to print the outcome of the game. (8) Ask the user if they want to play again (Y). If the input is 'Y' or 'y', go back to (2). Task 2 – Adjacent element swap for a list (Topics: list, loops, functions, string manipulation, assert) [20pnts] The user will input a string as a series of characters separated by spaces. The input string should be converted to a list of characters. Task 2 is to swap the values of every two items in the list; for example – items at positions 0 and 1 are swapped; items 2 and 3 are swapped; items 4 and 5 are swapped, and so on, until the end of the list. You can assume that the list has at least two items – if not, your swap function should raise an AssertionError (see details below). Note that there are two cases: (1) the list has an even number of elements; (2) the list has an odd number of elements. For case 1, swap all elements. For case 2, swap all elements but leave the last element unchanged. See the diagram below for examples. Require function In addition to the task2() function, you need to implement the following function: swapAdjacentElements(params: alist) -> no return The parameter alist is a list of characters. The function should modify the list as described above. should modify the list passed to the function and not create a new list. The function has no return. ASSERT: This function should assert with the following error if the list has less than two (2) characters: "Must enter two or more characters!" Task 2 should behave as follows: (1) Prompt the user to input a sequence of two or more characters separated by spaces. (2) Convert the input string into a list of characters. (3) Print the list. (4) Print the list as a string with no spaces between the characters. (5) Call function swapAdjacentElements() to modify the list. See instructions above. This function does not create a new list; instead, it should modify the list passed as an argument. (6) Print the list again to show that the list has been modified. (7) Print the list as a string again with no spaces between the characters
Project ID: 32299381

About the project

24 proposals
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I have read all the requirements and I can complete this activity in just 1 day if given the opportunity. I have 3 + years of experience in python development and I would love to work on this.
$33 CAD in 1 day
0.0 (1 review)
0.0
0.0
24 freelancers are bidding on average $22 CAD/hour for this job
User Avatar
Dear Client, Thanks for your job posting and I hope you are doing well. I read your job description and understood what you are expecting. I have more than 10 years of experiences in web app developments, so I can do your job properly. I am available to work and can provide good result. If you are interested in me please message me.
$25 CAD in 40 days
5.0 (7 reviews)
6.0
6.0
User Avatar
Hello there, Greetings! I'm a software developer with over 7 years of industry experience working on Java and Python programming. I hold a Master's degree in Computer Science from Trinity College Dublin and successfully delivered over 150 projects here on freelancer. I can help you out with this project. I ensure high quality deliverables and timely delivery. Feel free to send me a message to discuss it in detail. Also, you may like to visit my profile and check out my reviews. Cheers!
$25 CAD in 40 days
5.0 (58 reviews)
6.0
6.0
User Avatar
Hello, Thank you for your job posting. I have good experience to work with developing script using python. As a 5 yrs experience with software development, work with medium and big companies in russia. Through reading your description, my experience will help you and your project. If you are interest, Please let me know and discuss your project in detail, Best, Okcana D.
$20 CAD in 40 days
5.0 (3 reviews)
4.8
4.8
User Avatar
Professional Software Developer️ Hello , I hope you are safe and Doing well I have seen your project requirements , I am looking to discuss further with you Hope we will meet soon to discuss further Coming to me, I am a professional software developer and have worked and taught for more than 10 years. My skills include C, C++, C#, VB, Java and so on. I am very confident in your project and ready to start your work right now. Let me know your availability of time to discuss this project through call or chat Stay safe Thanks, regards
$20 CAD in 40 days
5.0 (18 reviews)
4.6
4.6
User Avatar
Hi I am a very experienced statistician, data scientist and academic writer. I have completed several PhD level thesis projects involving advanced statistical analysis of data. I have worked with data from several companies and have done projects involving high level quantitative analysis and data interpretation skills to study the trends, time behaviour and compare the variables in the data. I can do advanced level analysis in SPSS, R, PYTHON, WEKA, TABLEAU and EXCEL tools like machine learning, deep learning, AI, NLP, hypothesis testing, forecasting, T-test, ANOVA etc. Looking forward to discussion, Best Regards, Suyash
$25 CAD in 40 days
4.0 (25 reviews)
5.7
5.7
User Avatar
Hi there, I do Python programming. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are interested.
$20 CAD in 40 days
4.9 (38 reviews)
4.8
4.8
User Avatar
I have gone through your requirements and I can do the project for sure. Hello, dear! I am a professional software developer and my skills include C, C++, C#, Java and Python. I have made several games using Python. I am free and can finish your project within a day. Best regards for you!
$20 CAD in 40 days
4.8 (8 reviews)
4.4
4.4
User Avatar
Hi there, I am a talented python dev, and I suppose I can handle this task successfully. Please let me know more details, and Please give me your chance. I look forward to hearing from you. Regards!
$20 CAD in 7 days
5.0 (5 reviews)
4.1
4.1
User Avatar
Hello. I have read your job description and It makes me interest. I am a 7+ years experienced Software developer who is good at Python and Algorithm. I will maintain good communication with you and I can work in your time zone. My working history and ability can make me finish your project within a short time. I think we can discuss more detail over chat. thanks.
$20 CAD in 40 days
5.0 (2 reviews)
3.9
3.9
User Avatar
Hello, dear! I have a deep experience with python. I have mastered algorithms and data structure. I can solve your problem very fast. Please contact me. Respectfully yours.
$20 CAD in 40 days
5.0 (7 reviews)
3.2
3.2
User Avatar
Hello, I'm an experienced Python developer. I can provide you an elegant and documented implementation for your exam in very short time.
$20 CAD in 40 days
5.0 (5 reviews)
2.7
2.7
User Avatar
Hi, How are you? I am very interested in your project. I am an expert in math, physics. I have +5 experiences in matlab, python, R Programming. I read your description for project carefully. I’ve worked on several similar projects like your project. I’m interested to hear more about the project. If you award me the project, I’d be pleased to discuss this further and get started for you as soon as possible. Thanks!
$15 CAD in 40 days
5.0 (3 reviews)
2.5
2.5
User Avatar
Hello, I can do this.
$25 CAD in 40 days
5.0 (1 review)
2.5
2.5
User Avatar
Hello Sir/Madam I have development experience in various Programming Languages, OOP, Data Structures, Database Driven applications, APIs, Files handling and Data Transformation, ETL and various frameworks. I assure you an excellent solution of your project within the time frame and exactly according to the requirements. Thanks @CodingHelpLine
$25 CAD in 40 days
5.0 (1 review)
1.5
1.5
User Avatar
Hi, I am excellent mathematician. With over 5 years of experience in Python. I’ve gone through your complete project description. My main skills are as follows: Python, Machine Learning Thank you for your attention. Hope to discuss detail spec with you soon. Regards.
$25 CAD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, How are you today? Thank you for posting this project, and I'm very happy to bid on your project. I've read carefully your project details. I have rich experiences related to your project. Your satisfaction with the project is my top priority! If you give me a chance to work with you, then I will do my best to reach your requirements. I'm waiting for your kind response. Please send msg over chat. Let's go. I will do my best for you. Best Regards.
$20 CAD in 40 days
0.0 (1 review)
0.0
0.0
User Avatar
Hello I am 4 star coder at codechef and expert at codeforces. (C/C++/python). I can easily do you project as I am the co-ninja of bitbyte programming club of my college(IIITDM Jabalpur) also teaches more than 30 student of first year batch plz message me and the price is also negotiable. Dsa Topic (i Knew) OOPS concepts Time compexity and space complexity Dynamic Memory Allocation Linked list stack Queue Tree Binary Tree Binary Search Tree Priority Queue (heap) Graph Dynamic Programming Greedy alg
$15 CAD in 15 days
0.0 (0 reviews)
0.0
0.0
User Avatar
This sounds straightforward. It'll take me two hours. I'll do it for $50 in total. I guarantee the result: if it doesn't work perfectly, you don't have to pay
$25 CAD in 16 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am good at programming. I check your task and I am sure I am able to do it. I will also can work with you for a long time.
$20 CAD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Dear client, This is so easy task glade that you are offering great bid amount Well, I am 7 experience in python and send me ur email address I will submit it before 30hrs with code explaination , let me know when we can connect
$15 CAD in 30 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
North York, Canada
0.0
0
Member since Dec 7, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.