Question

In: Advanced Math

According to Zeller's Formula, the day of the week can be calculated by: f=k+(13m−1)/5+D+D/4+C/4−2C where: •k...

According to Zeller's Formula, the day of the week can be calculated by:

f=k+(13m−1)/5+D+D/4+C/4−2C

where:

•k is the day of the month.

•m is the month number designated in a special way: March is 1, April is 2, . . . , December is10; January is 11, and February is 12. If x is the usual month number, i.e. for January x is 1, for February x is 2, and so on; then m can be computed with this formula:m= (x+21)%12+1,where % is the usual modulus (i.e. remainder) function. Alternatively,m can be computed in this way:

m= x+10, if x≤2, or x−2 otherwise.

•D is the last two digits of the year, but if it is January or February those of the previous year are used.

•Cis for century, and it is the first two digits of year. In our example,C=20.

•From the result f we can obtain the day of the week based on this code:

Day0 = Sunday...Day 6 = Saturday

For example, if=123, thenf%7=4, and thus the day was Thursday. Again, % is the modulus function.

What was the day on June, 1 2005 according to Zeller's formula?

Solutions

Expert Solution


Related Solutions

1) Write a program in C++ sin(x) can be approximately calculated using the following formula, where...
1) Write a program in C++ sin(x) can be approximately calculated using the following formula, where n! is factorial(n) – for example 3!=3*2*1 = 6 (the function in previous problem). The more terms we use in the series, the higher will be accuracy of the calculations. By using infinite terms in the series we will have the exact value. Hint 1: For n! simply use (copy and paste) the factorialFunc(n)from previous problem. Hint 2: This problems is similar to the...
Minimize the function with K-Map- F(A,B,C,D)= ПM(0,2,4,5,6,7,9,12).d(3,14)    Design full adder with 4:1 MUX gates
Minimize the function with K-Map- F(A,B,C,D)= ПM(0,2,4,5,6,7,9,12).d(3,14)    Design full adder with 4:1 MUX gates
Consider a firm with production function given by q = f(E, K) = E^(1/4)K^(1/4), where E...
Consider a firm with production function given by q = f(E, K) = E^(1/4)K^(1/4), where E is number of workers and K is capital. The price of labor is w = 4 and price of capital is r = 8. The price of the output that firm produces is 20. The firm can adjust both its inputs. 1) Derive an expression for MRT S for this firm. 2) The firm wants to produce q0 units of output. What would be...
Solve the c, d, e, f from the given equations. e+2f=-1 2d+e=-0.2 2c+d+3e+4f=-0.5 -e-2f=1
Solve the c, d, e, f from the given equations. e+2f=-1 2d+e=-0.2 2c+d+3e+4f=-0.5 -e-2f=1
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula...
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula into each of the cells marked with a ? below 4 Review Problem: Activity-Based Costing 5         6 Data 7     Deluxe Tourist 8 Annual sales in units 2,000 10,000 9 Direct materials per unit $25 $17 10 Direct labor-hours per unit 5 4 11 12 Direct labor rate $12 per DLH 13 14 Estimated 15 Overhead Expected Activity 16 Activities and Activity...
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula...
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula into each of the cells marked with a ? below 4 Review Problem: Activity-Based Costing 5         6 Data 7     Deluxe Tourist 8 Annual sales in units 2,000 10,000 9 Direct materials per unit $25 $17 10 Direct labor-hours per unit 5 4 11 12 Direct labor rate $12 per DLH 13 14 Estimated 15 Overhead Expected Activity 16 Activities and Activity...
The erosion rate of a streambank is calculated by the excess shear stress equation: e=k(a-c) where...
The erosion rate of a streambank is calculated by the excess shear stress equation: e=k(a-c) where e is the erosion rate in m/s, k is the erodibility coefficient in m^3/ N s, a is the applied shear stress (Pa) and c is the critical shear stress (Pa). The applied shear stress is calculated using the equation a=den*g*d*s where den is the density of water (1000 kg/m^3), g is the acceleration due to gravity (9.8 m/s^2), d is the depth of...
Treatment of a polypeptide with Tris-(2-carboxyethyl)-phosphine hydrochloride (TCEP) yields two peptides: 1. I-Q-K-H-C-R-C-A-K-M-V-S 2. F-C-R-L-K-D-C-K-N-D Treatment...
Treatment of a polypeptide with Tris-(2-carboxyethyl)-phosphine hydrochloride (TCEP) yields two peptides: 1. I-Q-K-H-C-R-C-A-K-M-V-S 2. F-C-R-L-K-D-C-K-N-D Treatment of the intact polypeptide with Trypsin yields fragments with the following amino acid composition: (Ser, Met, Val) (Lys, Gln, Ile) (Phe, Ala, Cys2, Arg, Lys) (Asp, Asn) (Leu, Lys) (Lys, His, Asp, Cys2, Arg) a) The intact (untouched) polypeptide is labeled with 1-Fluoro-2,4-dinitrobenzene (FDNB) labeling, followed by acid hydrolysis. What will be observed? b) Name and briefly describe a method which may determine if...
(a) (f ∘ g)(3) (b) g(f(2)) (c) g(f(5)) (d) (f ∘ g)(−3) (e) (g ∘ f)(−1) (f) f(g(−1))
(a)    (f ∘ g)(3) (b)    g(f(2)) (c)    g(f(5)) (d)    (f ∘ g)(−3) (e)    (g ∘ f)(−1) (f)    f(g(−1))  
1. An exponential relationship can be defined by the formula f(x)=30(0.42)^x where y=f(x). Complete each of...
1. An exponential relationship can be defined by the formula f(x)=30(0.42)^x where y=f(x). Complete each of the following exercises. As x increases, y    answer:decreases What is the function's initial value (the value of y when x=0)? f(0)= What is the function's 1-unit growth or decay factor? What is the function's 1-unit percent change? What is the value of f(3.25)? 2.    The exponential function f(t)=18.6(0.964)^t where w=f(t) models the water level (in meters) in a certain reservoir in terms...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT