Question: NEEDED URGENTLY WITHIN 15min Write a C++ program which takes input from user of two (2) arrays of 5 integers each, named num1 and num2.

NEEDED URGENTLY WITHIN 15min NEEDED URGENTLY WITHIN 15min Write a C++ program which takes input from

Write a C++ program which takes input from user of two (2) arrays of 5 integers each, named num1 and num2. Meanwhile, num3 is an array with ten (10) integer numbers. The program should put into num3 the appending elements of num1 to num2, which is the first five (5) integers of num come from num2 the latter five (5) integers come from num1. Then, the pro_ram should display the contents of num3, the average of ten numbers, the range of values and the number of odd numbers in num3. The range of values in array is the difference between the largest and smallest values. Figure 1 illustrates an example run of the program. Note: The bold texts in the example run indicate input from the user. Enter table numl: Please enter an integer: 10 Please enter an integer: 15 Please enter an integer: 19 Please enter an integer: 21 Please enter an integer: 28 Enter table num2: Please enter an integer: 7 Please enter an integer: 15 Please enter an integer: 18 Please enter an integer: 25 Please enter an integer: 40 OUTPUT: Table num 3: 7 15 18 25 40 10 15 19 21 28 The average of ten numbers in num3 = 19.8 The range of values in num3 = 33 The number of odd numbers in num3 = 6 Figure 1: Example run The assessment criteria for the program is as shown in the following table: Item Criteria A 1) The program is able to run and display correct output ii) Using an appropriate structure for the program (e.g. all required header files are included and the function main is properly written) B Using array concept in the program Total Marks 2 2 26 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!