0% found this document useful (0 votes)
26 views

Write A C++ Program To Merge Two Sorted Array Using Functions. Your Output Should Be Like This

The document contains instructions for two C++ programming assignments. Assignment 1 asks students to write a program to merge two sorted arrays using functions and print the merged array in ascending order. Assignment 2 asks students to write a program to find the maximum and minimum elements in an array by taking array size as input from the user and printing the maximum and minimum values found. Both assignments are due on December 1, 2018.

Uploaded by

Fariha Saeed
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Write A C++ Program To Merge Two Sorted Array Using Functions. Your Output Should Be Like This

The document contains instructions for two C++ programming assignments. Assignment 1 asks students to write a program to merge two sorted arrays using functions and print the merged array in ascending order. Assignment 2 asks students to write a program to find the maximum and minimum elements in an array by taking array size as input from the user and printing the maximum and minimum values found. Both assignments are due on December 1, 2018.

Uploaded by

Fariha Saeed
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment#3 Due Date: 12-1-2018

Q#1
Write a C++ program to merge two sorted array using functions. Your output
should be like this:

Input

Input first array elements: 1, 4, 6, 9, 15


Input second array elements: 2, 5, 8, 10

Output

Merged array in ascending order = 1, 2, 4, 5, 6, 8, 9, 10, 15

Q#2
Write a C++ Program to find maximum and minimum element in array. Your
output should be like this:

Enter size of the array: 10

Enter elements in the array: -10 10 0 20 -2 50 100 20 -1 10

Maximum element = 100

Minimum element = -10

You might also like