Assume that day is an int variable whose value is 1 or 2 or … or 7. Write an expression whose value is “sun” or “mon” or … or “sat” based on the value of day. (So, if the value of day were 4 then the value of the expression would be “wed”.).

Assume  that day is an int  variable  whose value  is 1 or 2 or … or 7. Write an expression  whose value  is “sun” or “mon” or … or “sat” based  on the value  of day. (So, if the value  of day were 4 then the value  of the expression  would be “wed”.).

LANGUAGE: C++

CHALLENGE:

Assume that day is an int variable whose value is 1 or 2 or … or 7. Write an expression whose value is “sun” or “mon” or … or “sat” based on the value of day. (So, if the value of day were 4 then the value of the expression would be “wed”.).

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level