Calculate the integer quantaties

Assignment Help Computer Engineering
Reference no: EM1331283

Revernd Zeller developed a formula for computing the day of the week on which a given date fell or will fall. Suppose that we let a, b, c, and d be integers defined as follows:
a = the number of a month of the year, with March = 1, April = 2, and so on, with January and February being counted as months 11 and 12 of the preceeding year.
b = the day of the month
c = the year of the century
d = the century

For example, July 31, 1929 gives a = 5, b = 31, c = 29, d = 19; January 3, 1988 gives a = 11, b = 3, c = 87, d = 19. Nowcalculate the following integer quantaties:
w = the inter quotient (13a - 1)/5
x = the integer quotient c/4
y = the integer quotient d/4
z = w + y + b + c - 2d
r = z reduced modulo 7; that is, r is the remainder of z divided by 7: r = 0 represents Sunday; r = 1 represents Monday, and so on

Write a function day_of_the_Week () that receives the name of a month, the day of the month, and a year and returns the name of the day of the week on which that date fell or will fall. Write a program that inputs several strings representing dates, calls the function day_of_the_Week() and displays the day returned by the function.

a. Verify that December 12, 1960 fell on a Monday, and that January 1 1991 fell on a Tuesday.
b. On what day of the week did January 25, 1963 fall?
c. On what day of the week did June 2, 1964 fall?
d. On what day of the week did July 4, 1776 fall?
e. On what day of the was February 8, 1962?

Reference no: EM1331283

Questions Cloud

Find qualitative factors fo ski pro corporation : What qualitative factors (that is, issues with vendors, customers, or within the product itself) should the Ski Pro Corporation consider in determining whether they should make or buy the bindings?
International laws to resolve disputes : Should countries recognize the Hague Abduction Convention and International Parental Kidnapping Crime Act above the rights of its own citizens?
Write down a driver program to test library : Write down a library Cylinder containing functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder.
Describing overall importance in delivery of health service : Define cultural competency and describe its overall importance in the delivery of health services.
Calculate the integer quantaties : Write down a function day_of_the_Week () that receives the name of a month, the day of the month, and a year and returns the name of the day of the week on which that date fell or will fall. Write a program that inputs several strings representing..
Explain western union what strategy pursue to achieve goals : expands into the Middle East, India and China, revenue is growing at a 20% annually. Yet it is estimated that WU has only penetrated 15-20% of the $150 billion global money-transfer market.
International law related to the nautical territory : Should the United States become a party to UNCLOS III by accession? What are the arguments both for and against becoming a party? Which arguments are better, and why?
Elevate consciousness about white collar crime : Identify some specific strategies that might elevate consciousness about white collar crime.
Growing diversity of the health care workforce : Identify three ways the growing diversity of the health care workforce affects the management of a health care organization today.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Registering user at directory service

Consider a user A who wishes to download the mp3 file with the title T.Describe how B is able to register anonymously at directory service (letting the service know that it has title T) such that A may use the directory service to receive the file..

  What will do to get deadline to receive a passing grade

What will do to get deadline to receive a passing grade? You have to complete and submit course project previous to the deadline to receive a passing grade for this course.

  Program declaring an integer variable

Write down a complete program that declares an integer variable, reads a value from keyboard into that variable.

  Too much control is counter-productive define

"Too much control is counter-productive." Do you agree? Provide reasoning of the view.

  Developing a database of measured meteorological data

You are developing a database of measured meteorological data for usage in weather and climate research.

  Cloud to provide crm installations

What "Cloud" can provide to the CRM installations in order to ease the adoption of such systems?

  Utilizing automatic end-of-file logic to signal end of input

Design an algorithm to compute and print the average earnings, lowest earnings, and the highest earnings of a group of employees. Every input record will consists of name and earnings of one employee.

  Constructing truth table of converter circuit

Construct the truth table of the converter circuit using character a , b, c and d (d represents Least Significant Bit) in order to denote the literals input of BCD. Use w, x, y and z (z as Least Significant Bit) in order to represent the output li..

  Pseudocode and flowchart

Develop a flowchart or puesdocode that carry out the following task: Begin the program. Declares the strings.

  Laws and regulation in telecommunications field

What gives the federal government the right to regulate the Telecommunications arena, and what is the purpose of laws and regulations. Do you think we need laws and regulation in the telecommunications field at all? Why or why not?

  Write down a simple java payroll code

Write down a simple Java payroll code. It needs to ask for the employee name, hours worked, and hourly rate.

  Problem on bubble sort algorithm

Problem on Bubble sort algorithm

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd