Assignment 06
Assignment 06
2. Write a program to append Product Type and Product Weight in a file “Product.txt”.
3. Write a program to create a file “Patient.txt” and enter Patient ID, Patient Name,
Disease Name and City in a file. Now read patient details and display all the details
on a terminal.
4. Write a program to append Doctor Name and Doctor Speciality in “Patient.txt” file
and display the data on a console.
5. Create a class “Mobile” with attributes: brand, price, color. Use getData() values of
these attributes and store object in file. Write function displayData() to display object
from file.