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

  Parallel implementations of sum-scan operation

Parallel Implementations of (sum-)Scan Operation and Its Applications - Data Parallel scan operations have the potential to reduce this requirement to O(lg n), thereby speeding up the process drastically for a large number of input elements.

  Create a program that outputs the result of the formula

Create a program that uses the same formula above to output the result; this time, however, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.

  An expression whose value depends upon the evaluation

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Write a program to perform statistics calculation

The results should add the sums, the lengths and determine which of the two are the largest and the smallest of the new statisticians form the two inputs. ex statistician3 largest is the

  Main function to input twenty integers in given range

Write a main function to input 20 integers in range of 1-6, function should count number of times the numbers 2 and 5 occur. function must declare statics variables count2 and count5.

  Write a c program to search a list of integers

Write a C program to search a list of integers for a particular value. The user should be prompted to enter the value to be searched for. Your program will then print out whether the value was found or not.

  Write test program to call function several times for gcd

Greatest common divisor of two integers is largest integer which will evenly divide both integers. Implement this function in assembly language and write test program which calls function several times, passing it different values.

  1 what is the output of the following c programsnbspinclude

1. what is the output of the following c programs?nbspinclude ltiostreamgtusing namespace stdint mainnbspnbspnbsp cout

  Write a program that right-justifies text

Write a program that right-justifies text. It should read and echo a sequence of left-justified lines and then print them in right-justified format.

  Write a program which accepts the total of food and drink

Write a program which accepts the total of food and drink purchased for a restaurant bill as input. The output should be adjusted bill with a sales tax of six percent 6% and a tip (gratuity) of 15%.

  Calculates the exact integral over the interval

Write your program so that it outputs the interval entered, the exact solution, the approximation, the number of trapezoids and the difference between the exact and approximate solutions - trapezoids increases the approximate result converges to th..

  Implement a standard sorted linked list class

Write C++ Program:Implement a standard SORTED linked list class. Be sure to include constructor/copy constructor, destructor, and assignment operator overload.

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