Determine if user is old enough to run for president. Make a code in Java that results like test case examples . Thanks

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 10RA
icon
Related questions
Question
Determine if user is old enough to run for president. Make a code in Java that results like test case examples . Thanks
Test Case 1
Enter your age: \n
40 ENTER
40?
You can run for President! \n
Test Case 2
Enter your age: \n
16 ENTER
16?
You cannot run for President\n
Test Case 3
Enter your age: \n
34 ENTER
34?
You cannot run for President! \n
Test Case 4
Transcribed Image Text:Test Case 1 Enter your age: \n 40 ENTER 40? You can run for President! \n Test Case 2 Enter your age: \n 16 ENTER 16? You cannot run for President\n Test Case 3 Enter your age: \n 34 ENTER 34? You cannot run for President! \n Test Case 4
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage