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…

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 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:

printTable function

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.

sortData function

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.

 

“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

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.


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… was first posted on October 9, 2020 at 11:19 pm.
©2019 "Essay Lords | Bringing Excellence to students world wide". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at support@essaylords.us

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic Guarantees
  • Free title page and bibliography
  • Free unlimited revisions
  • Plagiarism-free papers
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Progressive delivery
  • Plagiarism report
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double or single line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

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.

Money-back guarantee

We appreciate how valuable your time is. Hence, we make sure all custom papers are 100% original and delivered within the agreed time frame

Read more

Zero-plagiarism guarantee

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

Free-revision policy

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

Privacy policy

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

Fair-cooperation guarantee

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

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
-->