Write program that representing a month-day and year

Assignment Help MATLAB Programming
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.

Reference no: EM131040440

Questions Cloud

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?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Program should be able to handle collisions

Write a program that, given a list of 5 social security numbers, finds the memory locations assigned by the hashing function h(k) = k mod 55 to store customer records. program should be able to handle collisions.

  Compute the eigenvalues and eigenvectors of the matrix

Compute the eigenvalues and eigenvectors of the matrix

  Write a matlab that given a sequence of samples

Write a MATLAB or Octave program that, given a sequence, f[k], of samples in the time domain, calculates a filtered output y[k], given by the formula y[k]=-a_2[k-1]-a_1y[k-2]-a_0y[k-3]+b_3f[k]+b_2f[k-1]+b_1f[k-2]+b_0f[k-3].

  Write a matlab function that takes in one argument

Write a MatLab function that takes in one argument, a vector or 2-D matrix and returns a single value, the highest value in the vector or matrix. Use nested for loops to accomplish this task. Assume that all of the values in the vector or matrix are ..

  Describe the controller design problem

Design a proportional controller Gc(s), to meet the specifications. Can you meet all three specifications? If not, then explain - propose a controller Gc(s) to control the vertical height, Y(s), of rowdy. The figure 2 shows the block diagram of the..

  Consider the predator-prey models

Consider the predator-prey models developed early part of the 20 th  century in which the number of predators and preys may be predicted using the pair of ODEs

  Develop a simulation program

Develop a simulation program

  Calculate the vertical stress increase

Calculate the vertical stress increase expected 2.0 m under the ground surface, under the centre of a rigid 2m by 2m footing resting on the soil surface if the total contact load the footing places on the soil is 80kN.

  What is the purpose of the matlas command window

What is the purpose of the MATLAS Command Window. The Edit Window? The Figure Window. List the different ways that you get help in MATLAB. What is a workspace. How can you determine what is stored in a MATLAB workspace

  Computes the stiffness matrix for one bilinear element with

write Matlab code that computes the stiffness matrix for one bilinear element with 4 nodes

  Write a script that will loop through values of n

Write a script that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.

  How do you create a new script or function in matlab

What is the difference between a script and function. How do you create a new script or function in MATLAB

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