
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
![Q1: Write a C++ program, using function, to find if the array's elements are
in order or not.
Q2: Write a C++ program, using function, to compute the number of zeros
in the array.
Q3: Write a C++ program, using function, to find the value of array C from
add array A and array B. Ci =Ali1+B
Q4: Write a C++ program, using function, to multiply the array elements by
2.
Q5: Write a C++ program, using function, to reads temperatures over the
30 days and calculate the average of them.
Q6: Write a C++ program, using function, to merge two arrays in one array.
Q7: Write C++ program, to read 3*4 2D-array, then find the summation of
each col.
Q8: Write C++ program, to replace each element in the second diameter
(diagonal) with zero.
Q9: Write C++ program, to replace the elements of the main diameter with
the elements of the second diameter.
Q10: Write C++ program, to find the summation of odd numbers in 20-array.
Q11: Write C++ program, to find (search) X value in 2D-array. and retum the
index of it's location.
Q12: Write C++ program, to convert ID-array that size (16] to 2D-array that
size of (4] [4).
Q13: Write C++ program, to read Af n, n] of character, then find array B
and array C. such that B contain only capital letters and C contain
only small letters.](https://content.bartleby.com/qna-images/question/d4140f5c-3812-43fc-9182-cdab04109be7/3b32b4f0-64e0-4722-8c18-8dbf7b488052/ffiwjpb_thumbnail.jpeg)
Transcribed Image Text:Q1: Write a C++ program, using function, to find if the array's elements are
in order or not.
Q2: Write a C++ program, using function, to compute the number of zeros
in the array.
Q3: Write a C++ program, using function, to find the value of array C from
add array A and array B. Ci =Ali1+B
Q4: Write a C++ program, using function, to multiply the array elements by
2.
Q5: Write a C++ program, using function, to reads temperatures over the
30 days and calculate the average of them.
Q6: Write a C++ program, using function, to merge two arrays in one array.
Q7: Write C++ program, to read 3*4 2D-array, then find the summation of
each col.
Q8: Write C++ program, to replace each element in the second diameter
(diagonal) with zero.
Q9: Write C++ program, to replace the elements of the main diameter with
the elements of the second diameter.
Q10: Write C++ program, to find the summation of odd numbers in 20-array.
Q11: Write C++ program, to find (search) X value in 2D-array. and retum the
index of it's location.
Q12: Write C++ program, to convert ID-array that size (16] to 2D-array that
size of (4] [4).
Q13: Write C++ program, to read Af n, n] of character, then find array B
and array C. such that B contain only capital letters and C contain
only small letters.
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 nowThis is a popular solution!
Step by stepSolved in 3 steps with 4 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.Similar questions
- attached is sample output needed to complete this C++ assignment. Function definitions needed with the //. please do not use 2d arrays either. Project Description The Lo Shu Magic Square is a grid with 3 rows and 3 columns shown below Write a program that simulates a magic square using 3 one dimensional parallel arrays of integer type. Each one the arrays corresponds to a row of the magic square. The program asks the user to enter the values of the magic square row by row and informs the user if the grid is a magic square or not. ----------------------------------------------------------------- the code template is as follows ---------------------------------------------- #include<iostream> using namespace std; // Global constants const int ROWS = 3; // The number of rows in the array const int COLS = 3; // The number of columns in the array const int MIN = 1; // The value of the smallest number const int MAX = 9; // The value of the largest number // Function…arrow_forwardWrite C++ code using one dimensional array and for loop to read 4 numbers using cin into an array of size 4. These numbers are 1, -1, 2, 3 After reading these numbers consecutively in the array , your program should provide: How many positive numbers are in the array? (30) What is the average of these positive numbers ? (30) Your results should be displayed using cout. c++ with comments Hint: const int N=4; int arr[N]; int i, count =0; double sum = 0, average=0;arrow_forwardFor C++: Write a program that uses two identical arrays of just eight integers. It should display the contents of the first array, then call a function to sort the array using an ascending order bubble sort modified to print out the array contents after each pass of the sort. Next, the program should display the contents of the the second array, then call a function to sort the array using an ascending order selection sort modified to print out the array contents after each pass of the sort.arrow_forward
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education