computer sience.....

timer Asked: Sep 12th, 2015
account_balance_wallet $10

Question description

  1. What is an if statement useful for? 1 point
  2. Write an if statement to check to see if the variable age is greater than 18. 1 point
  3. What is the difference between the < and <= relational operators? 1 point
  4. What is the meaning when you use the > operator to compare strings? 1 point
  5. How is an elif statement useful? Give an example aside from computing grades where this statement can be useful. 1 points
  6. What is the bool datatype and what does it represent? 1 point
7- Write a python  program that asks the user for an integer, and displays whether that integer is even or odd. You will want to use the % operator to test for even or odd. 2 points

8- Write a program that takes inputs three strings from the user, and displays which string is first alphabetically. You will need to use if statements and the and operator. 2 points

answers from this book Chapter3

Tutor Answer

Rice University

flag Report DMCA

Wow this is really good.... didn't expect it. Sweet!!!!

Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors