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

  To make things easy, just place the line makeclothes

To make things easy, just place the line makeClothes at the top of your script so you're guaranteed to have the correct acmeClothes array to work with.

  Design a controller which regulates flow

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

  The power input p to a centrifugal pump is assumed to be a

the power input p to a centrifugal pump is assumed to be a function of the volume flow rate q impeller diameter d

  Matlab program to calculate the rest of the coefficients

Step One: For the design specifications of your filter, see the excel file for specifications (UDO). You need to demonstrate for the first two iterations( n=0 & n=1), by hand, the calculation of the coefficients. Step Two: Develop a Matlab prog..

  Deterministic dimensions and rebar area

Performance function for bending of a rectangular reinforced concrete beam under moments due to dead and live loads

  Function that takes as input parameters a function

Define a function that takes as input parameters a function handle f, start, and end values a and b, and a number of steps n. The function should compute and return the average value of f over the range a to b.

  Implement and demosaic function in matlab

you need to implement and demosaic function in matlab. Load a image in a .png file and process it into a color image. I am required to use 'rggb' with linear interpolation. Can someone help me?

  With a time step of h 01 in each case use starting values

dydt yt- yt2 1 le t le 2 y1 1approximate the solution to the above initial value problem usinga 2-step

  Write a menu driven matlab script named grades

Write a menu driven Matlab script named grades that will let the user.

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  Write a matlab program to multiply two matrices

Write a MATLAB program to multiply two matrices together. Do not use the MATLAB matrix multiplication function, A*B.

  What is gini index of income inequality

What is Φ (as function of θ)? Provide an analytical solution of Φ when θ = 3 and What happens to Gini index of income inequality as θ increases?

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