Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw flowchart for these code ? #include #include #include #include #include //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** class student { int rollno; char name[50];
Draw flowchart for these code ? #include#include #include #include #include //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** class student { int rollno; char name[50]; int p_marks,c_marks,m_marks,e_marks,cs_marks; float per; char grade; int std; void calculate() { per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0; if(per>=60) grade='A'; else if(per>=50 && per=33 && per>rollno; cout>p_marks; cout>c_marks; cout>m_marks; cout>e_marks; cout>cs_marks; calculate(); } void showdata() { cout>no; fp.open("student.dat",ios::in|ios::out); while(fp.read((char*)&st,sizeof(student)) && found==0) { if(st.retrollno()==no) { st.showdata(); cout>no; fp.open("student.dat",ios::in|ios::out); fstream fp2; fp2.open("Temp.dat",ios::out); fp.seekg(0,ios::beg); while(fp.read((char*)&st,sizeof(student))) { if(st.retrollno()!=no) { fp2.write((char*)&st,sizeof(student)); } } fp2.close(); fp.close(); remove("student.dat"); rename("Temp.dat","student.dat"); cout>ans; switch(ans) { case 1 : class_result();break; case 2 : { do{ clrscr(); char ans; cout>rno; display_sp(rno); cout>ans; }while(ans=='y'||ans=='Y'); break; } case 3: break; default: cout>num; display_sp(num); break; case '4': modify_student();break; case '5': delete_student();break; case '6': break; default:cout Draw flowchart for these code ?
example :
Start Declare variables a, b, c, D x1, x2, rp and ip Calculate discriminant, DD-4ac True False D207 11+ (-b+D)/2a r2-(-b-D)/2a ipe-b/2a rp-V-D)/2a x1 -rp+jip x1-rp-j ip Display r1 and r2 Stop
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