473,322 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

the entries in a logbook store information about a specific month.

the entries in a logbook store information about a specific month.a calendar provides a natural format for displaying this monthly data.
void displayCalendar () const

Requirements:
logbook month must occur in a year in the range 1901-2099.
in order to produce a calendar for a given month,you need to know on which day of the week the first day of the month occurs.the day of the week corresponding to a date month/day/year can be computed using the follwing fomula.

dayofweek=(1+nyears+nleapyears+nDaysToMonth)%7

where nyears is the number of years since 1901,nleapyears is the number of years since 1901,and nDaysToMonth is the number of days from the start of the year to the start of the month.
the program must be in c++
hint:
this problem is the in-lab exercise1 in the book of A Laboratory Course in C++ Data Structures 2003
Oct 21 '10 #1
0 1053

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: valexena | last post by:
1. Do you know in which tablespace the tables that store information about the Oracle online rollback segments is located? -- Posted via http://dbforums.com
3
by: ExclusiveResorts | last post by:
Can the CallContext be used reliably for storing request specific data? We are developing an application library that uses the CallContext to keep an IdentityMap (hashtable of business objects...
5
by: Kourosh | last post by:
I want to store some state infomation for each DIV tag on a page. Which property of the DIV tag should I use for this? ie I want to iterate through all DIV tags, and associate each with a 'state'...
0
by: gamzeliii | last post by:
hi there I am new for java, i need hep store information for calendar like when u clicking date u can add information i have calendar codes which is mostly working but i dont know how i can store...
1
by: pchaitanya | last post by:
hai.. I have created a textbox at runtime. using textbox t=new textbox(); page.form.controls.add(t); 1)I am getting textbox at left top of the page. How to Change Position of...
0
by: frogga | last post by:
Is it possible to store information against a users profile in a network environment? The problem is that I am building an application that connects to a server using a username and password, and...
2
by: dull1234 | last post by:
Hi all I am having a question about Excel VBA Hope that this is the right place to ask Now i am having 2 giant spreadsheets, one has about 2000 entries, another one has about 1000 entries. The...
8
by: Tom Adams | last post by:
I have a db that has calculated when couseling is to happen based on a set date and a specific time period. Example: contract end date= 120 day couseling, 90 day couseling, etc. Ineed to know who...
0
by: Prateek Gangwani | last post by:
Hey guys i have created a JSP page including one JSP form(which i have created with the help of HTML tags). Now i am facing the problem..as to how to store the information provided by the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.