computer sience.....

Sep 12th, 2015
Computer Science
Price: $10 USD

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

(Top Tutor) Daniel C.
School: UIUC

Studypool has helped 1,244,100 students

8 Reviews

On Time
Nov 30th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
Five Star Tutor
Nov 20th, 2016
" Outstanding Job!!!! "
Nov 16th, 2016
" excellent work as always thanks for the help "
Nov 7th, 2016
" Thank you, Thank you, for top quality work, this is your guy!! "
Oct 25th, 2016
" The best tutor out there!!!! "
Oct 16th, 2016
" Excellent work as always thanks so much "
Oct 2nd, 2016
" Thanks for the help. "
Sep 19th, 2016
" <3 it, thanks for saving me time. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1825 tutors are online

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