help. need in visual studios, c++ programming, also can screenshot of results be
ID: 3727806 • Letter: H
Question
help. need in visual studios, c++ programming, also can screenshot of results be provided to make sure it looks like poctures provided.
Explanation / Answer
#include <iostream>
using namespace std;
//Converted function into C++ code
bool EasterHodgens(int dy, int mth, ByVal y, ByVal method)
{
int a,b,c,d,e,f,g,h,j,k,m,n,p;
bool EasterHodgen;
if(y<1583 || y>4099)
{
EasterHodgen = false;
d=0;
m=0;
printf("Hodges method only applies to the revised calculations in the Gregorian calender from 1583 to 4099. ");
}
else
{
EasterHodgen = true;
a=y/100;
b=y%100;
c = (3 * (a+25))/4;
d = (3 * (a+25))%4;
e = (6 * (a+11))/25;
f = (5 * a + b)%19;
g = 19 * f +c -e)%30;
h = (f + 11 * g)/319;
j = (60 * (5-d) + b)/4;
k = (60 * (5-d) + b)%4;
m = (2*j - k -g + h)%7;
n = (g - h + m + 114)/31;
p = (g - h + m + 114)%31;
dy = p + 1;
mth = n;
}
return EasterHodgen;
}
int main()
{
//write your function calling here
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.