Coding Assignment Write two JavaScript programs with if statements that contain some or all of these logical operators: ! (NOT), && (AND), || (OR), ^ (XOR). You work for a retail store that wants to...


Coding Assignment


Write two JavaScript programs with if statements that contain some or all of these logical operators: ! (NOT), && (AND), || (OR), ^ (XOR).



  1. You work for a retail store that wants to increase sales on Tuesday and Wednesday which are the store's slowest sales days. Write a defining table and then a program that takes a customer's subtotal as input and if the subtotal is greater than $50 and today is Tuesday or Wednesday, subtracts 10% from the subtotal. Your program should then compute and output the total amount due by adding sales tax of 6% to the subtotal. Within your program, use this JavaScript code that will get the current day of the week from your computer's clock:

Oct 30, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here