3.7.EXERCISES 37
- TheGregorianEpactis thenumberofdaysbetweenJan.1standtheprevious1stquartermoonphase.
Thisvalueis usedtofigureoutthedateofEaster. It is calculatedbytheseformulas(usingintarith-
metic):C year
100 epact
8
C
4 C
8 C 13
25 11
year%19%30Writea program
thatpromptstheuserfora 4-digityearandthenoutputsthevalueoftheepact.
- Writea programtocalculatetheareaofa trianglegiventhelengthofitsthreesidesa,b,andc.
s a