Answer to Question #268319 in Electrical Engineering for Emmy

Question #268319

The person’s data provided in the text file contains the following information: First Name (string), Last Name (string), Telephone (string), email (string). The program should read the data file at the start containing Persons data, store the data in the BST (binary search tree) and then present the following menu: Find and show person’s data given its email. Append new Person entered by user. Delete the data of a Person given its email. Show the data of all Persons. Exit Upon exit, overwrite the provided text file with the current data of the link list, so that the text file has the updated data

Expert's answer
#include <iostream>
using namespace std;
struct student
int Roll_no;
char First_name[10];
char Last_name[10];
float CGPA;
string Email_id;
string Ph_no;
int main()
student s;
int count(100);
cout << "Enter Information: " << endl;
cout << "Enter Roll_no: ";
cin >> s.Roll_no;
cout << "Enter First_name: ";
cin >> s.First_name;
cout << "Enter Last_name: ";
cin >> s.Last_name;
cout << "Enter CGPA: ";
cin >> s.CGPA;
cout << "Enter Email_id: ";
cin >> s.Email_id;
cout << "Enter Ph_no: ";
cin >> s.Ph_no;
return 0;
Enter Information:
Enter First_name: Renuka
Enter Last_name: Devi
Enter CGPA: 8.5
Enter Email_id: renukavasudevan3116
Enter Ph_no: 8220630682

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be the first!

Leave a comment

New on Blog