Create a program that recommends a pet for a user based on the user's lifestyle. Prompt the user to enter whether he or she lives in an apartment or house (A or H- regardless the case) and the number of hours the user is home during the average day. The
Create a program that recommends a pet for a user based on the user's lifestyle. Prompt the user to enter whether he or she lives in an apartment or house (A or H- regardless the case) and the number of hours the user is home during the average day. The
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 7PE
Related questions
Question
Java
Note: PLease use BufferedReader insteaad of Scanner
![Create a program that recommends a pet for a user based on the
user's lifestyle. Prompt the user to enter whether he or she lives
in an apartment or house (A or H-regardless the case) and the
number of hours the user is home during the average day. The
user will select an hour category from a menu: type A) 18 or
more; B) 10 to 17. Print your recommendation based on the
following:
Hours Home
Residence
HOUSE
18 OR MORE
Recommendation
POT BELLIED PIG
CAT
APARTMENT
10 OR MORE](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F87f4260d-1077-4219-8116-5a1bf713207b%2F9fcaaf2f-901c-45e8-bf90-fe023336a0ac%2Fe7bxca_processed.png&w=3840&q=75)
Transcribed Image Text:Create a program that recommends a pet for a user based on the
user's lifestyle. Prompt the user to enter whether he or she lives
in an apartment or house (A or H-regardless the case) and the
number of hours the user is home during the average day. The
user will select an hour category from a menu: type A) 18 or
more; B) 10 to 17. Print your recommendation based on the
following:
Hours Home
Residence
HOUSE
18 OR MORE
Recommendation
POT BELLIED PIG
CAT
APARTMENT
10 OR MORE
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L