Question: Explain why the following code sample does not capture the intent of the request Make sure if the sales code is not 'A' or 'B',

Explain why the following code sample does not capture the intent of the request "Make sure if the sales code is not 'A' or 'B', the customer gets a 10% discount". What is the correct if statement? if(salesCode != 'A' || salesCode != 'B') discount = 0.10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
