Create a menu function "menuFunction" that has to contain the following list 1) print the summantion 2) print the remainder of the division 3) exit -Create a set of functions: 1) Create a function "sum": that add the values of an array to another, where the results will be stored in a third array. For exmple: a[2] = {1,2} b[2] = {3,4} x[2] = {4,6}, where x[0] = a[0] + b[0] and x[1] = a[1] + b[1] 2) Create function "remDiv" that finds the remainder of the division of any two array, where the results will be stored in a third array. For Example: a[2] = {1,2} b[2] = {3,4} x[2] = {1,2} where x[0] = a[0] % b[0] and x[1] = a[1] % b[1] NOTE: The values and the size of the arrays have to be entered by the user.
Create a menu function "menuFunction" that has to contain the following list 1) print the summantion 2) print the remainder of the division 3) exit -Create a set of functions: 1) Create a function "sum": that add the values of an array to another, where the results will be stored in a third array. For exmple: a[2] = {1,2} b[2] = {3,4} x[2] = {4,6}, where x[0] = a[0] + b[0] and x[1] = a[1] + b[1] 2) Create function "remDiv" that finds the remainder of the division of any two array, where the results will be stored in a third array. For Example: a[2] = {1,2} b[2] = {3,4} x[2] = {1,2} where x[0] = a[0] % b[0] and x[1] = a[1] % b[1] NOTE: The values and the size of the arrays have to be entered by the user.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
Related questions
Question
Use the C++ programming languge for the following:
Create a menu function "menuFunction" that has to contain the following list
1) print the summantion
2) print the remainder of the division
3) exit
2) print the remainder of the division
3) exit
-Create a set of functions:
1) Create a function "sum": that add the values of an array to another, where the results will be stored in a third array.
1) Create a function "sum": that add the values of an array to another, where the results will be stored in a third array.
For exmple:
a[2] = {1,2}
b[2] = {3,4}
x[2] = {4,6}, where x[0] = a[0] + b[0]
and
x[1] = a[1] + b[1]
a[2] = {1,2}
b[2] = {3,4}
x[2] = {4,6}, where x[0] = a[0] + b[0]
and
x[1] = a[1] + b[1]
2) Create function "remDiv" that finds the remainder of the division of any two array, where the results will be stored in a third array.
For Example:
a[2] = {1,2}
b[2] = {3,4}
x[2] = {1,2}
where x[0] = a[0] % b[0] and x[1] = a[1] % b[1]
a[2] = {1,2}
b[2] = {3,4}
x[2] = {1,2}
where x[0] = a[0] % b[0] and x[1] = a[1] % b[1]
NOTE: The values and the size of the arrays have to be entered by the user.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 5 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning