X1197: Codewit Phinease: Doing chores with C++ boolean expressions and do-while loop

Complete a program to encourage the user to do their chores before going to sleep. Begin by prompting the user Did you clean your room? (answer yes or no)\n and after receiving their response, prompt them with Did you lay out your clothes for tomorrow? (answer yes or no)\n and receive their second response.

  • When the user has done both, respond with Have a goodnight! Dont forget to set your alarm.\n and stop the program.
  • When the user cleaned their room but did not lay out their clothes, respond with go lay your clothes down bro.\n\n
  • When the user chose their clothes but did not clean their room, respond with bro go clean your room.\n\n
  • When the user has not done either, respond with seriously? lets try this again.\n\n
  • Unless they have done both, repeat this process of prompting the user and responding appropriate to their answers

Complete the code within the brackets ({ }) below.

Your Answer:

Reset

Practice a different C++ exercise

Feedback

Your feedback will appear here when you check your answer.