Find Jobs
Hire Freelancers

Write some program in Python

₹600-1500 INR

종료됨
게시됨 9년 이상 전

₹600-1500 INR

제출할때 지불됩니다
ollowing steps need to be performed: Initialize a variable called number with a value of 10 and a variable called numAttempts with a value of 0 Ask the user for their name Ask the user to guess a number between 1 and 20 and store that in a variable guess, increment the numAttempts variable If guess is same as number then say your guess is correct and you guessed it in n attempt(s), where n is the value of numAttempts variable and your program ends. If guess is lower than number then print "Your guess is too low". If numAttempts variable < 3, the goto step #7 else goto step #8. If guess is higher than number then print "Your guess is too high". If numAttempts variable < 3, the goto step #7 else goto step #8 Repeat step #3 - #6. If the user does not guess the number even after three attempts then print “Your three guesses are over, the number I was thinking of was 10” Sample 1 Hello! What is your name? Albert Well, Albert, I am thinking of a number between 1 and 20. Take a guess. 15 Your guess is too high. Take a guess. 4 Your guess is too low. Take a guess. 12 Your guess is too high. Your three guesses are over. The number I was thinking of was 10 Sample 2 Hello! What is your name? Albert Well, Albert, I am thinking of a number between 1 and 20. Take a guess. 8 Your guess is too low. Take a guess. 12 Your guess is too high. Take a guess. 10 Good job, Albert! You guessed my number in 3 guesses! Optional: Instead of fixing the number to be guessed to 10, you can initialize 'number' variable with a random number between 1 and 20 that you generate using the functions in the random module. This way every time you re run the program, it is a different number to be guessed. ____________________________________________________________________________________________________ Part - II (5 points) Rock, Paper, Scissor: Write a program to simulate the paper-rock-scissor game. Each of the two players type in P, R, or S. The program then announces the winner based on the rule: Paper covers Rock, Rock breaks Scissors, Scissors cut Paper, or Nobody wins. Be sure to allow the players to use lowercase as well as uppercase letters. You MUST implement a function that takes the choices that both the players made and returns 1 if the player 1 won and 2 if the player 2 won and 0 if it is a tie. So the logic of deciding who won based on the rock, paper, scissor rule must be programmed inside this function. You MUST call this function to decide who won and you must display the result of the game based on the return value of the function. Sample run: Player 1: Please enter either (R)ock, (P)aper, or (S)cissors: P Player 2: Please enter either (R)ock, (P)aper, or (S)cissors: s Player 2 wins. Optional: Your program can allow the users to play repeatedly say 5 times. Your program should then keep a score for each player and display that after each play. Sample run (with optional part): Player 1: Please enter either (R)ock, (P)aper, or (S)cissors: P Player 2: Please enter either (R)ock, (P)aper, or (S)cissors: s Player 2 wins. Scores after this play: Player 1: 0 Player 2: 1
프로젝트 ID: 7070892

프로젝트 정보

12 제안서
원격근무 프로젝트
활동 중 9년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
12 이 프로젝트에 프리랜서들의 평균 입찰은 ₹1,491 INR입니다.
사용자 아바타
I can deliver the program in python to your requirements .
₹5,315 INR 3일에
4.8 (130 건의 리뷰)
7.3
7.3
사용자 아바타
A proposal has not yet been provided
₹1,600 INR 1일에
4.7 (36 건의 리뷰)
5.4
5.4
사용자 아바타
A proposal has not yet been provided
₹1,000 INR 1일에
5.0 (13 건의 리뷰)
2.7
2.7
사용자 아바타
hey I can do this but you have to approve the start first. Waiting for your reply ....ready to start right now.
₹2,050 INR 1일에
5.0 (2 건의 리뷰)
2.6
2.6
사용자 아바타
Hi SIr, i can do this project foir u please open chat for details, i also have skills in python programming
₹1,300 INR 1일에
5.0 (1 건의 리뷰)
1.7
1.7
사용자 아바타
Hi, I am a Python expert with 4 years of experience. And an MSc student working with Python. So I would like to do this well discripted easy job for you, if you would consider working with me. Bilal.
₹975 INR 1일에
5.0 (1 건의 리뷰)
0.8
0.8
사용자 아바타
Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned .I have checked your requirements.i have right skills to work on this assignment Here we would like to bring in your notice that We are a team of professionals including experienced analysts, designers, project managers, developers and QA people having great expertise in web applications development mainly on core PHP, PHP with open sources (Joomla, Wordpress, Codeigniter, Cake PHP), .NET, Asp.NET, Vb.NET, HTML 5 etc. and mobile applications on ios and Android platform. We find our expertise, skills and capabilities are perfectly blends with your project requirements because we have already worked on many projects. For Quality Purpose we use : Testing of project in different stages” like module testing, integration testing and system testing. So there will be less probability of any error or issue".can u provide your email or sky-pe etc for further discussion about the project. plz add me to discus I am ready to discuss with you Looking forward to hear from you. with best Regards
₹1,300 INR 1일에
5.0 (1 건의 리뷰)
0.0
0.0
사용자 아바타
I have completed masters degree in computer programming. I am ready to do your assignment. I can complete it within 3 hour. Please give me a chance
₹1,050 INR 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I can do this job for you I can also provide a demo if required.
₹1,150 INR 2일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
This task seems very easy and can do it in 1 or 2 hours. I am an expert in Python coding and have been coding in python for last 7 years. Once the task is given, I'll solve it in no time. Employer can message me for any further details.
₹650 INR 0일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
A proposal has not yet been provided
₹1,300 INR 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hello, I am a very experienced and passionate python developer. I have over 5 years experience. The challenge at hand is very simple and can be completed in an hour from hiring. I would like to assure you that the project will be done to completion with a high degree of perfection. I look forwarded to working with you.
₹600 INR 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I have finished this request ahead of time. I can send you the program upon payment. Please take this best option!
₹600 INR 1일에
0.0 (1 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (INDIA)
Calcutta, India
4.6
121
결제 수단 확인
1월 29, 2011부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.