Design a complete C++ program that have features to manipulate the numeric values in arrays data structure using the user-defined functions for each smallest unit of task. Program have the services to initialize the array with random values, input values by user to fill the array, insert a value in specific location, modify the existing item's value, remove item from array, show all items, show specific item, locate index of item in array, locate item and it's index, rearrange items in ascending order, rearrange items in descending order, Find minimum value, find maximum value, find average value, calculate sum and product of values, and display menu options, selection of option from menu. It is recommended that all user defined functions for above tasks, should be in separate header file, and that file used by driver program to manage all features. On execution, driver part of program show the menu with all features mentioned above and show prompt to select the service choice, on valid selection perform that service and display menu options again to user, and this process should be repeated until the exit option is not selected. However, on invalid selection of menu choice, program show error message "Sorry, Invalid option, select appropriate option from menu." and again show the menu to user for appropriate services. NOTE: All these features/functionalities are leamed in various learmt lectures. Hence, need to assemble different parts of functionalities codes in complete program. e.g

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
15. Calculate sum of values,
16. Calculate product of values,
17. Exit
Select an Option [1.17): 20J
Error: "Sorry, Invalid option, select appropriate option from menu."
Menu: Array manipulation Options
1. Initialize the array with random values,
2. Input values by user to fill the array,
3. Insert a value in specific location,
4. Modify the existing item's value,
5. Remove item from array,
6. Show all items,
7. Show specific item,
8. Locate index of item in array,
9. Locate item and it's index,
10. Rearrange items in ascending order,
11. Rearrange items in descending order,
12. Find minimum value,
13. Find maximum value,
14. Find average value,
15. Calculate sum of values,
16. Calculate product of values,
17. Exit
Select an Option [1.17):_1J
Array is filled with 2-digit random values.
Menu: Array manipulation Options
1. Initialize the array with random values,
2. Input values by user to fill the array,
3. Insert a value in specific location,
4. Modify the existing item's value,
5. Remove item from array,
6. Show all items,
7. Show specific item,
8. Locate index of item in array,
9. Locate item and it's index,
10. Rearrange items in ascending order,
11. Rearrange items in descending order,
12. Find minimum value,
13. Find maximum value,
14. Find average value,
15. Calculate sum of values,
16. Calculate product of values,
17. Exit
Select an Option [1.17]: _6J
All members: 10, 98, 65, 43, 50, 70, 83, 55, 90
And so on, do needful for each service, stop execution when option 17: Exit is selected.
Transcribed Image Text:15. Calculate sum of values, 16. Calculate product of values, 17. Exit Select an Option [1.17): 20J Error: "Sorry, Invalid option, select appropriate option from menu." Menu: Array manipulation Options 1. Initialize the array with random values, 2. Input values by user to fill the array, 3. Insert a value in specific location, 4. Modify the existing item's value, 5. Remove item from array, 6. Show all items, 7. Show specific item, 8. Locate index of item in array, 9. Locate item and it's index, 10. Rearrange items in ascending order, 11. Rearrange items in descending order, 12. Find minimum value, 13. Find maximum value, 14. Find average value, 15. Calculate sum of values, 16. Calculate product of values, 17. Exit Select an Option [1.17):_1J Array is filled with 2-digit random values. Menu: Array manipulation Options 1. Initialize the array with random values, 2. Input values by user to fill the array, 3. Insert a value in specific location, 4. Modify the existing item's value, 5. Remove item from array, 6. Show all items, 7. Show specific item, 8. Locate index of item in array, 9. Locate item and it's index, 10. Rearrange items in ascending order, 11. Rearrange items in descending order, 12. Find minimum value, 13. Find maximum value, 14. Find average value, 15. Calculate sum of values, 16. Calculate product of values, 17. Exit Select an Option [1.17]: _6J All members: 10, 98, 65, 43, 50, 70, 83, 55, 90 And so on, do needful for each service, stop execution when option 17: Exit is selected.
4. Generate the Zipped file of assignment should be submitted on CMS by due date only.
Programming problems
Design a complete C++ program that have features to manipulate the numeric values in arrays data
structure using the user-defined functions for each smallest unit of task. Program have the services to
initialize the array with random values, input values by user to fill the array, insert a value in specific
location, modify the existing item's value, remove item from array, show all items, show specific item,
locate index of item in array, locate item and itť's index, rearrange items in ascending order, rearrange
items in descending order, Find minimum value, find maximum value, find average value, calculate sum
and product of values, and display menu options, selection of option from menu.
It is recommended that all user defined functions for above tasks, should be in separate header file, and
that file used by driver program to manage all features.
On execution, driver part of program show the menu with all features mentioned above and show
prompt to select the service choice, on valid selection perform that service and display menu options
again to user, and this process should be repeated until the exit option is not selected. However, on
invalid selection of menu choice, program show error message "Sorry, Invalid option, select appropriate
option from menu.." and again show the menu to user for appropriate services.
NOTE: All these features/functionalities are leamed in various leamt lectures. Hence, need to assemble
different parts of functionalities codes in complete program.
e.g
Menu: Array manipulation Options
1. Initialize the array with random values,
2. Input values by user to fill the array,
3. Insert a value in specific location,
4. Modify the existing item's value,
5. Remove item from array,
6. Show all items,
7. Show specific item,
8. Locate index of item in array,
9. Locate item and it's index,
10. Rearrange items in ascending order,
11. Rearrange items in descending order,
12. Find minimum value,
13. Find maximum value,
14. Find average value,
15. Calculate sum of values,
16. Calculate product of values,
17. Exit
Select an Option [1.17): 20J
Error: "Sorry, Invalid option, select appropriate option from menu."
Menu: Array manipulation Options
1. Initialize the array with random values,
2. Input values by user to fill the array,
3. Insert a value in specific location,
4. Modify the existing item's value,
5. Remove item from array,
6. Show all items,
7. Show specific item,
8. Locate index of item in array,
9. Locate item and it's index,
10. Rearrange items in ascending order,
11. Rearrange items in descending order,
12. Find minimum value,
13. Find maximum value,
14. Find average value,
15. Calculate sum of values,
16. Calculate product of values,
17. Exit
Transcribed Image Text:4. Generate the Zipped file of assignment should be submitted on CMS by due date only. Programming problems Design a complete C++ program that have features to manipulate the numeric values in arrays data structure using the user-defined functions for each smallest unit of task. Program have the services to initialize the array with random values, input values by user to fill the array, insert a value in specific location, modify the existing item's value, remove item from array, show all items, show specific item, locate index of item in array, locate item and itť's index, rearrange items in ascending order, rearrange items in descending order, Find minimum value, find maximum value, find average value, calculate sum and product of values, and display menu options, selection of option from menu. It is recommended that all user defined functions for above tasks, should be in separate header file, and that file used by driver program to manage all features. On execution, driver part of program show the menu with all features mentioned above and show prompt to select the service choice, on valid selection perform that service and display menu options again to user, and this process should be repeated until the exit option is not selected. However, on invalid selection of menu choice, program show error message "Sorry, Invalid option, select appropriate option from menu.." and again show the menu to user for appropriate services. NOTE: All these features/functionalities are leamed in various leamt lectures. Hence, need to assemble different parts of functionalities codes in complete program. e.g Menu: Array manipulation Options 1. Initialize the array with random values, 2. Input values by user to fill the array, 3. Insert a value in specific location, 4. Modify the existing item's value, 5. Remove item from array, 6. Show all items, 7. Show specific item, 8. Locate index of item in array, 9. Locate item and it's index, 10. Rearrange items in ascending order, 11. Rearrange items in descending order, 12. Find minimum value, 13. Find maximum value, 14. Find average value, 15. Calculate sum of values, 16. Calculate product of values, 17. Exit Select an Option [1.17): 20J Error: "Sorry, Invalid option, select appropriate option from menu." Menu: Array manipulation Options 1. Initialize the array with random values, 2. Input values by user to fill the array, 3. Insert a value in specific location, 4. Modify the existing item's value, 5. Remove item from array, 6. Show all items, 7. Show specific item, 8. Locate index of item in array, 9. Locate item and it's index, 10. Rearrange items in ascending order, 11. Rearrange items in descending order, 12. Find minimum value, 13. Find maximum value, 14. Find average value, 15. Calculate sum of values, 16. Calculate product of values, 17. Exit
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Reference Types in Function
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
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education