Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please fix this program using C++, I'm tryin to write a program that read data from input file (data1.txt), store them as 2 different arrays,

Please fix this program using C++, I'm tryin to write a program that read data from input file (data1.txt), store them as 2 different arrays, and print out each element of arrays.

Data1.txt

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

100 80 60 40 20

Here is my code

Thanks

image text in transcribed

image text in transcribed

Quick Launch (Ctrl+Q) Programi (Debugging)-Microsoft Visual Studio Sign in File Edit View Project Build Debug Team Iools Test R Tools Analyze Window Help -Debug E | Lifecycle Events , Thread: [976] Main Thread Process: [7892] Program1.exe Header.cpp Header.h Source.cpp main0 Program 1 - (Global Scope) 2 3 4 #include #include > temp) arr [i++] temp ; = size = 1; for (i- e; i

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: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago