ASsignment 3 1. Pass two one dimensional array as an arguments to a function and compare the two arrays and see of both the arrays are equal or not? 2. Define two arrays, one with the name of previous marks and one with the name of current marks. Generate the marks with the rand() function and with a check that it should not generate a number greater than 100 and less than 20 for each array. Each value generated by rand() function should be stored in the respective arrays. After storing the randomly generated marks in current array, add all the marks in previous array and in the current array separately. Take an average of previous array marks and take an average of current array marks and find that current marks are better than previous marks or not. Note: Pass all the values as arguments to the function named Comparison.
ASsignment 3 1. Pass two one dimensional array as an arguments to a function and compare the two arrays and see of both the arrays are equal or not? 2. Define two arrays, one with the name of previous marks and one with the name of current marks. Generate the marks with the rand() function and with a check that it should not generate a number greater than 100 and less than 20 for each array. Each value generated by rand() function should be stored in the respective arrays. After storing the randomly generated marks in current array, add all the marks in previous array and in the current array separately. Take an average of previous array marks and take an average of current array marks and find that current marks are better than previous marks or not. Note: Pass all the values as arguments to the function named Comparison.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 28SA
Related questions
Question
100%
Both are different questions and write it in C++.
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 5 steps with 2 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++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning