C++ How to Program (10th Edition)
C++ How to Program (10th Edition)
10th Edition
ISBN: 9780134448237
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
Question
Book Icon
Chapter E, Problem E.8E
Program Plan Intro

Program Plan:

  • Include the required header files.
  • Declare function prototype which is used in the program.
  • Define the “main()” function.
    • Declare the variable str to store the string value we get from keyboard.
    • Call the function PRINT to print the string value.
  • Function PRINT(string)
    • function PRINT has one parameter of string type which takes value from calling function.
    • it prints the string value passed by calling function
    • function PRINT has void return type because it does not return any value to the calling function it just print the value.

Blurred answer
Students have asked these similar questions
IN PYTHON   Write a script which uses the input function to read a string, an int, and a float, as input from keyboard prompts the user to enter his/her name as string, his/her age as integer value, and his/her income as a decimal. For example your output will display as:         Mark is 30 years old and his income is 2000     Please show code.
Count the vowels in a string Create a function in Python that accepts a single word and returns the number of vowels in that word. In this function, only a, e, i, o, and u will be counted as vowels - not y.
python Please Write a function that finds the number of occurrences of a specified character in a string using the following header: def count(str, c) ex: count("welcome", "e") returns 2.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning