Answered step by step
Verified Expert Solution
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++?
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started