Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language is C++ I'm having trouble making my code meet these requirements, could you show me what to change and explain what is going on

Language is C++

I'm having trouble making my code meet these requirements, could you show me what to change and explain what is going on at each step.

Please use my code as a base and make any modifications needed.

image text in transcribed

MY CODE:

#include #include #include using namespace std;

int ** theTable;

int main() {

int numRows = 10; int numCols = 20;

int** theTable = new int* [numRows];

string fileName; cout

ifstream fin; fin.open(fileName); if (!fin) { cout

for (int i = 0; i

for (int r = 0; r

Now write a program that performs the following tasks: - Prompt the user for a file name - Accept that file name - Open the file for input (and exit if the file is not found) - Read the data in the file - Display the data as a table, in nice neat rows and columns Everything you need to know is here and in the previous dem

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

an element of formality in the workplace between different levels;

Answered: 1 week ago