C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
Question
Book Icon
Chapter 6.1, Problem 2E

(a)

Program Plan Intro

To write the definition of a function named check (). This function has three parameters. The first parameter is of integer type, and the second and the third parameter is of double type. The body of the function will display the values of the data passed to the function when it’s called.

(b)

Program Plan Intro

Program Plan: 

  1. parameter1,parameter2,andparameter3variables are used in the program.
  2. check () function is include in the program to display the data.

Program Description: The main purpose of the program is to include the function named check () in the program. Call the function from the main () function. Test the function named check () by passing the values.

Blurred answer
Students have asked these similar questions
(Coin Tossing) Write a program that simulates coin tossing. For each toss of the coin theprogram should print Heads or Tails. Let the program toss the coin 100 times, and count the number of times each side of the coin appears. Print the results. The program should call a separate function flip that takes no arguments and returns 0 for tails and 1 for heads. [Note: If the programrealistically simulates the coin tossing, then each side of the coin should appear approximately halfthe time for a total of approximately 50 heads and 50 tails.]
(use Python)Define a function named get_user_number which has no parameters. When called, it gets a number between 1 and 100 (both inclusive) from the user and returns this value.  Any other entries by the user are ignored and another value must be entered until they enter a valid number in this range. You may assume that the user types a valid number. For example: Test Input Result print(get_user_number()) -100 0 67 67
(C PROGRAMMING ONLY!) 6. Teaching the Dog To Sitby CodeChum Admin Ever since I was a kid, I've always wanted to see a dog sit because it's so cute ?   Let's create a function that lets a dog sit!   Instructions: In the code editor, you are provided with the definition of a struct Dog. This struct needs an integer value for its age. Furthermore, in the main, a Dog is already created for you and is passed to a call to a function, sit().Your task is to declare and define the function sit() which has the following details:Return type - voidName - sitParameters - 1 DogDescription - prints the message, "Arf arf! My age is <AGE_OF_DOG> and I know how to sit!"Input 1. The age of the Dog Output Enter age of Dog: 3Arf arf! My age is 3 and I know how to sit!
Knowledge Booster
Background pattern image
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