Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you please help me with this programming assignment in C++? The programming assignment for Chapter 8 is designed to challenge your understanding of arrays,

Can you please help me with this programming assignment in C++?
image text in transcribed
The programming assignment for Chapter 8 is designed to challenge your understanding of arrays, repetition, and selection. Your program should: 1. Introduce the program to the user. 2. Obtain 2 file names from the user. One contains the names of several simple geometric shapes. 3. Read the shape name file into an array of shape names. 4. In the second file, each line contains two floating point numbers associated with each shape (each line corresponds to the names in the other file): area and perimeter. These numbers are to be read into a multidimensional array. 5. Your program should create three different output files: Shapes.dat, Areas.dat, and Perimeter.dat. The data in each of these output files should be presented in a table of aligned columns. The first column is shape name, the second is area and the third is perimeter. a. Shapes.dat should contain the data sorted with shape names in alphabetical order (the associated data should appear on the same line as the shape name). b. Areas.dat should contain the same data, but sorted from the smallest area to the largest. c. Perimeter.dat should contain the same data, but sorted from the smallest perimeter to the largest. Remember to arrange the data in the appropriate order

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago