This C++ program that will initialize 6 arrays of attributes for 10 stores in main. Each array will contain the values for one distinct attribute from the assigned stores. Each array will have the type that best accommodate the kind of attribute being stored. Like assignment 1, at least one attribute will be a string, one an integer, and one a floating point. The types of the other three attributes are at the discretion of the student. After declaration and initialization, all that the program will do is to call, from main, the following functions:
1. printable to print all data in the arrays properly labeled and aligned.
2. sortData to sort all 6 arrays in parallel
3. printable again to print all sorted data.
These functions above are described as follows:
This function will receive the arrays that were defined in main and print a table containing the information contained within the array. Every row in the table will contain the information for the same store (10 rows) and every column will contain the information of the same attribute for all stores (6 columns with attributes). Print appropriate headers for the table and each column. Print an index number (from 1 to 10) in front of each row. All columns should be aligned.
This function will receive the arrays that were defined in main and sort them based on one of your integer attributes from lower to higher value. Remember that you are sorting 6 arrays based on one of them, so you need to keep track and move the data inside all arrays in parallel to produce a correct sort. Do not forget to add comments to the code. The .cpp file must have a head of comments indicating the name of the file, the name of the author, and a brief description of the program. Each function must have also have a head of comments indicating the name of the function and a brief description of what it does. All variable names must also be documented.
The post Directions This C++ program that will initialize 6 arrays of attributes for 10 stores in main. Each array will contain the values for one distinct… appeared first on nursing assignment tutor.
Writing quality papers is a TOP priority. One expert takes one order at a time.
The service package includes topic brainstorm, research, drafting, proofreading, plagiarism check, citation formatting, and revisions.
We appreciate how valuable your time is. Hence, we make sure all custom papers are 100% original and delivered within the agreed time frameRead more
Each paper is written from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
We see it as our duty to follow all instruction the client provides. If you feel the completed paper does not meet your exact requirements, we will revise the paper if you let us know about the problem within 14 business days from the date of delivery.Read more
Your email is safe, we use your personal data for legal purposes only and in accordance with personal data protection law. Your payment details are also secure, as we use only reliable payment systems.Read more
You can easily contact us with any question or issues you need to be addressed. Also, you have the opportunity to communicate directly with assigned writer, e-mail us, submit revision requests, chat with us online, or call our toll-free on our site. We are always available to our customers.Read more