Calculate the following integer quantaties

Assignment Help C/C++ Programming
Reference no: EM13939583

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. Noe calculate 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, andso 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: EM13939583

Questions Cloud

What types of crimes will be the most prevalent : What types of crimes will be the most prevalent? How will new technologies affect law enforcement and individual rights? How will police departments and prosecutorial agencies respond to new vanguards in criminal justice
The current yield on these bonds : Backwater Corp. has 6 percent coupon bonds making annual payments with a YTM of 5.2 percent. The current yield on these bonds is 5.55 percent. How many years do these bonds have left until they mature?
What theory (somatic mutation model) supposed to accomplish : What is a theory (somatic mutation model) supposed to accomplish? What is the purpose of competing theories? When can you discard a theory? What constitutes "success?"
Labor production rate for making : Estimate the direct cost of materials, equipment and labor for wood forms for a concrete foundation wall of a building whose outside dimensions are 46 ft. 6 in. wide, 88 ft. 0 in. long, 9 ft. 8 in. high, and 9 in. thick. Labor production rate for mak..
Calculate the following integer quantaties : 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. Noe calculate the following integer quantaties
Survey of entertainment technology : Use the internet to research the people who operate a radio station (the radio station management and staff - there are roughly a dozen key positions).
Expect the rate of return to be for the investor : We have a callable 25 year, 2% bond X and associates selling at $1500. If the instrument is callable after 4 years at $1050, what will the yield to call and the yield to maturity be? What do we expect the rate of return to be for the investor of X?
Letter to deliver to the homes and apartments : You have decided to write a promotional sales letter to deliver to the homes and apartments in the area. Your letter should be attractive and include details that you think is necessary to boost business and attract more customers.
What are data declaration statements : I need an example of a flow chart and specification sheet of a C program.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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