Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ Vertical Additive Symmetric Matrix Example Run: Given the following in the in the file: 2 3 12 25 45 56 98 34.5 34

image text in transcribedimage text in transcribed

in c++

Vertical Additive Symmetric Matrix Example Run: Given the following in the in the file: 2 3 12 25 45 56 98 34.5 34 1.4 1.6 7.8 7 4.6 6.65 1.45 -2 1102 Input: 12.000 56.000 Sums : 68.000 25.000 98.000 45.000 34.500 123.000 79.500 Vertical additive symmetry : No Sorted: 12.000 34.500 25.000 56.000 45.000 98.000 Press any key to continue Input: 1.400 4.600 1.000 1.600 6.650 1.000 7.800 1.450 0.000 7.000 -2.000 2.000 Sums: 7.000 9.250 9.250 7.000 Vertical additive symmetry: Yes Sorted: 1.400 -2.000 0.000 1.600 1.450 1.000 7.000 4.600 1.000 7.800 6.650 2.000 Press any key to continue ... Vertical Additive Symmetric Matrix Matrixes A Matrix is a 2-dimensional array represented as a row x column data structure. Vertical Additive Symmetric Matrix A matrix of numbers is defined to exhibit vertical additive symmetry if the sum of the numbers in the columns of the matrix exhibits vertical symmetry. In a in a list with an odd number of values, the middle column is considered symmetric with itself. Your program must read a file of candidate matrixes that are specified in the file the following way: The first file row contains a 2 space delimited numbers for rows and columns in the matrix that follows. . The matrix that follows consists of numbers in the form of multiple lines of space delimited numbers. In this project, no valid input should have more than 20 rows and columns. The file name is to be matrixes.txt. The file must contain at least 10 candidate matrixes. 6 of the matrixes must be valid and 4 must invalid. You are only responsible for checking the following regarding the input file: If the file open fails Correctly detecting the end of the file o The program should operate correctly even if there are blanks at the end of the file. The program does not have to check for data or fomat errors in the file. The program must: Process each matrix one at a time All data displays can assume that each matrix entry is made up at most with 5 integer places and up to 2 fractional places All data displays must be in a in a well formatted tabular style using spaces Display the inputted matrix Display a data list of the column vertical additive sums Display the sorted matrix rows Display cach row of the matrix in ascending order, one row per line of output Display a message that states whether this matrix has vertical additive symmetry Display a message that pauses the screen and states to enter a key to continue

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions