Reference no: EM131040440
How to write a program to determine the day of the week. using GUI.
Standard Programming Projects
Problem 1:
For this problem, you are to write a program that inputs three integers representing a month, day, and year. For example, 5 12 2015 represents May 12, 2015. The program should then determine and print the day of the week on which that date falls, (Tuesday). Your program should work for any AD year, (years greater than or equal to 1). (Don't worry about years that are BC. These would have a negative number associated with them. Also, since there was no year 0, you don't need to worry about it either.) You will need to keep track of leap years. (Recall that during leap years February has 29 days.) Every year which is divisible by 4 is a leap year, except those years that are divisible by 100 and not by 400. (The year 1900 was not a leap year, but the year 2000 was a leap year.)
The sample screen below shows what the day look like if displayed within the command window, but for this program you are to create a GUI to enter the desired date and then display the calendar for the month in which the date appears. Have all of the days of the month numbered and in columns for the days of the week, like a normal calendar, but use a yellow background for the special date entered and a grey background for the rest of the days in the month. Have the program keep asking for dates until a "0" is entered.
Describe the qualities of valuable information
: 1. Describe the qualities of valuable information. 2. Describe the different data types used in the fields of a database. Describe and explain how the different methods of validating data are used in a database.
|
Performance in the most recent racing season
: Choose a racing team of interest to you. Is it personnel, and its performance in the most recent racing season. What accounts for this team’s success or lack of success—driver talent, technology, teamwork, or all three?
|
Analytics helps to reduce injuries to rugby players
: Professional sports are much more than just a game. Instead, they are increasingly becoming a scientific undertaking that is driven by data and numbers. Gone are the days of relying on raw talent and gut instinct to succeed. Although sports organi..
|
What role does product development life cycle in marketing
: What is the purpose of marketing? What is the functional role of marketing in a firm? How does marketing make government, business, organizations, institutions, and individuals relevant in society? What role does the Product Development Life Cycle (P..
|
Write program that representing a month-day and year
: How to write a program to determine the day of the week - write a program that inputs three integers representing a month, day, and year. For example, 5 12 2015 represents May 12, 2015.
|
Discuss the specific elements and principles of design
: Discuss the specific elements and principles of design in each object. Describe how the elements are used to create the feelings you believe the artists are trying to convey in each object.
|
Purpose of the software engineering institute
: Explain in your own words the purpose of the Software Engineering Institute's (SEI) exercises regarding team communication, and determine whether or not you believe this type of testing and analysis is a beneficial use of resources. Justify your a..
|
With fuel costs being expensive
: Jack owns a local trucking company. With fuel costs being expensive, Jack wants to evaluate how much fuel, on average, he should store in his 8,000 gallon fuel tank. Each year Jack uses 80,000 gallons of diesel (usage is spread evenly throughout the ..
|
Result of the calculation to be truncated
: Assuming that variables value1 and value2 are both declared as ints, which of the following statements causes the result of the calculation to be truncated?
|