Computers and Technology, 05.02.2021 19:10 bermudezsamanth
Write a function called is_even that takes one parameter and returns a boolean value. It should return True if the argument is even; it should return False otherwise.
The is_even function should not print anything out or return a number. It should only take in a number and return a boolean.
Note: Be sure to include comments for all functions that you use or create.
For example, if you made a call like
is_even_number = is_even(4)
is_even_number should have the value True.
Once you’ve written this function, write a program that asks the user for integers and prints whether the number they entered is even or odd using your is_even function. You should let the user keep entering numbers until they enter the SENTINEL value.
Here is a sample run of the program:
Enter a number: 5
Odd
Enter a number 42
Even
Enter a number: -6
Even
Enter a number: 0
Done!
My code isn't working please help.
Answers: 2
Computers and Technology, 21.06.2019 18:20
Write the pseudocode for the following: a function called fahrenheittocelsius that accepts a real fahrenheit temperature, performs the conversion, and returns the real celsius temperature. a function called celsiustofahrenheit that accepts a real celsius temperature, performs the conversion, and returns the real fahrenheit temperature. a main module that asks user to enter a fahrenheit temperature, calls the fahrenheittocelsius function, and displays the celsius temperature with a user-friendly message. it then asks the user to enter a celsius temperature, calls the celsiustofahrenheit function, and displays the fahrenheit temperature with a user-friendly message.
Answers: 1
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
Write a function called is_even that takes one parameter and returns a boolean value. It should retu...
SAT, 16.04.2020 22:37
Mathematics, 16.04.2020 22:37
Mathematics, 16.04.2020 22:37
Mathematics, 16.04.2020 22:37
Mathematics, 16.04.2020 22:37
Mathematics, 16.04.2020 22:37
Social Studies, 16.04.2020 22:37
Mathematics, 16.04.2020 22:37
History, 16.04.2020 22:37
Chemistry, 16.04.2020 22:37
English, 16.04.2020 22:37
Mathematics, 16.04.2020 22:38