Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ The objective of this Exercise is to gain experience with fillng and printing a numeric array Design a program to process several sets

image text in transcribedIn C++

The objective of this Exercise is to gain experience with fillng and printing a numeric array Design a program to process several sets of data. For each data set, the program should read in the numbers, store them in an array, and then print the numbers twice: first in the order read in (first to last), then in reverse order (last to first) The program should be general enough to handle multiple sets of data of differing lengths. You will need an input value for the number of data sets to process. You can design for this with nested looping. You will need an input value for the size of each data set (i.e. the number of numbers in the data set) Using pseudocode for illustration, your program should do the following: Request the user to supply how many data sets to input - for example, call this nsets For nsets iterations Request the user to supply how many numbers are in this data set - for example call this ncount For ncount iterations For ncount iterations For ncount iterations Input the data set values Print the data set values in order read in Print the data set values in reverse order Dimension an array to hold at least 50 elements. You only need one array, and will reuse that array for reading each set of data. For simplicity, you may use an integer array You may use screen or file as your input source. Use good formatting, and appropriate labeling. Submit your program using two sets of data: 024 68 10 1197531 and 0 1234 Here are portions of sample output - your program should contain both of these outputs as well as other pertinent information in one window The data input for this set is: 12 02 4 68 10 1197531 Specified data set size is 12 Data set in order entered 0 2 4 6 8 1 11 97 5 3 1 Data set in reverse order 1 3 5 9 11 1 8 6 4 2 The data input for this set is: 50 1234 Specified data set size is 5 Data set in order entered Data set in reverse order 4 3 2 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago