(implementation.cpp and main.cpp). User Defined Functions: Define the following functions. Write the function prototypes in header.h and definitions in implementation.cpp 1- Function overloading F.O: Remember to implement F.0 you have to chang of the number or type or order of parameter list in the function signature. AllinInterval: This function prints all numbers within an interval in desce starting from the last number lasting to the first of the interval decrementin value based on the type of arguments passed when calling the function. Hint: Two overloaded versions of the function should be written. The first version should take Three double arguments (First, Last and Incr The second version should take Three integer arguments (First, Last and I It's a good practice to print a different message for each version

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Project Creation:
Create a C++ empty Project that has one header file (header.h) and two source files
(implementation.cpp and main.cpp).
User Defined Functions:
Define the following functions. Write the function prototypes in header.h and the function
definitions in implementation.cpp
1- Function overloading F.O: Remember to implement F.O you have to change one or all
of the number or type or order of parameter list in the function signature.
AllinInterval: This function prints all numbers within an interval in descending order
starting from the last number lasting to the first of the interval decrementing by specified
value based on the type of arguments passed when calling the function.
Hint: Two overloaded versions of the function should be written.
The first version should take Three double arguments (First, Last and Increment)
The second version should take Three integer arguments (First, Last and Increment).
It's a good practice to print a different message for each version.
2- Default Arguments D.A: Remember to implement this Idea you have to write the default
values in the function prototype only.
CalculateEqu: This function calculates and returns the value of the equation
Y=7X + 2W+Z
Based on the user inserting the values of X, W and Z
So the function should take three double arguments (X, W and Z), and return the value
of Y as double. If one or all inputs is/are not passed, the function should consider them
1, 2 and 3 respectively.
3- Call by reference: Remember to implement this idea, the & operator only provided in the
Function prototype and definition only.
RectangleInfo: This function calculates and returns both the area and the circumference
of a Rectangle. The function should take two double argument (height and width )
Hint: to return more than one output, define them in the argument list preceded by &
operator.
4- printMenu: This function displays the following menu at the screen. The function
should return an integer value that counts the number of times this function is called so
far.
Main Menu
1- AllinInterval Integer version.
2- AllinInterval Double version.
3- CalculateEqu.
4- RectangleInfo.
5- Exit.
Spring 2021
Transcribed Image Text:Project Creation: Create a C++ empty Project that has one header file (header.h) and two source files (implementation.cpp and main.cpp). User Defined Functions: Define the following functions. Write the function prototypes in header.h and the function definitions in implementation.cpp 1- Function overloading F.O: Remember to implement F.O you have to change one or all of the number or type or order of parameter list in the function signature. AllinInterval: This function prints all numbers within an interval in descending order starting from the last number lasting to the first of the interval decrementing by specified value based on the type of arguments passed when calling the function. Hint: Two overloaded versions of the function should be written. The first version should take Three double arguments (First, Last and Increment) The second version should take Three integer arguments (First, Last and Increment). It's a good practice to print a different message for each version. 2- Default Arguments D.A: Remember to implement this Idea you have to write the default values in the function prototype only. CalculateEqu: This function calculates and returns the value of the equation Y=7X + 2W+Z Based on the user inserting the values of X, W and Z So the function should take three double arguments (X, W and Z), and return the value of Y as double. If one or all inputs is/are not passed, the function should consider them 1, 2 and 3 respectively. 3- Call by reference: Remember to implement this idea, the & operator only provided in the Function prototype and definition only. RectangleInfo: This function calculates and returns both the area and the circumference of a Rectangle. The function should take two double argument (height and width ) Hint: to return more than one output, define them in the argument list preceded by & operator. 4- printMenu: This function displays the following menu at the screen. The function should return an integer value that counts the number of times this function is called so far. Main Menu 1- AllinInterval Integer version. 2- AllinInterval Double version. 3- CalculateEqu. 4- RectangleInfo. 5- Exit. Spring 2021
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Functions
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education