Write a program which has a class named Student. The class should have appropriate data members to store the enrollment number, name and email of a student.
Write a program which has a class named Student. The class should have appropriate data members to store the enrollment number, name and email of a student.
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 9PE
Related questions
Question
Write a program which has a class named Student. The class should have appropriate data members to store the enrollment number, name and email of a student.
Write an appropriate function for taking the basic information like enrollment number, name and email from user. In addition, write another function to append the data to a text file on hard disk. Furthermore, there should be a function which displays the content of the file on console.
In the main function create objects of the above class and call the appropriate functions to add information of a student, store it in a file and display on the console.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
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
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr