Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in C++ 4. Writting a list of names Write a program that will open (create) a new file named students.txt, and will do this: a)
in C++
4. Writting a list of names Write a program that will open (create) a new file named "students.txt", and will do this: a) Ask to the user how many students will be registered. b) Make a loop for all students in which the program will: - Ask for the name of the students (can have spaces). - Ask for the age or the student. - Write in the file a line with the age, a space, and the full name. 5. Reading the list of names Write a program that will open, for reading the file of the previous problem. The program will use a loop for reading the file and displaying in the screen lines with the name of each student and it's age, in aligned columns Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started