
Patrick B. answered 05/17/21
Math and computer tutor/teacher
public class Program
{
public static void Main(string[] args)
{
int k=3; //May 16,2021
int m=16;
int D=21;
int C=20;
int F=k+ (int) ( Math.Floor((double)((13*m-1)/5)) +D+ Math.Floor((double)(D/4)) + Math.Floor((double)(C/4))-2*C );
Console.WriteLine(F%7);
}
}
Karanbir S.
I should ask the user to enter the date and the program should tell what day and a fortune like given in the example.05/17/21