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
icon
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
 
-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.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 5 images

Blurred answer
Knowledge Booster
Array
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning