Hi there,
I believe the website is glitched and I’m getting an answer for a different exercise. Can someone please answer all of these questions for me. I really want an answer for question 4 thank you!
You are starting a new campaign for your online shop where every 11th customer gets 11% off of their next order. For ease, you decide that order numbers that are divisible by 11 will receive the coupon.
Here comes order #263! Find the remainder by calculating 263 modulo 11 and store the result in a variable called order_263_r
.
Print out order_263_r
.
Checkpoint 2
2.
Based on the value of order_263_r
, should this order receive a coupon? Create a new variable called order_263_coupon
and assign to it a value of "yes"
if the order should get a coupon, otherwise "no"
.
Checkpoint 3
3.
Here comes another order, #264! Find the remainder by calculating 264 modulo 11 and store the result in a variable called order_264_r
.
Print out order_264_r
.
Checkpoint 4
4.
Based on the value of order_264_r
, should this order receive a coupon? Create a new variable called order_264_coupon
and assign to it a value of "yes"
if the order should get a coupon, otherwise "no"
.