Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++... o V Write a program that ask the user Name of the file with the matrix test.txt a file that contains a matrix

Using C++...

image text in transcribed

o V Write a program that ask the user Name of the file with the matrix test.txt a file that contains a matrix of characters (-or+) The first two lines of the file will be the size of the rows and columns and a length of a sequence Your program should store the values of the matrix of a vectors of char vectors. Your program should then find a continuous path thought the matrix How long of a path are you looking for? The path should be sum to zero 8 + will add one to the total V - will subtract one from the total V The path should be the length the user inputted Your program should only move left (col -1), right(col +1), up (row -1) and down (row+1). vocstartsoft:-/environment/Assignment3 $ | Your path can only use a position once If there is such a path in the matrix, that path should be printed to console, using 'V' for down, 'N"| for up,'> for right, ' V o How long of a path are you looking for? 7 No path found vocstartsoft:-/environment/Assignments $ ma Name of the file with the matrix test3.txt How long of a path are you looking for? 4 vocstartsoft:-/environment/Assignment3 $ o V Write a program that ask the user Name of the file with the matrix test.txt a file that contains a matrix of characters (-or+) The first two lines of the file will be the size of the rows and columns and a length of a sequence Your program should store the values of the matrix of a vectors of char vectors. Your program should then find a continuous path thought the matrix How long of a path are you looking for? The path should be sum to zero 8 + will add one to the total V - will subtract one from the total V The path should be the length the user inputted Your program should only move left (col -1), right(col +1), up (row -1) and down (row+1). vocstartsoft:-/environment/Assignment3 $ | Your path can only use a position once If there is such a path in the matrix, that path should be printed to console, using 'V' for down, 'N"| for up,'> for right, ' V o How long of a path are you looking for? 7 No path found vocstartsoft:-/environment/Assignments $ ma Name of the file with the matrix test3.txt How long of a path are you looking for? 4 vocstartsoft:-/environment/Assignment3 $

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Describe the basic modules of an ERP system.

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago