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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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