Write a program using a nested if decision structure. The first question you'll ask the user is whether they like music. The second question you'll ask is whether they like to read. After asking both questions, one of four messages will be displayed: 1. You like music and reading. 2. You like music, but not reading. 3. You don't like music, but like reading. 4. You don't like music or reading.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question

need this done in c++

Write a program using a nested if decision structure. The first question you'll ask the user is whether they like music. The second question you'll ask is
whether they like to read. After asking both questions, one of four messages will be displayed:
1. You like music and reading.
2. You like music, but not reading.
3. You don't like music, but like reading.
4. You don't like music or reading.
Copy your code and paste it below.
Paragraph
BI
Path: p
Transcribed Image Text:Write a program using a nested if decision structure. The first question you'll ask the user is whether they like music. The second question you'll ask is whether they like to read. After asking both questions, one of four messages will be displayed: 1. You like music and reading. 2. You like music, but not reading. 3. You don't like music, but like reading. 4. You don't like music or reading. Copy your code and paste it below. Paragraph BI Path: p
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
ADT and Class
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning