SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Y Daniel Lang
Chapter:
Programming
Exercise:
Check Point
Question:12 | ISBN:978013274719 | Edition: 6

Question

If today is Tuesday, what day of the week will it be in 100 days?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

The day of the week will it be in 100 days if today is tuesday:

Number of days in a week = 7

After days =100

Day 2 in a week is Tuesday

The expression is as follows

(2+100) % 7 = 4

Day 4 in a week is Thursday

 

0 0

Discussions

Post the discussion to improve the above solution.