Answered step by step
Verified Expert Solution
Link Copied!

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++
image text in transcribed
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

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions