Question: Introduction To Java Conditional Statements: How Fast Are You Going? Write some Java code that asks the user for their speed. If they are going

 Introduction To Java Conditional Statements: How Fast Are You Going? Writesome Java code that asks the user for their speed. If they

Introduction To Java Conditional Statements: How Fast Are You Going? Write some Java code that asks the user for their speed. If they are going faster than 50, you must print a message that says "You are going too fast!" Are You An Adult? Write some code that asks the user for their age. If they are 18yrs or over, print "You are an adult." Give Them A Drink Write some Java code that asks the user for their gender (M for Male and F for female). If they are male, print "Beer". If they are female, print "Wine". If you prefer to use your own choice of drink Odd Or Even Write some Java code that asks the user to enter a number. Your code should print "Odd" or "Even" depending on the number entered. Hint: Dividing by 2 and checking the reminder will determine if a number is odd or even. Difference Write some Java code that asks the user to enter two numbers and calculates the difference between them. Your program must always subtract the smaller number from the larger number. Book Club Points A book club awards points based on the number of books read each month (as follows). If a member read O books, they earn 0 points. If a member read 1 book, they earn 5 points. If a member read 2 books they earn 15 points. If a member read 3 books, they earn 30 points. If a member read 4 or more books, they earn 60 points. Write some Java code that asks the user to enter the number of books that he or she read this month and then displays the number of points are awarded. Numbers to Words Write some Java code that asks the user to enter a number from 1 through 5 (inclusive) and displays its equivalent in words. Enter a number (1 through 5): 4 four A Better Speed Checker Write some Java code that accepts a speed (entered by the user) and uses the logic shown in the flowchart below to output a message based on the speed entered. Hint: You are required to use nesting (as you must follow the flowchart logic shown). True False speed > 55? True speed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!