Assignment_13

Assignment_13 - >= 18 You can vote....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 13: Write a program which asks the user his or her age, then asks for his or her name. Based on the age entered, display the appropriate messages as shown in the table below: Age Message >= 18 You can smoke cigarettes. >= 18 and <= 30 You can join the military. >= 21 You can drink alcohol.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: &gt;= 18 You can vote. &gt;= 62 You can draw Social Security. Here is a sample run of the program ( Green text is user input ): What is your age? 40 What is your full name? Steven Shaffer Okay, Steven Shaffer, You can smoke cigarettes. You can drink alcohol. You can vote....
View Full Document

Ask a homework question - tutors are online