Introduction to Programming with C++
Introduction to Programming with C++
3rd Edition
ISBN: 9780133252811
Author: Y. Daniel Liang
Publisher: Prentice Hall
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 4, Problem 20PE
Program Plan Intro

Implementation of a program ask to input a year along with the starting three letters or alphabets of a month’s name (always the first letter entered in uppercase) and show thetotal days in that particular month.

Program Plan:

Write a C++ program which requests the programmer to input a year along with picking up the starting three letters from the month’s name where the first letter has to be in uppercase and then the total count of days in that month are shown as output.

Blurred answer
Students have asked these similar questions
C# (Guess the Number Game) Write a program that plays “guess the number” as follows: Your program chooses the number to be guessed by selecting an int at random in the range 1–1000. The program then displays the following text in a label: A TextBox should be used to input the guess. As each guess is input, the background color should change to red or blue. Red indicates that the user is getting “warmer,” blue that the user is getting “colder.” A Label should display either “Too High” or “Too Low,” to help the user zero in on the correct answer. When the user guesses the correct answer, display “Correct!” in a message box, change the Form’s background color to green and disable the TextBox. Recall that a TextBox (like other controls) can be disabled by setting the control’s Enabled property to false. Provide a Button that allows the user to play the game again. When the Button is clicked, generate a new random number, change the background to the default color and enable the TextBox.
Convert pounds into kilograms) Write a program that converts pounds into kilo-grams. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms.
Q1: (Palindrome number) Write a program that prompts the user to enter a three-digit integer and determines whether it is a palindrome number. A number is palindrome if it reads the same from right to left and from left  to right.   Here is a sample run of this program: Enter a three-digit integer: 121 121 is a palindrome   Enter a three-digit integer: 123 123 not a palindrome

Chapter 4 Solutions

Introduction to Programming with C++

Ch. 4 - If the input for a starting character and an...Ch. 4 - If you run Listing 4.4 GuessBirthday.cpp with...Ch. 4 - Which function do you use to test whether a...Ch. 4 - Which function do you use to convert a letter to...Ch. 4 - Prob. 15CPCh. 4 - Prob. 16CPCh. 4 - Prob. 17CPCh. 4 - Prob. 18CPCh. 4 - Write a statement that changes the first character...Ch. 4 - Show the output of the following code:...Ch. 4 - Prob. 21CPCh. 4 - To use stream manipulators, which header file must...Ch. 4 - Show the output of the following statements....Ch. 4 - Show the output of the following statements:...Ch. 4 - Show the output of the following statements;...Ch. 4 - Show the output of the following statements:...Ch. 4 - Prob. 27CPCh. 4 - How do you create an object for reading data from...Ch. 4 - Prob. 29CPCh. 4 - What happens if the file already exists when you...Ch. 4 - (Geometry: area of a pentagon) Write a program...Ch. 4 - (Geometry: great circle distance) The great circle...Ch. 4 - (Geography: estimate areas) Find the GPS locations...Ch. 4 - (Geometry: area of a hexagon) The area of a...Ch. 4 - Prob. 5PECh. 4 - (Random point on a circle) Write a program that...Ch. 4 - Prob. 7PECh. 4 - (Find the character of an ASCII code) Write a...Ch. 4 - Prob. 9PECh. 4 - (Vowel or consonant?) Assume letters...Ch. 4 - Prob. 11PECh. 4 - (Convert letter grade to number) Write a program...Ch. 4 - (Hex to binary) Write a program that prompts the...Ch. 4 - Prob. 14PECh. 4 - (Phone key pads) The international standard...Ch. 4 - Prob. 16PECh. 4 - Prob. 17PECh. 4 - Prob. 18PECh. 4 - (Order three cities) Write a program that prompts...Ch. 4 - Prob. 20PECh. 4 - (Student major and status) Write a program that...Ch. 4 - Prob. 22PECh. 4 - (Check SSN) Write a program that prompts the user...
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Literals in Java Programming; Author: Sudhakar Atchala;https://www.youtube.com/watch?v=PuEU4S4B7JQ;License: Standard YouTube License, CC-BY
Type of literals in Python | Python Tutorial -6; Author: Lovejot Bhardwaj;https://www.youtube.com/watch?v=bwer3E9hj8Q;License: Standard Youtube License