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.2, Problem 13E

(a)

Program Plan Intro

Program plan:

  1. DeclarevariablesintNumberof type int.
  2. DeclarevariablesfracNumber of type double.

Program description:

The main purpose of the function is to accepts argument number and returnfractional part of the number.

(b)

Program Plan Intro

Program plan:

4. Declarevariablestest1and test2to test the function.

5.Use cout statement to print statement.

Program description:

To include the function written for (a) in a working program.

Blurred answer
Students have asked these similar questions
State whether each of the following is true or false. If false, explain why g) Definitions can appear anywhere in the body of a function.
How should I answer the following regarding the first main function?
Also test the function in main
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr