Python, R Programming Language - 30/09/2018 19:24 EDT

Closed Posted 5 years ago Paid on delivery
Closed Paid on delivery

Define a main() function, a doTestOne() function, a doTestTwo() function and

a doTestThree() function.

The main() function should call doTestOne(), doTestTwo() and doTestThree()

In doTestOne(),

1) Prompt the user for a number (e.g., "Please enter an integer.")

2) Using input() retrieve the number entered and store it in a variable called "userInput"

3) Convert the number from text to an integer

4) Determine whether or not the number is an even number by using the modulo operator.

Hint: The expression x % 2 == 0 (modulo operator) evaluates to True when the

remainder of x divided by 2 is 0.

5) If the number is even, print "Number entered is even" If the number is odd, print

"Number entered is odd"

In doTestTwo(),

6) Create two variables called 'hungry' and 'thirsty'

7) Set 'hungry' and 'thirsty' to either True or False (it doesn't matter which).

8) Write code that tests 'hungry' and 'thirsty' for all possible combinations

of True and False. There are four possibilities. For example, hungry and

thirsty can both be True, or both be False or one True and the other False.

9) Print the appropriate statement saying whether the user is hungry and/or thirsty

based on conditions using 'if' and 'elif'

In doTestThree(),

10) Prompt the user for a number. (For example, "Please enter an integer.")

11) Using input() retrieve the number entered by the user and store it in a variable called: "userInput"

12) Convert the number to an integer.

13) Using if and else statements, determine if the number entered is:

Divisible by 2 and 3.

Divisible by 2 and not 3.

Divisible by 3 and not 2.

14) Print the appropriate outcome as shown above.

Don't forget to execute the main function as your last line in the program.

Add appropriate comments to the program and describe what each function does above the

functions in comments.

Java Perl Python R Programming Language Ruby

Project ID: #17871630

About the project

28 proposals Remote project Active 5 years ago

28 freelancers are bidding on average $22 for this job

fejs

Hi Sir/Madam, I'm expert in Python programming and I can help You with this task. Best regards, Fejs. EDIT: I've completed the program and You can get it right now.

$20 USD in 0 days
(136 Reviews)
6.3
mohamedrdait

Hello I can achieve this project perfectly using R or Python I master R and python statistics please contact me for more details about the project best regards

$40 USD in 1 day
(46 Reviews)
5.7
FedericoRiva

Hi I have some experience using Python... in which part of it you need to use R? Well... if you're interested I think that I can help you with your job... message me and tell me a little more about your deadlines... More

$15 USD in 1 day
(33 Reviews)
5.1
thenuv

Hello! The project description has 3 functions to be called in main, while the document attached has 2 specific to Python. Please clarify which one is correct version. I can develop it in R. Happy to help if you More

$30 USD in 1 day
(16 Reviews)
4.8
pkouzouglidis

Hello, it's me again. I've already bid on the previous post of the same project. For less confusion better remove this post and keep the first created.

$15 USD in 1 day
(33 Reviews)
4.3
albabahmadkhan

I'm a experienced Data Scientist ready to do your work in an efficient way with strong analytical and logical reasoning skills with insatiable interest in Data Science and Big Data Analytics. Data analysis- Data M More

$30 USD in 1 day
(13 Reviews)
4.4
cguerrac

I Will implement your requirement.

$20 USD in 2 days
(9 Reviews)
3.3
Icic13

I'm a graduate and post graduate student in Statistics.I've a second major in Computer Science and Engineering. I've done 6 month internship as a statistical programmer. I've 2 years experience as a data analyst. Thro More

$30 USD in 1 day
(10 Reviews)
3.5
zainpacc

Expertise in python and can provide you your complete task in decided time frame with quality work. I have completed various projects related to this field as you can view my profile for reviews. We can discuss further More

$20 USD in 1 day
(6 Reviews)
3.2
MG2033

I'm an expert in Python and R. I'm interested in your project and can do it easily. Contact me if you'd like to hire me. Thank you.

$15 USD in 1 day
(1 Review)
2.4
sonu7120k

Expert at Python especially with homeworks .Have done homework for lots of people around expect nice grades . Let's discuss more.

$55 USD in 1 day
(2 Reviews)
2.8
mscharantr

Hey, I can complete your project within a day for $20. Let me know if you are interested in and also if you need it expeditely I can give you in half a day for the same price.

$25 USD in 1 day
(0 Reviews)
0.0
cafun79

Hi. I have experience in python programing to end the task quickly. Also in QA automation using Python in web and mobile apps.

$15 USD in 1 day
(0 Reviews)
0.0
nehamilton

Dear Sir, Have done plenty of python programming. This will not be a problem. Regards, Nicholas Hamilton, PhD.

$25 USD in 1 day
(0 Reviews)
0.0
irinary

I have experience with the Python, C++, and Java languages. Will complete the assignment in one day.

$15 USD in 1 day
(0 Reviews)
0.0
mitesh2694

I am a software engineer. I am adept in Python programming. I had gone through the project description and understands it completely. Its a one day project and I can make sure you that I will complete this in minimum More

$18 USD in 1 day
(0 Reviews)
0.0
farhan11897

I have done pattern programming in python within 6 hours. Pattern was numbered lines of checks for an nontechnical event as a question for participants. Last year i have also made attendance system of class room using More

$10 USD in 1 day
(0 Reviews)
0.0
sanbope15

it's done

$10 USD in 1 day
(0 Reviews)
0.0
woodsjamessh

with a Bachelors in computer science and three years of experience in ruby, will take me no time to do this.

$15 USD in 1 day
(0 Reviews)
0.0
mariouc

Hi! I have already send a proposal on your other offer, anyway I have already finished your work, the project in the description and the project in the file docx. I hope you choose me. Bye! :)

$25 USD in 0 days
(0 Reviews)
0.0