subject

Selection challenges 1 1. Write a Python program to accept two integers and check whether they are equal or not. Test Data : 15 15
Expected Output : Number1 and Number2 are equal

2. Write a Python program to check whether a given number is even or odd.
Test Data : 15
Expected Output : 15 is an odd integer

3. Write a Python program to check whether a given number is positive or negative. Test Data : 15
Expected Output : 15 is a positive number

4. Write a Python program to find whether a given year is a leap year or not.
Test Data : 2016
Expected Output : 2016 is a leap year.

5. Write a Python program to read the age of a candidate and determine whether it is eligible for casting his/her own vote.
Test Data : 21
Expected Output : Congratulation! You are eligible for casting your vote.

6. Write a Python program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0 when m is 0 and -1 when m is less than 0.
Test Data : -5
Expected Output : The value of n = -1

7. Write a Python program to accept the height of a person in centimeter and categorize the person according to their height. Test Data : 135
Expected Output : The person is Dwarf.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
You know the right answer?
Selection challenges 1 1. Write a Python program to accept two integers and check whether they are...
Questions
question
Mathematics, 21.05.2021 04:00
question
Mathematics, 21.05.2021 04:00
question
Spanish, 21.05.2021 04:00
question
History, 21.05.2021 04:00
Questions on the website: 13722362