Program that prompts the user to enter the year

Assignment Help C/C++ Programming
Reference no: EM13936712

Write a program that prompts the user to enter the year and the month and displays on the console the calendar table for the month.

For example, if the user entered 2011 for the year, and 5 for the month, the program should display the calendar for May 2011, as shown for December month in the attached picture.

Example of program action (in the console numbers are formatted to be exactly under the week days):

Enter Year: 2011
Enter Month: 5

May 2011
---------------------------
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

175_cal.png

Reference no: EM13936712

Questions Cloud

What data obtained from the chemical analysis of dna : Write the base sequence for the mRNA that would be formed during transcription from the DNA template strand with the base sequence 5' CGGATATTG 3' . Remember, DNA and RNA strands are written from the 5' to the 3' end.
C++ program that prompts the user to enter a length in feet : If the user enters a negative number or a non-digit number, throw and handle an appropriate exception and prompt the user to enter another set of numbers.
Integration and convergence of erp and bi systems : The impact of the integration and convergence of ERP and BI systems on organizations.
Components of basic gene structure : Questions about processes of transcription and translation are addressed, including the synthesis of mRNA from DNA. Components of basic gene structure, like introns and exons are addressed, and well as specific questions about the HIV virus.
Program that prompts the user to enter the year : Write a program that prompts the user to enter the year and the month and displays on the console the calendar table for the month.
Factors for successful production and entrepreneurship : In economic theory there are three major factors for successful production and entrepreneurship.
What is the verb in the given sentence : What is the verb in the sentence below- Paul hopes that she will sing with the choir
Choosing a reference organization : Choosing a Reference Organization (EBAY)For the Session Long Project, you will be asked to select an organization to use as a focus for your application of economic ideas. You must use the same organization for all 5 SLPs.
Electronic components inc. manufactures : Because of differing distribution and promotional costs, the profitability of the product will vary depending on the distribution channels chosen, because of a difference in the promotional costs. In addition, the advertising cost and the personal..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  State fair pie eating contest all contestants

At the State Fair Pie Eating Contest all contestants in the heavyweight division must weigh within 130 pounds to 250 pounds. Write a program that asks for a contestant's weight and then says if the contestant is allowed in the contest.

  Write a program to check the number

Write a program that asks the user to enter an integer from 1 to 50

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Examine the differences between a linear and augmented line

"Developing a Website" Please respond to the following: Examine the differences between a linear and augmented linear structure. Examine the differences between hierarchical and linear structures. Explain why a coherent structure is necessary. Provid..

  Write program to declare the array of type float

Write down the c++ program which declares the array of 50 components of type float. Initialize array so that first 25 components are equal to square of the index variable.

  What will be the value of xafter executing the above switch

If x = 3, then what will be the value of xafter executing the above switch statement?

  Write program in c++ for cosx and sinx expansion

Write program in c++ for cosx and sinx expansion( for personal inputs are x,number of terms

  Design is known, what advantages does keeping

Given that the design is known, what advantages does keeping the source code unavailable give the company and those who purchase the software? What disadvantages does it cause?

  Write a mips program that uses a recursive implementation

Write a MIPS program that uses a recursive implementation of quick sort to sort an array of numbers. The values of the array will be given to you via standard input. The first number will be the number of elements in the array and followed by the ..

  How many times will jump be displayed

Write an if statement that assigns 15 to x when y is greater than or equal to or 7 and how many times will "jump" be displayed in the following program segment? If the loop doesn't terminate, write "infinite".

  Write a c++ program to first find ''n'' fibonacci numbers

Write a C++ program to first find 'N' Fibonacci numbers and then display only the "even" Fibonacci numbers in "descending order" as output.

  Partial implementation of the overloaded assignment

You have a class called MyBag that contains this partial implementation of the overloaded assignment operator.  The first line is missing.

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