Question: In my CSC class we are doing an if statement lab where we have to code in JAVA. The first problem is: Prompt the user

In my CSC class we are doing an if statement lab where we have to code in JAVA.

The first problem is:

Prompt the user to input someone's age and output five statements that report whether that person can create a Facebook account (13), get a drivers license (16), vote (18), legally consume alcoholic beverages (21) or run for President of the US (35). DO NOT duplicate output statements in your code.

WHAT IS THE CODE IN JAVA?

In my CSC class we are doing an if statement lab where

CSC100 if statements lab Prompt the user to input someone's age and output five statements that report whether that person can create a Facebook account (13), get a driver's license (16), vote (18), legally consume alcoholic beverages (21) or run for President of the US (35). DO NOT duplicate output statements in your code. 1. SAMPLE INPUT: 17 At age 17, a person may create a Facebook account At age 17, a person may get a driver's license At age 17, a person is not old enough to vote. At age 17, a person is not old enough to legally drink alcohol At age 17, a person is not old enough to run for President. TEST DATA: 12 5 2025 40

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!