Topics: Files, Pointers, Functions and Arrays Task 1 Create a C++ project called PntIDNumbers. 1.1 Declare an array called arrIDs that will be able to hold 200 elements. Declare a pointer for the array. 1.2 Open Notepad and create a text file called idnumbers.txt. Make sure that the text file is saved in the same folder as the project. O idnumbers - Notepad File Edit Format View Help 7803045678087 8904050876092 9002017896054 _9408072345087 8703083456098 7812120867087 0108068675087 1012239687087 es01090675e86 _9911220768082 1.3 Write a method called readFromFile that will receive a pointer to the address of the first element of the arrIDs array. Read a number of idnumbers from a text file called 1 idnumbers.txt into the array. Display a message indicating that data is being read from the file. Return the number of elements saved in the arrIDs array. о. 1 Example: Reading from file... 1.3 Write a function called displayIDnumbers that will receive the pointer of the first element of the arrIDs array and the number of elements in the array. Display the list of IDnumbers. Example: List of IDnumbers 7803045678087 _8904050876092 _9002017896054 9408072345087 8703083456098 _7812120867887 0108068675087 _1012239687087 _0801090675e86 _99112207680e82 1.4 Write a function called displayYearsBorn that will receive the pointer of the first element of the arrIDs array and the number of elements in the array. Write code to display the year that each person was born. NOTE: No. 2 • No square brackets are allowed to be Used in the solution
Topics: Files, Pointers, Functions and Arrays Task 1 Create a C++ project called PntIDNumbers. 1.1 Declare an array called arrIDs that will be able to hold 200 elements. Declare a pointer for the array. 1.2 Open Notepad and create a text file called idnumbers.txt. Make sure that the text file is saved in the same folder as the project. O idnumbers - Notepad File Edit Format View Help 7803045678087 8904050876092 9002017896054 _9408072345087 8703083456098 7812120867087 0108068675087 1012239687087 es01090675e86 _9911220768082 1.3 Write a method called readFromFile that will receive a pointer to the address of the first element of the arrIDs array. Read a number of idnumbers from a text file called 1 idnumbers.txt into the array. Display a message indicating that data is being read from the file. Return the number of elements saved in the arrIDs array. о. 1 Example: Reading from file... 1.3 Write a function called displayIDnumbers that will receive the pointer of the first element of the arrIDs array and the number of elements in the array. Display the list of IDnumbers. Example: List of IDnumbers 7803045678087 _8904050876092 _9002017896054 9408072345087 8703083456098 _7812120867887 0108068675087 _1012239687087 _0801090675e86 _99112207680e82 1.4 Write a function called displayYearsBorn that will receive the pointer of the first element of the arrIDs array and the number of elements in the array. Write code to display the year that each person was born. NOTE: No. 2 • No square brackets are allowed to be Used in the solution
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Help with C++ programming
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education