Create a program that displays the number of days in a month

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

Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month (use 28 for the number of days in February). Code the program so that it displays the number of days in the month corresponding to the number entered by the user. For example, when the user enters the number 1, the program displays "There are 31 days in the month of January". The program should display an error message if the user enters an invalid number. Put a loop in the program so that the user can input multiple months. Use a sentinel of -1 to exit the program. 

Reference no: EM13166634

Questions Cloud

State what mass of cu is electroplated by running : What mass of Cu is electroplated by running 13.0 A of current through a Cu^2 solution for 4.00 h? Express your answer to three significant figures and include the appropriate units.
How many kg of water were in the sample : A 95.0 gram piece of ice at 0.0 degrees celcius is added to a sample of water at 8.0 degrees celcius. All of the ice melts and the temperature of the water decreases to 0.0 degrees celcius. How many Kg of water were in the sample?
The excavated material is to be hauled : The excavated material is to be hauled away and used as compacted fill material on another site adjacent to the current site. Assuming that a soil analysis shows that the soil weighs 2,800 lbs/ cubic yards (CY), 2,000 lbs/CY, and 3,500 lbs/CY in i..
Capital investment prior to any remaining income : In addition, Moss and Kim have suggested that the operating agreement be written so that all matters are settled by majority vote, with each partner having a one-third voting interest in the LLC and if you were providing Kelly Herron counsel, what..
Create a program that displays the number of days in a month : Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month (use 28 for the number of days in February).
Outline two different methods that could be used to prepare : Outline two different methods that could be used to prepare 2-methyl-2-butanol using a Grignard synthesis. Which method is the best? Explain
What would be the new temperature of the water : If you used 8400 kilojoules you expend in energy in one day to heat 50,000 g of water to 20 degrees C, what would be the irse in temperature? What would be the new temperature of the water?
Oracle datatypes for the attributes : Choose Oracle datatypes for the following attributes from a normalized relation including:
What is the density of talc : Talc is a mineral that has low conductivity for heat and electricity and that is not attacked by acid. It is used as talcum powder and face powder. A sample of talc weighs 35.97 g in air and 13.65 g in mineral oil (d = 1.75 g/cm3). What is the den..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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