Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Copy of your C++ program with a heading comment (with proper spacing and indentation). You must use an array. This is file using assignment. If

Copy of your C++ program with a heading comment (with proper spacing and indentation). You must use an array. This is file using assignment. If you do not read / write to files, you will not receive ANY credit. Copy of three screenshots. Use your 8 student ID as 8 numbers to be stored in the input file. Screenshot 1: The screenshot of your program execution. Screenshot 2: The screenshot of your input file. Screenshot 3: The screenshot of your output file.

ID for this assignment: 20311758 Purpose of the program : Read and write information to files. Section 1 : Receive input file info. and open the input file. Section 2 : Receive output file info. and open the output file. Section 3 : Read 8 digits numbers from input file and store them in an array. Section 4 : Show the numbers to the screen and write to the output file. Section 5 : Show the index values where user specified number is stored. Section 6 : Write the same information as section 5 to the output file. */ #include #include #include using namespace std; int main() { // Write your code here. return 0; } // main

image text in transcribed

image text in transcribed

Input file example: inpu... File Edit Format View Help 0 0 4 Output file example: output09.txt-Notepad File Edit Format View Help Index 0 2 Index 1 0 Index 2 = 0 Index 3 = Index 4-6 Index 5 = 4 Index 6-5 Index 7-5 Please enter an index (07) for the number you wish to retrieve : 3 The number stored in index 3 is!5 Please enter a stored value 0 0 is stored at index 1 0 is stored at index 2

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions