Question: Someone, please help code this lab 10 with design.cpp // Lab Homework 10 1/ Logical Operator AND and OR // Demonstrate how to use a

 Someone, please help code this lab 10 with design.cpp // LabHomework 10 1/ Logical Operator AND and OR // Demonstrate how to

Someone, please help code this lab 10 with design.cpp

// Lab Homework 10 1/ Logical Operator AND and OR // Demonstrate how to use a logical operator // with a Boolean expression. #include #include using namespace std; // for to lower() int main() { /* Create a program that produces the Sample Output shown at the bottom. You MUST: Output all of the lines show below in the Sample Output - spacing, spelling, punctuation, etc. must be exact matches NOTE: There are SIX different runs of the program shown - do NOT have your program do all four at once Declare variables and/or constants appropriately, name them according to standards (points will be deducted for poor names), and be sure to use appropriate data types - NOTE: You MUST use a single compound logic expression in the if statement (using your choice of && or 11) NOTE: Only ONE if and ONE else are allowed NOTE: DO NOT worry about situations where the user doesn't enter y, y, N, orn // TODO: Determine whether the user qualifies for discount movie tickets. // Use the if-else structure to decide which of the following // two messages to print: You qualify for discounted movie tickets. You do not qualify for discounted movie tickets. Discount Ticket eligibility (at least one of these): - Student - Age 12 or younger - Age 65 or older */ // return 0; } /* Sample interaction and output: Run the program once - the user enters N and 13 ================= Answer the following questions: ========= Are you a student? (y): N How old are you? 13 You do not qualify for discounted movie tickets. Press any key to continue.. Run the program once - the user enters n and 12 ESSSSSSSSSSSSS===== ========= Answer the following questions: Are you a student? (y): n How old are you? 12 You qualify for discounted movie tickets. aaa Press any key to continue Run the program a third time - the user enters N and 65 SSSSSSSSSSSSSSSS Answer the following questions: Are you a student? (y): N How old are you? 65 You qualify for discounted movie tickets. Press any key to continue .. Run the program a fourth time - the user enters y and 52 ======================== Answer the following questions: ======= Are you a student? (y): y How old are you? 52 You qualify for discounted movie tickets. Press any key to continue Run the program a fifth time the user enters Y and 10 ====================== Answer the following questions: Are you a student? (y): Y How old are you? 10 You qualify for discounted movie tickets. Press any key to continue... Run the program a sixth time the user enters Y and 75 ========= ====== Answer the following questions: Are you a student? (y): Y How old are you? 75 You qualify for discounted movie tickets. Press any key to continue... */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!