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 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, 24.06.2019 00:50
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
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, 14.09.2019 19:10
question
Mathematics, 14.09.2019 19:10
Questions on the website: 13722360