CHAPTER-13

STRUCTURES
SHORT ANSWER QUESTIONS

1.

Discuss the similarity and differences of a structure as compared to an array and a class.

Ans.

Similarities
array and Structure
 Both structures and arrays are used to hold more
than 1 elements under single name.
Difference
array
 Arrays bring together a group of items of the same
data type

structure
 Structures bring together a group of related data
items of any data type.

Similarities
class and structure

2.
Ans.

3.
Ans.

Both Class and Structures can have methods, variables
and objects.
Both can have constructor.
Both are user defined types.

Difference
class
structure
 Declared with the keyword “class”
 Declared with the keyword “struct”
 By default, all members are “private” in a class
 By default, all members are “public” in a structure
Define a structure to store information about a fish. The structure should include the kind, the weight in grams, and
the length in inches. Declares variables of this structure type and discuss various methods of initializing them.
struct Fish_Info
{
char kind[50];
int gram;
int length;
};
Fish_Info fish;
first method of initializing
The structure elements of a structure can be initialized separately, using separate assignment statement.
fish.kind=”abc”;
fish.gram=300;
fish.length=5;
second method of initializing
The structure element of a structure can be initialized jointly, using the notation similar to array initialization.
Fish_Info fish = { “abc”, 300, 5);
Write definition for a structure EMPREC that stores information about an employee such as empno, name, address,
salary, and joining_date. The address member of EMPREC stores the information houseno, area, and city. The
joining_date member of EMPREC stores information day, month, and year.
struct date
{
int day;
int month;
int year;
};
struct addr
1

{
int houseno;
char area[31];
char city[31];

4.
Ans.

5.

Ans.

6.
Ans.

};
struct EMPREC
{
int empno;
char name[41];
addr address;
float salary;
date joining_date;
};
What is structure? Declare a structure in C++ with name, roll number and total marks as components.
A structure is a collection of variables having different data types.
The declaration as:
struct student
{
char name[20];
int roll_no,marks;
};
Rewrite the following program after removing the syntactical error(s), if any. Underline each correction.
#include<iostream.h>
int main( )
{ struct STUDENT
{ char stu_name[20];
char stu_sex;
int stu_age=17;
}student;
gets(stu_name);
gets(stu_sex);
return 0;
}
#include<iostream.h>
#include<stdio.h>
int main( )
{ struct STUDENT
{ char stu_name[20];
char stu_sex;
int stu_age;
//Initialization of variables inside a structure is not allowed.
}student;
gets(student.stu_name);
cin>>student.stu_sex;
//A single character cannot be read using gets
return 0;
}
What are Nested Structures? Give an example.
Nested structures are structures as member of another structure. For example,the date of birth is astructure within
the structure of a student as shown below. These types of structures are known as nested structures.

2

studno<< ”endl Total Fees: Rs. char memname[20]. course sc.”<< x.coufees. s1. s1.“ <<per2.per1.studno=100. cin>>per1.couno=200. course sc1. s1.Example: - 7. int x = s1. void main( ) { student s1.per2. 3 .sc. } The output of the above program is Student Number: 100 Total Fees: Rs. #include< iostream. cin>>memnumber. Underline each correction (if any).couno=123. s1. cin>>”Member Number: “. }. #include<iostream.membername. }. cout<<”Member Name: “.coufees + s1.coufees=5000.sc. int coufees. char memtype[]=”LIG”.h> structure Swimmingclub { int mem number. int main( ) { Swimmingclub per1.sc1.10000 Rewrite the corrected code for the following program.sc1. cin>>”Member Number.h> struct course { int couno. cout<< “endl Student Number: ”<< s1.memnumber. cin<<”Member Name” <<per2. struct student { int studno.memname. }. per2=per1. s1.sc.memtype = “HIG”.sc1. per1.coufees=5000.

st3. strcpy(per1. } ss1.c.memnumber. cin>>per1. cout<<”Member Name: “.z=st3. Ans.memnumber. ss1.“ <<per2.memtype.b. return 0. : ss3. } Identify and discuss the error(s) in the following code fragment: #include<iostream. char memtype[4].st2. per2=per1. cout>>”Member Number. } st1. int main( ) { Swimmingclub per1. }. char memname[20]. float b.ss2. } #include<iostream.z=st1.per2.memname. float y. char z. cin>>per1.h> #include<string.a.h> struct s1 { int a. return 0.h> struct Swimmingclub { int memnumber.x=st1.c. cout<<”Member Name” <<per2. cout>>”Member Number: “.memtype. 8. char c. cout<<”Member Number:”<<per2. int main() { struct s2{ int x. : } void func1() { ss2. ss3. // Read & Initialize structures ss2=ss1.memtype.cin<<”Member Number:”<<per2.memname. 4 .ss3.y=st2. “HIG”).

SC.x=st1. char c.c.a. float b. int main() { struct s2{ int x. 9. int region_code. school code. int current_year. region code. : } void func1() { ss2. current year (yy) and a serial number. : ss1=ss3. as we are using stone age compiler this may give compilation the error. float y. int school_code. category. // Read & Initialize structures ss2=ss1. char category[10].z=st1. and OBC.ss3. Marks in 5 subjects and registration number. ss1. }ss1. Ans.h> struct rege_num { int areacode.ss2. } The error points mentioned in this answer is depend on the compiler.h> #include<stdio. char z.st3. but the ss3 will show error in all complier because ss3 is not declare inside func1(). Write a code fragment to declare and read in values (from user) for an array ARR of size 10 whose elements consists of name. : ss3.c.h> struct s1 { int a. int serial_number. The registration number is a combination of areacode. ST. #include<iostream.st2.b. int marks[5]. ss3.z=st3. The category can be one of Gen. #include<iostream.h> #include<conio. }st1. struct info { char name[50].: ss1=ss3. }. Ans.y=st2. } Suggest way(s) to rectify the errors. 5 .

info arr[10].regno.school_code<<a rr[i].regno. struct publication { char proprietor_name[50]. Authorname. book_list containing information of 5 books.j++) { cout<<"marks"<<j+1<<" = "<<arr[i].regno.category<<endl.sc. The publication stores the following information: proprietor-name.areacode.j<5.st or obc category =". } cout<<"enter areacode =". cin>>arr[i].regno.school_code. for(j=0. address.regno.category).name<<endl. for(i=0.i++) { cout<<"Name :"<<arr[i].areacode<<arr[i].regno. } cout<<"Registration Number :"<<arr[i].region_code<<arr[i].regno.i<10. edition. } cout<<"******************* student info ******************"<<endl. cout<<"enter serial number =". price. rege_num regno. for(i=0. gets(arr[i]. 6 . cin>>arr[i]. gets(arr[i]. The book-list stores the following information: bookno.current_year<<arr[i].regno.j++) { cout<<"enter marks"<<j+1<<" = ". cout<<"enter region code =". bookname. cin>>arr[i]. cin>>arr[i]. char company_name[50]. void main() { int i. cout<<"Enter one of gen. cout<<"enter school code =".current_year.serial_number<<endl.j<5. } getch(). clrscr(). char address[50]. for(j=0. cout<<"category :"<<arr[i]. subject. cin>>arr[i]. and phone-number. }.regno.regno.i++) { cout<<"Enter name =".marks[j]<<endl. and publication.serial_number.region_code. cin>>arr[i].j.10.name).marks[j]. } Give appropriate declaration to store 10 records where each record store the following information: Authorno. Ans. cout<<"enter current year =".i<10. publishing company’s name.

}. book_info book[2].i<2. Ans.j<2. struct book_list { int bookno. char author_name[50]. }.h> #include<conio.author_name). char address[50].authorno. }. char author_name[50]. }. for(i=0. float price. gets(book[i]. publication public[20]. struct book_info { int authorno. }. cout<<"enter author name =". publication pub. float price. for(j=0. char bookname[50].h> #include<stdio. book_list bookl[5]. }. int phone_no. char company_name[50]. 7 .j++) { cout<<"enter book no =". struct book_list { int bookno. book_list book[5]. char bookname[50]. char edition[10].j. int phone_no. char subject[20]. clrscr(). Write a code fragment to read in values for the first record of array mentioned in question 10.h> struct publication { char proprietor_name[50]. #include<iostream. void main() { int i.i++) { cout<<"enter author no =". char subject[20]. cin>>book[i]. struct book_info { int authorno. char edition[10].11.

bookno<<endl. gets(book[i].proprietor_name<<endl.j++) { cout<<"book no ="<<book[i]. } } clrscr(). struct date { int dd.edition). cout<<"enter phone number =". cout<<"subject ="<<book[i].dd+50.bookname). cout<<"enter proprietor name =".phone_no.pub. cout<<"phone number ="<<book[i]. cout<<"enter price =". cout<<"proprietor name ="<<book[i].bookl[j]. cout<<"PUBLICATION"<<endl.subject).bookl[j].pub.company_name<<endl. } Write a function that accepts a date type structure and returns a date 50 days after it.bookl[j]. cout<<"enter address =".bookl[j].bookl[j]. date modify(date d1.pub.pub. } } getch().price<<endl.proprietor_name). cout<<"enter publiching company's name =".bookl[j].pub.company_name).bookl[j].dd=d%30. int yy.i++) { cout<<" author no ="<<book[i].pub.authorno<<endl. gets(book[i]. Ans. cout<<" BOOK LIST"<<endl.pub.bookno.bookl[j]. cout<<"enter edition =". cout<<"enter subject =". 8 .bookl[j].address<<endl.bookl[j].pub. cout<<"enter book name =".bookl[j]. gets(book[i]. cout<<"edition ="<<book[i]. for(i=0.subject<<endl.cin>>book[i].bookl[j].bookl[j].bookl[j].i<2.edition<endl. gets(book[i]. 12. cout<<"address ="<<book[i].bookl[j]. int mm. cout<<"price ="<<book[i]. cout<<"book name ="<<book[i]. cin>>book[i]. //read data cout<<"*************** BOOK INFORMATION *****************"<<endl.bookl[j]. d1. gets(book[i]. for(j=0.bookname<<endl. cin>>book[i].bookl[j].author_name<<endl.address). gets(book[i]. }.j<2. cout<<"author name ="<<book[i]. cout<<"publiching company's name ="<<book[i].bookl[j].int add=50) { int d= d1.phone_no<<endl.price.

} if(d1.int m = d1.mm< =0) { d1.seconds<<endl. ++new_time.mm=m%12.minutes>>cur_time.yy += (m/12). cin>>cur_time.minutes==60) { new_time. }. void updatetime(Time new_time) { ++new_time.hour<<":"<<cur_time. Ans.dd= =0) { d1.mm=30.minutes<<":"<<cur_time. } int main() { Time cur_time.mm+(d/30). } if(new_time. cout<<"New time is"<<cur_time. if(d1.dd=12.hour>>cur_time. seconds. --d1. return 0. updatetime(cur_time).hour==24) new_time. cout<<"Enter the time(hh:mm:ss:):\n".hour.minutes=0. d1. --d1.seconds. } Find the output of the following program: 9 .minutes.seconds==60) { new_time. 13. minutes.seconds=0. } Predict the output of the following code (Assuming that required header files have been included): struct Time { int hour. d1.seconds.hour=0. 14. } if(new_time.yy. ++new_time.mm. if(new_time. } return(d1).

Z=X. void Display(Pixel P) { cout<<”col”<<P. Display(Z). }.Breadth+=50. 15. Y. Occupies(P1). Y=Z. return 0. P2=P3. } int main( ) { Pixel X={40.P2. } Give the output of the following program: #include<iostream.C+=10. P2. Display(Y).R+=20. P3=P1. P3. void Occupies(Package M) { cout<<M.Y.R<<endl . ++P1.C-=15. return 0. X.Breadth. cout<<M. #include<iostream. }.C<<”Row”<<P.Height--.Ans. Display(X).Breadth.50}.Z. Occupies(P3).h> struct Pixel { int C.Height.Length.Breadth++. P2. 10 .C+=10.50}. Y.150. Occupies(P2).h> struct Package { int Length. Z.Breadth<<”x” .R.Height<<endl.Length<<”x” <<M. } int main( ) { Package P1={100.P3. ++P3.

corner2.corner2.i<LOOPS. IMAGE_NUM corner2.5. for(i=1.1.corner2. cin>>Rect[i]. 23.corner1. for(i=1.real_part<<"+"<<Rect[i].real_part=1. -4. } return 0.imag_part=-2. double imag_part./.imag_part=3.6. Rect[i].corner2. //ambiguous code If we change the code like this – #include <iostream. 2. } Above code is totally garbage with lots of error and confusing piece of code. 1.2. Ans.4. Rect[i].1.2. -4. } What will the output of the following code.corner1.3. 2.corner1. cin>>Rect[i].i<LOOPS.1.2.real_part=1.i<LOOPS.real_part<<"+"<<Rect[i]. 3. //Incorrect structure name IMAG_RECT Rect[3]. }IMAG_RECT.corner1.Ans. typedef struct imag_rect { IMAG_NUM corner1. m. IMAGE_NUM corner2.9.4.imag_part.corner1. 3.2. 2.h> 11 .imag_part<<"i"<<endl.corner2.corner2. } for(i=0. int main() { int i.imag_part=-2. //[i] from where this i is coming not defined and declared. }IMAG_NUM. cout<<Rect[i].corner2.corner1. -3.imag_part. cin>>Rect[i].i++) { cout<<Rect[i]. 2. IMAG_RECT Rect[3].4.i++) //incorrectly loop initialized m./.9.real_part.1. //[i] from where this i is coming not defined and declared.6 #define LOOPS 4 typedef struct imaginary_number { double real_part.corner1.4.2.imag_part<<"i"<<endl.5. //Wrong number of elements defined Rect[i]. 3.i++) { cin>>Rect[i].corner2. Rect[i]. 2. Rect[i].real_part=1.imag_part=3.2. 16.3. -3. Rect[i]. //[i] from where this i is coming not defined and declared. Rect[i].real_part. //[i] from where this i is coming not defined and declared.j.corner1.1.h> #include <conio.real_part=1.1. if the input entered is: 1. 2. Rect[i].

} And after entering numbers mentioned in question.corner1. #include<conio. Write C++ function to add.j.corner1.imag_part.i++) { cin>>Rect[i]. Ans. } for(i=0.real_part. cout<<Rect[i]. count<<endl. clrscr(). IMAG_RECT Rect[4].corner2. Declare a structure to represent a complex number (a number having a real and imaginary part). multiply and divide two complex numbers. void main() 12 .corner2.i++) { cout<<Rect[i]. typedef struct imag_rect { IMAG_NUM corner1.corner2. }. } return 0. }IMAG_NUM.imag_part<<"i"<<endl. }IMAG_RECT.real_part<<"+"<<Rect[i].h> #include<iostream.h> struct complexNo { float real.i<LOOPS.corner2.imag_part<<"i"<<endl. float img. subtract. double imag_part. cin>>Rect[i]. IMAG_NUM corner2.corner1.real_part. output will be – LONG ANSWER QUESTIONS 1. cin>>Rect[i].corner1.i<LOOPS.real_part<<"+"<<Rect[i]. typedef complexNo cm.#define LOOPS 4 typedef struct imaginary_number { double real_part. cin>>Rect[i]. for(i=0.imag_part. int main() { int i.

n2.img + n2.{ " +i << " << " " << cm n1. struct bowling { char bowler[20]. cin>>n2.real / n2.real = n1.img *n2.img.img.img << "is "<< res. int overs. res.img.real << " + i " << n1.real -n2.real << " + i " <<res.img. int maiden_overs. cout<<"\n Sum of " << n1.real.img . } Write a program to record score of a cricket match. runs given. int total_over.real << " + i " << n1.img. res.h> #include<conio. cout<<"\n Product of " << n1. cout<<"\n\n Enter 1st No. }.img.img << "is "<< res.img. 13 .real << " << n2.h> #include<stdio. mode by which out along with total runs.img.real = n1.real *n2. 2. cout<<"\n Real = ? ". #include<iostream. res.:". res. The other array stores information about bowling team such as bowler's name.img << " & " << n2. it displays either the batting team's information or the bowling team's information. cin>>n2. cout<<"\nEnter 2 complex nos:".real << " +i " << n2.real << " + i "<< res.real = n1. res. int overs. of " << n1. cout<<"\n Imaginary = ? ". maiden overs. cout<<"\n Real = ? ".real.real. runs scored. cout<<"\n Diff.real = n1.img / n2.n2. char out. total overs and extras. int run.real. res.real +n2. res.res.img << " by n2. int extra. The program reads in the above information and depending upon the user's choice.real << " + i " << n1. getch().img = n1.h> struct batting { char batsman[20]. cout<<"\n Result od dividing of " << n1. cout<<"\n Enter 2st No.:". One array stores information of batting team such as batsman’s name.real +"<< res.img = n1.real.img = n1.real. and wicked taken. overs played. indication if out.img.img << "is "<< res.img = n1.real << " + i "<< res. cout<<"\n Imaginary = ? ". overs bowled.img << " & " << n2.img. cin>>n1. res. cin>>n1.img << " & " << n2. int tot_run.real +i " << n2.real << " + i " << n1. Ans.

} cout<<"\n Enter records of bowling team :\n\n".overs. do { clrscr(). i++) { cout<<"\n Enter bat's man name :".int runs. 14 .overs. cout<<"\n Enter runs :". int n. cout<<"\n Enter maiden overs :". i < 12 . for(int i =0. for( i = 0. void main() { batting bat_team[12]. i < 12 . cin>>bo_team[i]. cin>>bo_team[i]. cout<<"\n Enter your choice :". cout<<"\n Enter 2 to view bowling team information:". } char ch. i++) { cout<<"\n Enter bowler's name :". switch(n) { case 1: cout<<"\n ************* BATTING TEAM *************\n". cout<<"\n Extra ?". cout<<"\n Enter no. cout<<"\n Enter records of batting team :\n\n". cin>>bo_team[i]. cout<<"\n Enter total run :".wicket. gets(bat_team[i]. cin>>bat_team[i].tot_run. gets(bo_team[i]. cout<<"\n Enter run scored :". i++) { cout<<"\n"<< bat_team[i]. cin>>bat_team[i]. cout<<"\n Enter total over:". cin>>n. cin>>bat_team[i]. cout<<"\n Name \t RUN-Scored Out Total-run Over's-played Total-Overs Extra ". cout<<"\n Enter overs bowled :". Type 1 if OUT :".total_over.runs. bowling bo_team[12]. cin>>bat_team[i]. cin>>bat_team[i]. cout<<"\n Enter 1 to view batting team information:". for( i = 0. }. int wicket.batsman). cin>>bat_team[i]. cout<<"\n Type 0 NOT-OUT .maiden_overs. cin>>bo_team[i].run<<" ".batsman <<"\t"<< bat_team[i].run.out. cout<<"\n Enter wicked taken:". of overs played :".bowler). i < 12 .extra.

out) cout<<"OUT". it_rate.if(bat_team[i].h> struct info { float hra_rate.maiden_overs<< " "<< bo_team[i]. int days_worked. } cout<<"\n Do you continue (y/n)". } 3. pf_rate.tot_run<< " " << bat_team[i]. default: cout<< "\n Wrong choice. } break. char name[21]. getch(). cout<< "\n Name \t Overs_bowled Maiden-Overs Runs-Given Wicket-Taken ".overs << " " << bat_team[i]. it_rate. cout<< " "<< bo_team[i]. i < 12 .overs<< " ".". struct emp { 15 . da_rate.runs<< " "<< bo_team[i]. case 2: cout<< "\n ************* BOWLING TEAM *************\n". }while((ch=='y')||(ch=='Y')).h> #include<conio. }.wicket<<" ". int days_worked. } salemp. Using the information stored in others member of emp. else cout<<"NOT-OUT". cca. The Gross Salary is calculated as follows : (basic x days _ worked) /26 + (basic x hra _ rate)/100 + (basic x da _rate)/100 +cca The Net Salary is calculated as follows : Gross_Salary – ((basic x it _rate) /100 + (basic x pt _rate )/100) Ans. da_rate. } break. }. struct emp { int empno. i++) { cout<< "\n"<< bo_team[i]. imemp. pf_rate. cin>>ch.extra. #include<iostream. cca. calculate the Gross and Net Salary of an employee.total_over<< " "<< bat_team[i].h> #include<stdio.bowler<< "\t"<< bo_team[i]. Given the following structure : struct info { float hra_rate. info others. for( i = 0. float basic. cout<< " " << bat_team[i]. puremp.

int empno.basic * salemp. DA-rate.cca >> salemp.basic * puremp. ns = gs .others.pf_rate)/100).name).it_rate)/100 +(salemp. Basic Pay. Days of Work :".it_rate. the exchange(711).empno << "\t" << salemp.basic * puremp.basic>> salemp.h> #include<stdio. float basic. HRA-rate. basic * salemp. cout<< "\n Enter Records for Purchase Emp :".basic * puremp. cout<<"\n"<< salemp. cin >> puremp. Basic Pay.others.others. gets(salemp. Call the structure phone.cca >> puremp. imemp. cin>> salemp.it_rate.it_rate)/100 +( puremp. Ans.cca.. cout <<"\n Enter EmpNo.others. cout<<"\nEmpNo.others. Create an array to store 20 records of its member wherein each record stores the member no.empno. hra_rate)/100 + (puremp. Have the user input the information for all records and then display the entire information on the screen.".others.others.name<<"\t"<<"\t"<< gs << ns .others.others.others. puremp. IT-rate. cout <<"\n Enter EmpNo.basic>> puremp.others. PF-rate.empno. char name[21].cca. #include<iostream.hra_rate >> puremp.da_rate)/100 + puremp.others.pf_rate >> salemp. ns. gs = (puremp.others.others.others. gets(puremp.pf_rate)/100). member name and phone number of phone type.\tName\tThe Gross salary (Rs.others.others.empno << "\t" << salemp. CCA-rate.da_rate >> puremp.pf_rate >> puremp.basic * salemp.basic * salemp.\tName\tThe Gross salary (Rs.basic * salemp. cin>> puremp.basic * puremp. HRA-rate.others. IT-rate.)\t The Net Salary (Rs).hra_rate)/100 + (salemp. Days of Work :".others. DA-rate. } salemp.name<<"\t"<<"\t"<< gs << ns. Write a program that uses a structure to store these three parts of a phone number separately. A phone number such as (011)711 8802 can be thought of as having three parts: the area code(011). CCA-rate. cout<< "\nEmpNo.((puremp. EmpName. } 4. ns = gs-((salemp. EmpName.basic * puremp.days_worked) /26 + (puremp.da_rate)/100 + salemp. cin >> salemp. info others.da_rate >> salemp. clrscr().others. and the number(8802). void main() { float gs. cout<<"\n*****************************************".)\t The Net Salary (Rs).hra_rate >> salemp. gs = (salemp.". cout<<"\n"<< salemp.name).h> struct phone 16 . getch().others.h> #include<conio. PF-rate.others. cout<<"\n Enter Records for Sale Emp :".days_worked) /26 + (salemp. cout<<"\n*******************************************".

#include<iostream. phone ph_no. h_in_feet. } getch(). and print out the result.2442 .h> #include<conio. cin >> rec[i].member_id << "\t" << rec[i]. cout << "\n Enter length in feet and inches(XfeetXinch/X F. width.member_id. cin >> rec[i].l_in_feet>>ch>>room. Ans. No. i++) { cout<< rec[i]. height ) of type distance (feet and inches) to model the volume of a room. char name[30]. void main() { member rec[20].ph_no. int l_in_inch. for(i = 0. cout<<"\n Enter records of 20 members ".ph_no.e. cout<< "\n Member ID \t Member Name \t Ph.6523)

:".name << "\t" << rec[i]. char ch[10]. i++) { cout<< "\n Member ID ? ".{ int area_code.ph_no.ph_no.number . } clrscr(). 17 .l_in_inch>>ch. i < 20 . The volume should be in cu.5 feet. struct member { int member_id.. X I. for(i = 0. b_in_feet. you will have to convert each dimension in to feet and fractions of foot. h_in_inch. void main() { vol room. }. \n ". i < 20 . gets( rec[i]. }.) :".exchange << "-" << rec[i].h> struct vol { int l_in_feet. Create a structure called volume that uses three variables (length. int exchange.ph_no. char ch.exchange number (003 . For instance.exchange >> ch >> rec[i].area_code >> ch >> rec[i]. the length 12 feet 6 inches will be 12.ph_no. b_in_inch. }. int i. cout<< "--------------------------------------------\n\n". feet form. cout<< "\n Enter Name :". cout<< " \n Enter phone number in the format

Related Interests

areacode .name). i. cin>>room. int number. Read the three dimensions of the room and calculate the volume it represents.number << endl .area_code<< "-" << rec[i]. } 5.

cin>> Customer[i].cust_nm).l_in_feet + (float)(room.b_in_inch >> ch.l_in_inch/12). double volm = (double)len * br*height.h> #include<stdio. cin >>room.h_in_feet + (float)(room. cout<< "Enter Date of Sale (dd-mm-yy):". cout << "\n Enter height in feet and inches(XfeetXinch…) :". description quantity unit price discount percentage sales tax percentage Ans. cout<< "\n The Length of the Room = " << len << "feet". br.. gets( Customer[i].h> #include<conio. void main() { invo Customer[10]. int mon. getch(). cin >>room. date D_O_sale. len =room.b_in_feet >> ch >>room. br = room.".h_in_feet >> ch >>room. float sales_tax. for(int i = 0. cin >> 6. cout<< "\n The Volume of the Room =" << height << "feet". 18 . char c. struct invo { int cust_num.cust_num. float discount. int quan.h> struct date { int day.):". char add[40]. char cust_nm[20].b_in_inch/12). height = room.h_in_inch/12).cout << "\n Enter breadth in feet and inches (XfeetXinch.feet". int yr.h_in_inch >> ch. }. cout<< "\n The Volume of the Room =" << volm << "c. cout<< "\n The Breadth of the Room = "<< br << "feet". float len. int unit_pr. } Write a program to prepare the invoice from the following data : customer number customer name and address date of sale. i< 10. }.b_in_feet + (float)(room. i++) { cout<< "\n Enter the customer no. cout<< "\n Enter the Customer name :". #include<iostream. height. char descp[30].

double year. cin>> Customer[i].h> #include<stdio. cin>>client[i]. cout<<" \n Customer Num.mon << "-" << Customer[i].i++) { cout<<"enter customer name = ".unit_pr. i< 10. } clrscr().i<50.day>>c>>Customer[i]. Details of 50 clients of an investment company are stored in an array of structures. gets(client[i]. Customer Name \t Address \t Date-of-Sale Desc \t Quantity Unit Price Discount% Sales-Tax% \n\n".D_O_sale.code. #include<math.name).discount << " " << Customer[i]. cout<<"enter date of starting = ".yr << " "<< Customer[i]. cout<<"\n Discount :". double d_o_s.descp << "\t" << Customer[i]. double amount. Ans.sales_tax << endl . cout<<"\n Sales Tax :". for(i=0. and total amount.discount. cout<<"enter code = ". 19 .cust_num << " " << Customer[i]. }.j. yr. cin >> Customer[i]. Write a program to calculate compound interest for these clients. cin>> Customer[i]. i++) { cout<< Customer[i].add << "\t" << Customer[i]. void main() { int i.h> struct client_info { char name[50].Customer[i].D_O_sale.D_O_sale. double compound. } getch( ).d_o_s. cout<< "\nEnter Quantity : ". number of years. int code. } 7.h> #include<iostream.D_O_sale.quan. interest rate. cout<<"enter number of years = ". gets( Customer[i].quan << " "<< Customer[i].D_O_sale. for( i = 0. cin>>client[i]. cout<< "\n Enter Description :". date of starting.descp). cout<< "\n Unit Price ?".x.D_O_sale. double rate. client_info client[50].day<<"-"<< Customer[i].unit_pr << " "<< Customer[i]. code. cout<<"================================================================ ". Details include customer name.h> #include<conio. cin >> Customer[i].sales_tax.cust_nm << "\t" << Customer[i].mon>>c>>Customer[i].

cout<<"enter total amount =".h> #include<stdio.m1< 40 && student[i]. } getch(). cout<<"enter intrest rate = ".m2 < 40) || (student[i]. cin >> student[i].roll. } getch(). gets(student[i].rate<<endl. cout<<"number of years = "<<client[i].amount*pow(( 1. cout << "\n Enter marks of three subjects :". marks in three subjects). float m1.amount.0+client[i].i++) { cout<<" customer name = "<<client[i]. }. An array stores details of 25 students (roll no.h> #include<conio. m3. i++) { cout << "\n Enter Roll no : ". #include<iostream.rate. } 8.h> struct stud { int roll. } Write a program. Each record should be 20 .nm).d_o_s<<endl.m3 < 40)) cout << student[i].m2 < 40 && student[i].code<<endl. for(i =0 .m2 >> student[i]. cout<<"code = "<<client[i]. typedef stud S. char nm[50]. compound=x-client[i]. which will read in student records and print them in sorted order.amount.0). cout << "\n Enter Name : ". cout<<"total amount ="<<client[i]. 9.year). } cout<< "\n STUDENTS FAILED IN MORE THAN 1 SUBJECT \n ".roll << "\t" << student[i]. void main() { S student[25]. cout<<"intrest rate = "<<client[i].rate/100.m1 >> student[i].cin>>client[i]. Write a program to create such an array and print out a list of students who have failed in more than one subjects. m2. for(int i =0 .amount<<endl. Ans. name. i < 25 . i < 25 .m3 . cin>>client[i]. i++) { if(( student[i]. cin>>client[i].i<50. cout<<"date of starting = "<<client[i].nm << "\n".name<<endl.m3 < 40) || ( student[i]. x= client[i].year<<endl. Assume 40% as pass marks.year.m1 < 40 && student[i]. cin >> student[i]. cout<<"compound intrest ="<<compound<<endl. } for(i=0. client[i].

fname). i++) { for(int j = i+1. }. s[i]. tlname[20]. tfname).represented by a C structure having member/fields for the first name. cout<<"\n Enter ID NO".fname).fname)>0) { strcpy(tfname. 21 . cin>>s[i].lname. last name and student number (an integer). s[j]. s[i].h> #include <conio. cin>>s[i].fname. 25) if you want to use an array.id_no. You should sort first by first name. You can read the information in from the console or from a file.s[j]. and should print out the sorted list to the console. strcpy(s[i].lname. t = s[i]. strcpy(tlname.tlname). char lname[20]. } for(i = 0. s[j]. s[j]. strcpy(s[j]. then by last name (this way they will be fully sorted by name when you finish). i<24. #include <iostream. strcpy(s[i]. for(int i = 0. i++) { cout<<"\n Enter Student's first name:". You can assume some reasonable upper limit on number of records (say.lname)>0) { strcpy(tfname.fname. strcpy(s[j]. void main() { S s[5]. j++) { if(strcmp(s[i]. char tfname[20].fname).lname.id_no = t. } else { if(strcmp(s[i].fname. Ans.s[i]. j<5.h> struct student { char fname[20].lname).fname)==0) { if(strcmp(s[i]. int id_no.id_no. int t. i<5. clrscr().lname.s[i].id_no.h> #include <stdio.fname. cin>>s[i].h> #include <string. cout<<"\n Enter Student's last name:". s[j]. s[j].lname).id_no = s[j].fname. typedef student S.

Display an error message in case of an incorrect input. i++) { cout << "\n Country's name : ". k++) { cout<<"\n"<< s[k].h> #include <stdio. s[i]. } 10.h> #include <string. void main() { country c[3].30). strcpy(s[i].ignore(). strcpy(s[j].lname. A linear array if size 50 stores following information’s: name of the country.h> #include <process. t=s[i]. strcpy(s[j]. 30). cin. cin. k<5.lname). cout << "\n Per capita income :".lname. char capital[30]. cin.h> #include<conio.} } } strcpy(s[i]. for( int i=0.capital.fname.getline(c[i]. } } cout<<"\n\n FIRST NAME \t LASTNAME \t ID NO ".h> struct country { char country[30]. #include<iostream.fname). (b) To read name of the capital city and displays country's name and displays country's name and per capital income.s[j].country. for(int k = 0. Write a complete program in C++ to do the following : (a) To read a country's name and display capital and per-ca pita income.s[i].tfname).tlname).fname. float income. Ans.lname).id_no=t. strcpy(tlname. i<3 . cout << "\n Country's capital :".lname. 22 . } getch().getline(c[i].fname<<"\t" << s[k].s[j].id_no. s[j]. clrscr(). country's capital and per capita income of the country.id_no=s[j].id_no. }.

cin.30). cout << "\n Enter Country name : ".income << "\n\n" .ignore(). if(strcmp(c[m]. cin. m<3 .income << "\n" . int flag = 0. k<3 . k++) { flag = 0. } if(flag==1) { cout << c[m].capital << "\t" << c[m].getline(cap. } if(flag==1) { cout<< "\n" << c[k]. for(int k=0. cout << "\n Enter Capital name : ".country. char cap[30].cin >> c[i].cap)==0) { flag = 1. m++) { flag = 0. } char ch = 'y'.capital.capital << "\t" << c[k].getline(con. } } char con[30].income.country << "\t" << c[k]. 30). for(int m=0. } } getch(). cin. if(strcmp(c[k]. } 23 .con)==0) { flag = 1.

Related Interests

:".name << "\t" << rec[i]. char ch[10]. i++) { cout<< "\n Member ID ? ".{ int area_code.ph_no.ph_no.number . } clrscr(). 17 .l_in_inch>>ch. i < 20 . The volume should be in cu.5 feet. struct member { int member_id.. X I. for(i = 0. b_in_feet. you will have to convert each dimension in to feet and fractions of foot. h_in_inch. void main() { vol room. }. \n ". i < 20 . gets( rec[i]. }.) :".exchange << "-" << rec[i].h> struct vol { int l_in_feet. Create a structure called volume that uses three variables (length. int exchange.ph_no. char ch.exchange number (003 . For instance.exchange >> ch >> rec[i].area_code >> ch >> rec[i]. the length 12 feet 6 inches will be 12.ph_no. b_in_inch. }. int i. cout<< "--------------------------------------------\n\n". feet form. cout<< "\n Enter Name :". cout<< " \n Enter phone number in the format ","doc_promotions_enabled":false,"static_promo_banner_cta_url":"https://www.scribd.com/"},"eligible_for_exclusive_trial_roadblock":false,"eligible_for_seo_roadblock":false,"exclusive_free_trial_roadblock_props_path":"/doc-page/exclusive-free-trial-props/312726209","flashes":[],"footer_props":{"urls":{"about":"/about","press":"/press","blog":"http://literally.scribd.com/","careers":"/careers","contact":"/contact","plans_landing":"/subscribe","referrals":"/referrals?source=footer","giftcards":"/giftcards","faq":"/faq","accessibility":"/accessibility-policy","faq_paths":{"accounts":"https://support.scribd.com/hc/sections/202246346","announcements":"https://support.scribd.com/hc/sections/202246066","copyright":"https://support.scribd.com/hc/sections/202246086","downloading":"https://support.scribd.com/hc/articles/210135046","publishing":"https://support.scribd.com/hc/sections/202246366","reading":"https://support.scribd.com/hc/sections/202246406","selling":"https://support.scribd.com/hc/sections/202246326","store":"https://support.scribd.com/hc/sections/202246306","status":"https://support.scribd.com/hc/en-us/articles/360001202872","terms":"https://support.scribd.com/hc/sections/202246126","writing":"https://support.scribd.com/hc/sections/202246366","adchoices":"https://support.scribd.com/hc/articles/210129366","paid_features":"https://support.scribd.com/hc/sections/202246306","failed_uploads":"https://support.scribd.com/hc/en-us/articles/210134586-Troubleshooting-uploads-and-conversions","copyright_infringement":"https://support.scribd.com/hc/en-us/articles/210128946-DMCA-copyright-infringement-takedown-notification-policy","end_user_license":"https://support.scribd.com/hc/en-us/articles/210129486","terms_of_use":"https://support.scribd.com/hc/en-us/articles/210129326-General-Terms-of-Use"},"publishers":"/publishers","static_terms":"/terms","static_privacy":"/privacy","copyright":"/copyright","ios_app":"https://itunes.apple.com/us/app/scribd-worlds-largest-online/id542557212?mt=8&uo=4&at=11lGEE","android_app":"https://play.google.com/store/apps/details?id=com.scribd.app.reader0&hl=en","books":"/books","sitemap":"/directory"}},"global_nav_props":{"header_props":{"logo_src":"/images/landing/home2_landing/scribd_logo_horiz_small.svg","root_url":"https://www.scribd.com/","search_term":"","small_logo_src":"/images/logos/scribd_s_logo.png","uploads_url":"/upload-document","search_props":{"redirect_to_app":true,"search_url":"/search","query":"","search_page":false}},"user_menu_props":null,"sidebar_props":{"urls":{"bestsellers":"https://www.scribd.com/bestsellers","home":"https://www.scribd.com/","saved":"/saved","subscribe":"/archive/pmp_checkout?doc=312726209&metadata=%7B%22context%22%3A%22pmp%22%2C%22action%22%3A%22start_trial%22%2C%22logged_in%22%3Afalse%2C%22platform%22%3A%22web%22%7D","top_charts":"/bestsellers","upload":"https://www.scribd.com/upload-document"},"categories":{"book":{"icon":"icon-ic_book","icon_filled":"icon-ic_book_fill","url":"https://www.scribd.com/books","name":"Books","type":"book"},"news":{"icon":"icon-ic_articles","icon_filled":"icon-ic_articles_fill","url":"https://www.scribd.com/news","name":"News","type":"news"},"audiobook":{"icon":"icon-ic_audiobook","icon_filled":"icon-ic_audiobook_fill","url":"https://www.scribd.com/audiobooks","name":"Audiobooks","type":"audiobook"},"magazine":{"icon":"icon-ic_magazine","icon_filled":"icon-ic_magazine_fill","url":"https://www.scribd.com/magazines","name":"Magazines","type":"magazine"},"document":{"icon":"icon-ic_document","icon_filled":"icon-ic_document_fill","url":"https://www.scribd.com/docs","name":"Documents","type":"document"},"sheet_music":{"icon":"icon-ic_songbook","icon_filled":"icon-ic_songbook_fill","url":"https://www.scribd.com/sheetmusic","name":"Sheet Music","type":"sheet_music"},"summary":{"icon":"icon-ic_globalnav_snapshot","icon_filled":"icon-ic_globalnav_snapshot_fill","url":"https://www.scribd.com/snapshots","name":"Snapshots","type":"summary"}},"nav_categories":["mixed","book","audiobook","magazine","document","sheet_music"],"selected_content_type":"mixed","username":"","search_overlay_props":{"search_input_props":{"focused":false,"keep_suggestions_on_blur":false}}}},"recommenders":{"related_titles_recommender":{"ids":[266531767,250465091,370117750,331552044,235943442,266530872,227866237,189080321,236371039,266529043,255715565,253387563,337913350,117639449,266531226,105450002,37279946,208304181,208305940,231803044,302651870,202329814,174370134,122821934,234635419,245174111,244371864,79759115,60512581,375338964,312727361,312727996,312728286,312728387,233666472,312727189,312726401],"title_link":null,"title":null,"track_opts":{"compilation_id":"jjqUkBeRF6Pf+LjhMYWugogNkdg=","module_id":"yg4pZBkX4/gorWrlV/9M+3B6qfY=","widget_name":"right sidebar","track_id":"flattened_recommender"}},"footer_recommenders":{"recommenders":[{"ids":[266531767,250465091,370117750,331552044,235943442,266530872,227866237,189080321,236371039,266529043,255715565,253387563,337913350,117639449,266531226,105450002,37279946,208304181,208305940,231803044,302651870,202329814,174370134,122821934,234635419,245174111,244371864,79759115,60512581,375338964],"title_link":null,"title":"Documents Similar To Class 11 Structure Sumita Arora Solved Assignment","track_opts":{"compilation_id":"jjqUkBeRF6Pf+LjhMYWugogNkdg=","module_id":"ppEEk13uVETDYPRET45YZxICof8=","widget_name":"document_carousel"}},{"ids":[312727361,312727996,312728286,312728387,233666472,312727189,312726401],"title_link":null,"title":"More From Sathiya Ramesh","track_opts":{"compilation_id":"jjqUkBeRF6Pf+LjhMYWugogNkdg=","module_id":"SIEp5bbTjMRlegircIGM9Jyno0s=","widget_name":"document_carousel"}}]},"seo_new_docs_recommenders":{"recommenders":[]},"documents":{"37279946":{"type":"document","id":37279946,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/37279946/149x198/3899b32ef7/1516518365?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/37279946/298x396/8fc9a8999f/1516518365?v=1","title":"CLASS XI COMPUTER SCIENCE PAPER FOR HALF YEARLY EXAM 2010","short_title":"CLASS XI COMPUTER SCIENCE PAPER FOR HALF YEARLY EXAM 2010","author":"sm_manda","tracking":{"object_type":"document","object_id":37279946,"track":"flattened_recommender","doc_uuid":"nP/nzmnBdMDKYathooZCihr/GFc="},"url":"https://www.scribd.com/doc/37279946/CLASS-XI-COMPUTER-SCIENCE-PAPER-FOR-HALF-YEARLY-EXAM-2010","top_badge":null},"60512581":{"type":"document","id":60512581,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/60512581/149x198/6a112c3da1/1537600510?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/60512581/298x396/4801d78c4d/1537600510?v=1","title":"Ch- 3 Getting Started With Programming Using IDE","short_title":"Ch- 3 Getting Started With Programming Using IDE","author":"Divyesh Shukla","tracking":{"object_type":"document","object_id":60512581,"track":"flattened_recommender","doc_uuid":"7sOf/qYdSqWprTjTcllg++y5rH4="},"url":"https://www.scribd.com/doc/60512581/Ch-3-Getting-Started-With-Programming-Using-IDE","top_badge":null},"79759115":{"type":"document","id":79759115,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/79759115/149x198/25da6ae0f5/1518097581?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/79759115/298x396/2ba48a9735/1518097581?v=1","title":"C++ Practical File Complete","short_title":"C++ Practical File Complete","author":"Kevin Alluvalia","tracking":{"object_type":"document","object_id":79759115,"track":"flattened_recommender","doc_uuid":"q8olhs9FgLuvElEakMNXu8z9HsQ="},"url":"https://www.scribd.com/document/79759115/C-Practical-File-Complete","top_badge":null},"105450002":{"type":"document","id":105450002,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/105450002/149x198/b2ace17a1a/1538461023?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/105450002/298x396/59f626e48b/1538461023?v=1","title":"List of Programs for Class XI_2012","short_title":"List of Programs for Class XI_2012","author":"Niti Arora","tracking":{"object_type":"document","object_id":105450002,"track":"flattened_recommender","doc_uuid":"KH/YSSWOCB8WkLJ4lh87P0C8ju0="},"url":"https://www.scribd.com/document/105450002/List-of-Programs-for-Class-XI-2012","top_badge":null},"117639449":{"type":"document","id":117639449,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/117639449/149x198/62380a7f3c/1530044075?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/117639449/298x396/6ccae80e61/1530044075?v=1","title":"CBSE Class XI Computer Science Notes","short_title":"CBSE Class XI Computer Science Notes","author":"expertarjun","tracking":{"object_type":"document","object_id":117639449,"track":"flattened_recommender","doc_uuid":"SUbs9AbgwrjrWhRh3Z0jdO24nsg="},"url":"https://www.scribd.com/doc/117639449/CBSE-Class-XI-Computer-Science-Notes","top_badge":null},"122821934":{"type":"document","id":122821934,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/122821934/149x198/7e0c7fe89e/1539787439?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/122821934/298x396/66b256bb50/1539787439?v=1","title":"computer science project file for class XII CBSE","short_title":"computer science project file for class XII CBSE","author":"JYOTI DOGRA","tracking":{"object_type":"document","object_id":122821934,"track":"flattened_recommender","doc_uuid":"RHTpbRvEBSzZJFIL2BYB9gb9ODA="},"url":"https://www.scribd.com/doc/122821934/computer-science-project-file-for-class-XII-CBSE","top_badge":null},"174370134":{"type":"document","id":174370134,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/174370134/149x198/329fd746fa/1518886356?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/174370134/298x396/90d6388d4c/1518886356?v=1","title":"Class Xi Computer Science Chapter 5.Unlocked","short_title":"Class Xi Computer Science Chapter 5.Unlocked","author":"manas_j","tracking":{"object_type":"document","object_id":174370134,"track":"flattened_recommender","doc_uuid":"IlLow75x2nV/h5SjyfSNP0mtuj8="},"url":"https://www.scribd.com/document/174370134/Class-Xi-Computer-Science-Chapter-5-Unlocked","top_badge":null},"189080321":{"type":"document","id":189080321,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/189080321/149x198/0a5b289bd0/1521177870?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/189080321/298x396/bedfc2755a/1521177870?v=1","title":"1 c++ Revision Tour","short_title":"1 c++ Revision Tour","author":"krishnaakp","tracking":{"object_type":"document","object_id":189080321,"track":"flattened_recommender","doc_uuid":"syMNOloReBuyZ9VT0pGgwthd1Fo="},"url":"https://www.scribd.com/document/189080321/1-c-Revision-Tour","top_badge":null},"202329814":{"type":"document","id":202329814,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/202329814/149x198/fa97f13819/1539106954?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/202329814/298x396/cbfd9a66d0/1539106954?v=1","title":"Comp Science Practical File 12th class","short_title":"Comp Science Practical File 12th class","author":"cursator","tracking":{"object_type":"document","object_id":202329814,"track":"flattened_recommender","doc_uuid":"zic5UWDjCZ3m6UX3ntPY4Xx1Ews="},"url":"https://www.scribd.com/document/202329814/Comp-Science-Practical-File-12th-class","top_badge":null},"208304181":{"type":"document","id":208304181,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/208304181/149x198/005d56de76/1512920571?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/208304181/298x396/6c3bbd230c/1512920571?v=1","title":"CBSE Sample Paper for Class 11 English - Set E","short_title":"CBSE Sample Paper for Class 11 English - Set E","author":"aglasem","tracking":{"object_type":"document","object_id":208304181,"track":"flattened_recommender","doc_uuid":"rk7OPoSxkL+LXC8HAiv77vQeHSI="},"url":"https://www.scribd.com/document/208304181/CBSE-Sample-Paper-for-Class-11-English-Set-E","top_badge":null},"208305940":{"type":"document","id":208305940,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/208305940/149x198/3da59533a9/1507355442?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/208305940/298x396/69ff495016/1507355442?v=1","title":"CBSE Sample Paper for Class 11 Computer Science - Set A","short_title":"CBSE Sample Paper for Class 11 Computer Science - Set A","author":"aglasem","tracking":{"object_type":"document","object_id":208305940,"track":"flattened_recommender","doc_uuid":"Vv0RDi8cOh2yagvivmfSZs/boTk="},"url":"https://www.scribd.com/document/208305940/CBSE-Sample-Paper-for-Class-11-Computer-Science-Set-A","top_badge":null},"227866237":{"type":"document","id":227866237,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/227866237/149x198/d27120cef3/1441276598?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/227866237/298x396/2b8122bc36/1441276598?v=1","title":"sumita_arora_class_12_c++_classes_and_objects","short_title":"sumita_arora_class_12_c++_classes_and_objects","author":"Arshil Khan","tracking":{"object_type":"document","object_id":227866237,"track":"flattened_recommender","doc_uuid":"eb8zvMh4O0Jv0aIYQX7U7cR15as="},"url":"https://www.scribd.com/doc/227866237/sumita-arora-class-12-c-classes-and-objects","top_badge":null},"231803044":{"type":"document","id":231803044,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/231803044/149x198/996cdc8c40/1518932675?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/231803044/298x396/d931a3fb5d/1518932675?v=1","title":"Ch 10 Linked Lists Stacks and Queues","short_title":"Ch 10 Linked Lists Stacks and Queues","author":"maya__scribd","tracking":{"object_type":"document","object_id":231803044,"track":"flattened_recommender","doc_uuid":"CSfx4tiytxMnM5FLOUZlz4l0KN0="},"url":"https://www.scribd.com/document/231803044/Ch-10-Linked-Lists-Stacks-and-Queues","top_badge":null},"233666472":{"type":"document","id":233666472,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/233666472/149x198/dd98b41ab4/1405252953?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/233666472/298x396/39178e1414/1405252953?v=1","title":"syllabus","short_title":"syllabus","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":233666472,"track":"flattened_recommender","doc_uuid":"qHvk9gu7Lj/0KqI+KhImjBmyr0s="},"url":"https://www.scribd.com/doc/233666472/syllabus","top_badge":null},"234635419":{"type":"document","id":234635419,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/234635419/149x198/f01b7b19cc/1531758305?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/234635419/298x396/d3a882bbeb/1531758305?v=1","title":"CBSE 2014 Question Paper for Class 12 Computer Science - Outside Delhi","short_title":"CBSE 2014 Question Paper for Class 12 Computer Science - Outside Delhi","author":"aglasem","tracking":{"object_type":"document","object_id":234635419,"track":"flattened_recommender","doc_uuid":"bFwAKvIeqy6PqILpSFjAkj91wtY="},"url":"https://www.scribd.com/doc/234635419/CBSE-2014-Question-Paper-for-Class-12-Computer-Science-Outside-Delhi","top_badge":null},"235943442":{"type":"document","id":235943442,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/235943442/149x198/1b4b2093fc/1539520520?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/235943442/298x396/c63acf0120/1539520520?v=1","title":"class 11 sumita arora ","short_title":"class 11 sumita arora ","author":"Vipul Sachdeva","tracking":{"object_type":"document","object_id":235943442,"track":"flattened_recommender","doc_uuid":"G+bJhClPKz2yDOvGTtfU+DMufe4="},"url":"https://www.scribd.com/doc/235943442/class-11-sumita-arora","top_badge":null},"236371039":{"type":"document","id":236371039,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/236371039/149x198/433a5020cb/1539612985?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/236371039/298x396/954369ebfb/1539612985?v=1","title":"Xi Computer Science User Defined Functions","short_title":"Xi Computer Science User Defined Functions","author":"Vipul Sachdeva","tracking":{"object_type":"document","object_id":236371039,"track":"flattened_recommender","doc_uuid":"Ctu7OyWTwd75e/r4IwJkb2HuIPE="},"url":"https://www.scribd.com/document/236371039/Xi-Computer-Science-User-Defined-Functions","top_badge":null},"244371864":{"type":"document","id":244371864,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/244371864/149x198/9d3a27b16c/1539246082?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/244371864/298x396/500c85fa52/1539246082?v=1","title":"Computer Science Investigatory Project on Railway Ticket Reservation for Class 12","short_title":"Computer Science Investigatory Project on Railway Ticket Reservation for Class 12","author":"jenniferanna","tracking":{"object_type":"document","object_id":244371864,"track":"flattened_recommender","doc_uuid":"TTlHbUBaTZ0++4vcpYI82g+2iFo="},"url":"https://www.scribd.com/doc/244371864/Computer-Science-Investigatory-Project-on-Railway-Ticket-Reservation-for-Class-12","top_badge":null},"245174111":{"type":"document","id":245174111,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/245174111/149x198/a5bac2a887/1537025986?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/245174111/298x396/386c1c513a/1537025986?v=1","title":"Flow of Control 2","short_title":"Flow of Control 2","author":"Niti Arora","tracking":{"object_type":"document","object_id":245174111,"track":"flattened_recommender","doc_uuid":"UxF+E9+MTaCDAzso9U3XrtY2h74="},"url":"https://www.scribd.com/document/245174111/Flow-of-Control-2","top_badge":null},"250465091":{"type":"document","id":250465091,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/250465091/149x198/264d016045/1418911380?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/250465091/298x396/56ca9482c0/1418911380?v=1","title":"Computer Science CBSE class 11 chp-14","short_title":"Computer Science CBSE class 11 chp-14","author":"Chammu","tracking":{"object_type":"document","object_id":250465091,"track":"flattened_recommender","doc_uuid":"cZk4c0ikJyU47PtjRK4xzd/C8rY="},"url":"https://www.scribd.com/document/250465091/Computer-Science-CBSE-class-11-chp-14","top_badge":null},"253387563":{"type":"document","id":253387563,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/253387563/149x198/c922e22e92/1433357061?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/253387563/298x396/7e4ab60a3b/1433357061?v=1","title":"Computer Science Sumita Arora Database Concept","short_title":"Computer Science Sumita Arora Database Concept","author":"Muhammad Dawood","tracking":{"object_type":"document","object_id":253387563,"track":"flattened_recommender","doc_uuid":"ToM2IV9Qr58P7YnjEuZrJDmfXSQ="},"url":"https://www.scribd.com/document/253387563/Computer-Science-Sumita-Arora-Database-Concept","top_badge":null},"255715565":{"type":"document","id":255715565,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/255715565/149x198/896914c4ec/1536325950?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/255715565/298x396/9d888040ff/1536325950?v=1","title":"c++_arrays_chapter_9_class_xii","short_title":"c++_arrays_chapter_9_class_xii","author":"pranjal ","tracking":{"object_type":"document","object_id":255715565,"track":"flattened_recommender","doc_uuid":"z/H1lcAQYdsDvMkdCLLc/nztGCk="},"url":"https://www.scribd.com/document/255715565/c-arrays-chapter-9-class-xii","top_badge":null},"266529043":{"type":"document","id":266529043,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266529043/149x198/574b62007b/1538148339?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/266529043/298x396/f47c00c6a6/1538148339?v=1","title":"cbse_computer_science_operators_and_expressions_solutions.pdf","short_title":"cbse_computer_science_operators_and_expressions_solutions.pdf","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266529043,"track":"flattened_recommender","doc_uuid":"bxGe6YKURd2qUBEFPg4YUhkbglQ="},"url":"https://www.scribd.com/doc/266529043/cbse-computer-science-operators-and-expressions-solutions-pdf","top_badge":null},"266530872":{"type":"document","id":266530872,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266530872/149x198/66dffbddaf/1537969150?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266530872/298x396/9985dbe242/1537969150?v=1","title":"cbse_class_11_c++_ flow_of_control_solved_questions.pdf","short_title":"cbse_class_11_c++_ flow_of_control_solved_questions.pdf","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266530872,"track":"flattened_recommender","doc_uuid":"DTgH9otVQcqW3rGY+mnE9VcvUZc="},"url":"https://www.scribd.com/document/266530872/cbse-class-11-c-flow-of-control-solved-questions-pdf","top_badge":null},"266531226":{"type":"document","id":266531226,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266531226/149x198/e87bc0c7e2/1535608897?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266531226/298x396/109463bf63/1535608897?v=1","title":"Computer Science Chapter 5 Constructors and Destructors From Sumita Arora","short_title":"Computer Science Chapter 5 Constructors and Destructors From Sumita Arora","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266531226,"track":"flattened_recommender","doc_uuid":"+FpKTWFc9Q2AKVEjB2nnAkiBpIk="},"url":"https://www.scribd.com/document/266531226/Computer-Science-Chapter-5-Constructors-and-Destructors-From-Sumita-Arora","top_badge":null},"266531767":{"type":"document","id":266531767,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266531767/149x198/351f868bfd/1539805437?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/266531767/298x396/60641f4690/1539805437?v=1","title":"c++_chapter_7_solution_of_data_handling_by_sumita_aroa","short_title":"c++_chapter_7_solution_of_data_handling_by_sumita_aroa","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266531767,"track":"flattened_recommender","doc_uuid":"PWAhbF0vBNcTInVQ5MkDNLvgeac="},"url":"https://www.scribd.com/document/266531767/c-chapter-7-solution-of-data-handling-by-sumita-aroa","top_badge":null},"302651870":{"type":"document","id":302651870,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/302651870/149x198/223cae394b/1539111436?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/302651870/298x396/82404303d7/1539111436?v=1","title":"Computer science class 12 Project","short_title":"Computer science class 12 Project","author":"nitesh gupta","tracking":{"object_type":"document","object_id":302651870,"track":"flattened_recommender","doc_uuid":"qcy31IXy3J9NTt1JY4B3cP+NWvw="},"url":"https://www.scribd.com/document/302651870/Computer-science-class-12-Project","top_badge":null},"312726401":{"type":"document","id":312726401,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312726401/149x198/b0a7168798/1463378890?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312726401/298x396/02e86a2282/1463378890?v=1","title":"Ec 2009 Gate Paper","short_title":"Ec 2009 Gate Paper","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312726401,"track":"flattened_recommender","doc_uuid":"CbkAsFIN/PNgJcfr5Tvhv8pfWjg="},"url":"https://www.scribd.com/doc/312726401/Ec-2009-Gate-Paper","top_badge":null},"312727189":{"type":"document","id":312727189,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312727189/149x198/b26a7f5f80/1463378893?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312727189/298x396/66538dfc2b/1463378893?v=1","title":"Aptitude Paper Explanatation - Gate2010","short_title":"Aptitude Paper Explanatation - Gate2010","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312727189,"track":"flattened_recommender","doc_uuid":"3HYyj3WXqfdpIzBghO3dtGg29TA="},"url":"https://www.scribd.com/doc/312727189/Aptitude-Paper-Explanatation-Gate2010","top_badge":null},"312727361":{"type":"document","id":312727361,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312727361/149x198/a9b0a8510f/1463379057?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312727361/298x396/e62c270f3b/1463379057?v=1","title":"5","short_title":"5","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312727361,"track":"flattened_recommender","doc_uuid":"8/sHSV2ZI4WIVTdxaYhYVYaE1V0="},"url":"https://www.scribd.com/document/312727361/5","top_badge":null},"312727996":{"type":"document","id":312727996,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312727996/149x198/17012bdd4b/1463379750?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312727996/298x396/0dbc4c429e/1463379750?v=1","title":"Common German Adverbs and Adjectives","short_title":"Common German Adverbs and Adjectives","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312727996,"track":"flattened_recommender","doc_uuid":"tBaVLlCSP+gwu1gUNUgDiY5svxw="},"url":"https://www.scribd.com/doc/312727996/Common-German-Adverbs-and-Adjectives","top_badge":null},"312728286":{"type":"document","id":312728286,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312728286/149x198/92687f1a84/1463380057?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312728286/298x396/847cf1a4af/1463380057?v=1","title":"set 1","short_title":"set 1","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312728286,"track":"flattened_recommender","doc_uuid":"mU6IppgohN28GCkV5u24KkK8wO0="},"url":"https://www.scribd.com/document/312728286/set-1","top_badge":null},"312728387":{"type":"document","id":312728387,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312728387/149x198/f96e16eeb8/1463380146?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312728387/298x396/baa30e6352/1463380146?v=1","title":"set 2","short_title":"set 2","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312728387,"track":"flattened_recommender","doc_uuid":"yNcsBZu29l/DLKDI6yrSvv4kHwQ="},"url":"https://www.scribd.com/doc/312728387/set-2","top_badge":null},"331552044":{"type":"document","id":331552044,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/331552044/149x198/b0ab2f03f8/1523801079?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/331552044/298x396/804d94b255/1523801079?v=1","title":"Sumita Arora Classes and Objects Long Answer Questions","short_title":"Sumita Arora Classes and Objects Long Answer Questions","author":"vaibhavmaan","tracking":{"object_type":"document","object_id":331552044,"track":"flattened_recommender","doc_uuid":"PfJU645bOwSXzrSrGS+v9rdkg+I="},"url":"https://www.scribd.com/document/331552044/Sumita-Arora-Classes-and-Objects-Long-Answer-Questions","top_badge":null},"337913350":{"type":"document","id":337913350,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/337913350/149x198/d12be08fb0/1534604678?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/337913350/298x396/1670ffcd52/1534604678?v=1","title":"Sumita Arora Class 12 Solutions","short_title":"Sumita Arora Class 12 Solutions","author":"Saarthak Kamal","tracking":{"object_type":"document","object_id":337913350,"track":"flattened_recommender","doc_uuid":"bJEVHTfks54SQbNqAiBULxxUV/E="},"url":"https://www.scribd.com/document/337913350/Sumita-Arora-Class-12-Solutions","top_badge":null},"370117750":{"type":"document","id":370117750,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/370117750/149x198/ec6e69439d/1537199298?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/370117750/298x396/f4fe72f6fe/1537199298?v=1","title":"Chapter-12 Simple Queries in SQL Solutions to Sumita Arora.pdf","short_title":"Chapter-12 Simple Queries in SQL Solutions to Sumita Arora.pdf","author":"shubham","tracking":{"object_type":"document","object_id":370117750,"track":"flattened_recommender","doc_uuid":"DV+67GxSwICts2YNqF7oDoc7R+E="},"url":"https://www.scribd.com/document/370117750/Chapter-12-Simple-Queries-in-SQL-Solutions-to-Sumita-Arora-pdf","top_badge":null},"375338964":{"type":"document","id":375338964,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/375338964/149x198/979417741e/1538972005?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/375338964/298x396/8e2b5041ab/1538972005?v=1","title":"123444332-c-programs-class-11","short_title":"123444332-c-programs-class-11","author":"Armaan Chauhan","tracking":{"object_type":"document","object_id":375338964,"track":"flattened_recommender","doc_uuid":"MgoF/6gFXAZfN9Ou8mLzprx5YNQ="},"url":"https://www.scribd.com/document/375338964/123444332-c-programs-class-11","top_badge":null}}},"seo_roadblock_props_path":"/doc-page/seo-roadblock-props/312726209","signup_context":null,"toolbar":{"search_path":"/search-4gen?allowed_pages=1%2C2&auth_token=dtyDi7cptaS%2Bs%2BpES1%2FxDjTZJ9c%3D&authenticity_token=wavfEekeBfwbd5h%2F8Ih5ym7fYjUPMOvJv%2BDlhnzts1PPdSyiHyn2YlYooPd2DP3Fs11vU0e2EWBCc1IQ5KcTEg%3D%3D&expires=1540501254&wordDocumentId=312726209&wordUploadId=318100810"},"renewal_nag_props":null}-->
areacode .name). i. cin>>room. int number. Read the three dimensions of the room and calculate the volume it represents.number << endl .area_code<< "-" << rec[i]. } 5.

cin>> Customer[i].cust_nm).l_in_feet + (float)(room.b_in_inch >> ch.l_in_inch/12). double volm = (double)len * br*height.h> #include<stdio. cin >>room.h_in_feet + (float)(room. cout<< "Enter Date of Sale (dd-mm-yy):". cout << "\n Enter height in feet and inches(XfeetXinch…) :". description quantity unit price discount percentage sales tax percentage Ans. cout<< "\n The Length of the Room = " << len << "feet". br.. gets( Customer[i].h> #include<conio. void main() { invo Customer[10]. int mon. getch(). cin >>room. date D_O_sale. len =room.b_in_feet >> ch >>room. br = room.".h_in_feet >> ch >>room. float sales_tax. for(int i = 0. cin >> 6. cout<< "\n The Volume of the Room =" << height << "feet". 18 . char c. struct invo { int cust_num.cust_num. float discount. int quan.h> struct date { int day.):". char add[40]. char cust_nm[20].b_in_inch/12). height = room.h_in_inch/12).cout << "\n Enter breadth in feet and inches (XfeetXinch.feet". int yr.h_in_inch >> ch. }. cout<< "\n The Volume of the Room =" << volm << "c. cout<< "\n The Breadth of the Room = "<< br << "feet". float len. int unit_pr. } Write a program to prepare the invoice from the following data : customer number customer name and address date of sale. i< 10. }.b_in_feet + (float)(room. i++) { cout<< "\n Enter the customer no. cout<< "\n Enter the Customer name :". #include<iostream. height. char descp[30].

double year. cin>> Customer[i].h> #include<stdio. cin>>client[i]. cout<<" \n Customer Num.mon << "-" << Customer[i].i++) { cout<<"enter customer name = ".unit_pr. i< 10. } clrscr().i<50.day>>c>>Customer[i]. Details of 50 clients of an investment company are stored in an array of structures. gets(client[i]. Customer Name \t Address \t Date-of-Sale Desc \t Quantity Unit Price Discount% Sales-Tax% \n\n".D_O_sale.code. #include<math.name).discount << " " << Customer[i]. cout<<"enter date of starting = ".yr << " "<< Customer[i]. cout<<"\n Discount :". double d_o_s.descp << "\t" << Customer[i]. double amount. Ans.sales_tax << endl . cout<<"\n Sales Tax :". for(i=0. and total amount.discount. cout<<"enter code = ". 19 .cust_num << " " << Customer[i]. }.j. yr. cin >> Customer[i]. Write a program to calculate compound interest for these clients. cin>> Customer[i]. i++) { cout<< Customer[i].add << "\t" << Customer[i]. void main() { int i.h> struct client_info { char name[50].Customer[i].D_O_sale.D_O_sale. double compound. } getch( ).d_o_s. cout<< "\nEnter Quantity : ". number of years. int code. } 7.h> #include<iostream.D_O_sale.quan. interest rate. cout<<"enter number of years = ". gets( Customer[i].quan << " "<< Customer[i].D_O_sale. for( i = 0. cin>>client[i]. cout<< "\n Enter Description :". date of starting.descp). cout<< "\n Unit Price ?".x.D_O_sale. double rate. client_info client[50].day<<"-"<< Customer[i].unit_pr << " "<< Customer[i]. code. cout<<"================================================================ ". Details include customer name.h> #include<conio. cin >> Customer[i].sales_tax.cust_nm << "\t" << Customer[i].mon>>c>>Customer[i].

cout<<"enter total amount =".h> #include<stdio.m1< 40 && student[i]. } getch(). cout<<"enter intrest rate = ".m2 < 40) || (student[i]. cin >> student[i].roll. } getch(). gets(student[i].rate<<endl. cout<<"number of years = "<<client[i].amount*pow(( 1. cout << "\n Enter marks of three subjects :". marks in three subjects). float m1.amount.0+client[i].i++) { cout<<" customer name = "<<client[i]. }. An array stores details of 25 students (roll no.h> #include<conio. m3. i++) { cout << "\n Enter Roll no : ". #include<iostream.rate. } 8.h> struct stud { int roll. } Write a program. Each record should be 20 .nm).d_o_s<<endl.m3 < 40)) cout << student[i].m2 < 40 && student[i].code<<endl. for(i =0 .m2 >> student[i]. cout<<"code = "<<client[i]. typedef stud S. char nm[50]. compound=x-client[i]. which will read in student records and print them in sorted order.amount.0). cout << "\n Enter Name : ". cout<<"total amount ="<<client[i]. 9.year). } cout<< "\n STUDENTS FAILED IN MORE THAN 1 SUBJECT \n ".roll << "\t" << student[i]. void main() { S student[25]. cout<<"intrest rate = "<<client[i].rate/100.m1 >> student[i].cin>>client[i]. Write a program to create such an array and print out a list of students who have failed in more than one subjects. m2. for(int i =0 .amount<<endl. Ans. name. i < 25 . i < 25 .m3 . cin>>client[i]. i++) { if(( student[i]. cin>>client[i].i<50. cout<<"date of starting = "<<client[i].nm << "\n".name<<endl.m3 < 40) || ( student[i]. x= client[i].year<<endl. Assume 40% as pass marks.year.m1 < 40 && student[i]. cin >> student[i]. cout<<"compound intrest ="<<compound<<endl. } for(i=0. client[i].

fname). i++) { for(int j = i+1. }. s[i]. tlname[20]. tfname).represented by a C structure having member/fields for the first name. cout<<"\n Enter ID NO".fname).fname)>0) { strcpy(tfname. 21 . cin>>s[i].lname. last name and student number (an integer). s[j]. s[i].h> #include <conio. cin>>s[i].fname. 25) if you want to use an array.id_no. You should sort first by first name. You can read the information in from the console or from a file.s[j]. and should print out the sorted list to the console. strcpy(s[i].lname. t = s[i]. strcpy(tlname.tlname). char lname[20]. } for(i = 0. s[j]. s[j]. strcpy(s[j]. then by last name (this way they will be fully sorted by name when you finish). i<24. #include <iostream. strcpy(s[i]. for(int i = 0. i++) { cout<<"\n Enter Student's first name:". You can assume some reasonable upper limit on number of records (say.lname)>0) { strcpy(tfname.fname. strcpy(s[j]. void main() { S s[5]. j++) { if(strcmp(s[i]. char tfname[20].fname).lname.id_no = t. } else { if(strcmp(s[i].fname. Ans.s[i]. j<5.h> struct student { char fname[20].lname).fname)==0) { if(strcmp(s[i]. int id_no.id_no. int t. i<5. clrscr().lname.s[i].id_no.h> #include <stdio.fname. cin>>s[i].h> #include <string. cout<<"\n Enter Student's last name:". s[j]. s[j].lname).id_no = s[j].fname. typedef student S.

Display an error message in case of an incorrect input. i++) { cout << "\n Country's name : ". k++) { cout<<"\n"<< s[k].h> #include <stdio. s[i]. } 10.h> #include <string. void main() { country c[3].30). strcpy(s[i].ignore(). strcpy(s[j].lname. A linear array if size 50 stores following information’s: name of the country.h> #include <process. t=s[i]. strcpy(s[j]. 30). cin. cin. k<5.lname). cout << "\n Per capita income :".lname. char capital[30]. cin.h> #include<conio.} } } strcpy(s[i]. for( int i=0.capital.fname.getline(c[i]. } } cout<<"\n\n FIRST NAME \t LASTNAME \t ID NO ".h> struct country { char country[30]. #include<iostream.fname). (b) To read name of the capital city and displays country's name and displays country's name and per capital income.s[j].country. for(int k = 0. Write a complete program in C++ to do the following : (a) To read a country's name and display capital and per-ca pita income.s[i].tfname).tlname).fname. float income. Ans.lname).id_no=t. strcpy(tlname. i<3 . cout << "\n Country's capital :".lname. 22 . } getch().getline(c[i].fname<<"\t" << s[k].s[j].id_no. s[j]. clrscr(). country's capital and per capita income of the country.id_no=s[j].id_no. }.

cin.30). cout << "\n Enter Country name : ".income << "\n\n" .ignore(). if(strcmp(c[m]. cin. m<3 .income << "\n" . int flag = 0. k<3 . k++) { flag = 0. } if(flag==1) { cout << c[m].capital << "\t" << c[m].getline(cap. } if(flag==1) { cout<< "\n" << c[k]. for(int k=0. cout << "\n Enter Capital name : ".country. char cap[30].cin >> c[i].cap)==0) { flag = 1. m++) { flag = 0. } char ch = 'y'.capital.capital << "\t" << c[k].getline(con. } } char con[30].income.country << "\t" << c[k]. 30). for(int m=0. } } getch(). cin. if(strcmp(c[k]. } 23 .con)==0) { flag = 1.

","doc_promotions_enabled":false,"static_promo_banner_cta_url":"https://www.scribd.com/"},"eligible_for_exclusive_trial_roadblock":false,"eligible_for_seo_roadblock":false,"exclusive_free_trial_roadblock_props_path":"/doc-page/exclusive-free-trial-props/312726209","flashes":[],"footer_props":{"urls":{"about":"/about","press":"/press","blog":"http://literally.scribd.com/","careers":"/careers","contact":"/contact","plans_landing":"/subscribe","referrals":"/referrals?source=footer","giftcards":"/giftcards","faq":"/faq","accessibility":"/accessibility-policy","faq_paths":{"accounts":"https://support.scribd.com/hc/sections/202246346","announcements":"https://support.scribd.com/hc/sections/202246066","copyright":"https://support.scribd.com/hc/sections/202246086","downloading":"https://support.scribd.com/hc/articles/210135046","publishing":"https://support.scribd.com/hc/sections/202246366","reading":"https://support.scribd.com/hc/sections/202246406","selling":"https://support.scribd.com/hc/sections/202246326","store":"https://support.scribd.com/hc/sections/202246306","status":"https://support.scribd.com/hc/en-us/articles/360001202872","terms":"https://support.scribd.com/hc/sections/202246126","writing":"https://support.scribd.com/hc/sections/202246366","adchoices":"https://support.scribd.com/hc/articles/210129366","paid_features":"https://support.scribd.com/hc/sections/202246306","failed_uploads":"https://support.scribd.com/hc/en-us/articles/210134586-Troubleshooting-uploads-and-conversions","copyright_infringement":"https://support.scribd.com/hc/en-us/articles/210128946-DMCA-copyright-infringement-takedown-notification-policy","end_user_license":"https://support.scribd.com/hc/en-us/articles/210129486","terms_of_use":"https://support.scribd.com/hc/en-us/articles/210129326-General-Terms-of-Use"},"publishers":"/publishers","static_terms":"/terms","static_privacy":"/privacy","copyright":"/copyright","ios_app":"https://itunes.apple.com/us/app/scribd-worlds-largest-online/id542557212?mt=8&uo=4&at=11lGEE","android_app":"https://play.google.com/store/apps/details?id=com.scribd.app.reader0&hl=en","books":"/books","sitemap":"/directory"}},"global_nav_props":{"header_props":{"logo_src":"/images/landing/home2_landing/scribd_logo_horiz_small.svg","root_url":"https://www.scribd.com/","search_term":"","small_logo_src":"/images/logos/scribd_s_logo.png","uploads_url":"/upload-document","search_props":{"redirect_to_app":true,"search_url":"/search","query":"","search_page":false}},"user_menu_props":null,"sidebar_props":{"urls":{"bestsellers":"https://www.scribd.com/bestsellers","home":"https://www.scribd.com/","saved":"/saved","subscribe":"/archive/pmp_checkout?doc=312726209&metadata=%7B%22context%22%3A%22pmp%22%2C%22action%22%3A%22start_trial%22%2C%22logged_in%22%3Afalse%2C%22platform%22%3A%22web%22%7D","top_charts":"/bestsellers","upload":"https://www.scribd.com/upload-document"},"categories":{"book":{"icon":"icon-ic_book","icon_filled":"icon-ic_book_fill","url":"https://www.scribd.com/books","name":"Books","type":"book"},"news":{"icon":"icon-ic_articles","icon_filled":"icon-ic_articles_fill","url":"https://www.scribd.com/news","name":"News","type":"news"},"audiobook":{"icon":"icon-ic_audiobook","icon_filled":"icon-ic_audiobook_fill","url":"https://www.scribd.com/audiobooks","name":"Audiobooks","type":"audiobook"},"magazine":{"icon":"icon-ic_magazine","icon_filled":"icon-ic_magazine_fill","url":"https://www.scribd.com/magazines","name":"Magazines","type":"magazine"},"document":{"icon":"icon-ic_document","icon_filled":"icon-ic_document_fill","url":"https://www.scribd.com/docs","name":"Documents","type":"document"},"sheet_music":{"icon":"icon-ic_songbook","icon_filled":"icon-ic_songbook_fill","url":"https://www.scribd.com/sheetmusic","name":"Sheet Music","type":"sheet_music"},"summary":{"icon":"icon-ic_globalnav_snapshot","icon_filled":"icon-ic_globalnav_snapshot_fill","url":"https://www.scribd.com/snapshots","name":"Snapshots","type":"summary"}},"nav_categories":["mixed","book","audiobook","magazine","document","sheet_music"],"selected_content_type":"mixed","username":"","search_overlay_props":{"search_input_props":{"focused":false,"keep_suggestions_on_blur":false}}}},"recommenders":{"related_titles_recommender":{"ids":[266531767,250465091,370117750,331552044,235943442,266530872,227866237,189080321,236371039,266529043,255715565,253387563,337913350,117639449,266531226,105450002,37279946,208304181,208305940,231803044,302651870,202329814,174370134,122821934,234635419,245174111,244371864,79759115,60512581,375338964,312727361,312727996,312728286,312728387,233666472,312727189,312726401],"title_link":null,"title":null,"track_opts":{"compilation_id":"jjqUkBeRF6Pf+LjhMYWugogNkdg=","module_id":"yg4pZBkX4/gorWrlV/9M+3B6qfY=","widget_name":"right sidebar","track_id":"flattened_recommender"}},"footer_recommenders":{"recommenders":[{"ids":[266531767,250465091,370117750,331552044,235943442,266530872,227866237,189080321,236371039,266529043,255715565,253387563,337913350,117639449,266531226,105450002,37279946,208304181,208305940,231803044,302651870,202329814,174370134,122821934,234635419,245174111,244371864,79759115,60512581,375338964],"title_link":null,"title":"Documents Similar To Class 11 Structure Sumita Arora Solved Assignment","track_opts":{"compilation_id":"jjqUkBeRF6Pf+LjhMYWugogNkdg=","module_id":"ppEEk13uVETDYPRET45YZxICof8=","widget_name":"document_carousel"}},{"ids":[312727361,312727996,312728286,312728387,233666472,312727189,312726401],"title_link":null,"title":"More From Sathiya Ramesh","track_opts":{"compilation_id":"jjqUkBeRF6Pf+LjhMYWugogNkdg=","module_id":"SIEp5bbTjMRlegircIGM9Jyno0s=","widget_name":"document_carousel"}}]},"seo_new_docs_recommenders":{"recommenders":[]},"documents":{"37279946":{"type":"document","id":37279946,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/37279946/149x198/3899b32ef7/1516518365?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/37279946/298x396/8fc9a8999f/1516518365?v=1","title":"CLASS XI COMPUTER SCIENCE PAPER FOR HALF YEARLY EXAM 2010","short_title":"CLASS XI COMPUTER SCIENCE PAPER FOR HALF YEARLY EXAM 2010","author":"sm_manda","tracking":{"object_type":"document","object_id":37279946,"track":"flattened_recommender","doc_uuid":"nP/nzmnBdMDKYathooZCihr/GFc="},"url":"https://www.scribd.com/doc/37279946/CLASS-XI-COMPUTER-SCIENCE-PAPER-FOR-HALF-YEARLY-EXAM-2010","top_badge":null},"60512581":{"type":"document","id":60512581,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/60512581/149x198/6a112c3da1/1537600510?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/60512581/298x396/4801d78c4d/1537600510?v=1","title":"Ch- 3 Getting Started With Programming Using IDE","short_title":"Ch- 3 Getting Started With Programming Using IDE","author":"Divyesh Shukla","tracking":{"object_type":"document","object_id":60512581,"track":"flattened_recommender","doc_uuid":"7sOf/qYdSqWprTjTcllg++y5rH4="},"url":"https://www.scribd.com/doc/60512581/Ch-3-Getting-Started-With-Programming-Using-IDE","top_badge":null},"79759115":{"type":"document","id":79759115,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/79759115/149x198/25da6ae0f5/1518097581?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/79759115/298x396/2ba48a9735/1518097581?v=1","title":"C++ Practical File Complete","short_title":"C++ Practical File Complete","author":"Kevin Alluvalia","tracking":{"object_type":"document","object_id":79759115,"track":"flattened_recommender","doc_uuid":"q8olhs9FgLuvElEakMNXu8z9HsQ="},"url":"https://www.scribd.com/document/79759115/C-Practical-File-Complete","top_badge":null},"105450002":{"type":"document","id":105450002,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/105450002/149x198/b2ace17a1a/1538461023?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/105450002/298x396/59f626e48b/1538461023?v=1","title":"List of Programs for Class XI_2012","short_title":"List of Programs for Class XI_2012","author":"Niti Arora","tracking":{"object_type":"document","object_id":105450002,"track":"flattened_recommender","doc_uuid":"KH/YSSWOCB8WkLJ4lh87P0C8ju0="},"url":"https://www.scribd.com/document/105450002/List-of-Programs-for-Class-XI-2012","top_badge":null},"117639449":{"type":"document","id":117639449,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/117639449/149x198/62380a7f3c/1530044075?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/117639449/298x396/6ccae80e61/1530044075?v=1","title":"CBSE Class XI Computer Science Notes","short_title":"CBSE Class XI Computer Science Notes","author":"expertarjun","tracking":{"object_type":"document","object_id":117639449,"track":"flattened_recommender","doc_uuid":"SUbs9AbgwrjrWhRh3Z0jdO24nsg="},"url":"https://www.scribd.com/doc/117639449/CBSE-Class-XI-Computer-Science-Notes","top_badge":null},"122821934":{"type":"document","id":122821934,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/122821934/149x198/7e0c7fe89e/1539787439?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/122821934/298x396/66b256bb50/1539787439?v=1","title":"computer science project file for class XII CBSE","short_title":"computer science project file for class XII CBSE","author":"JYOTI DOGRA","tracking":{"object_type":"document","object_id":122821934,"track":"flattened_recommender","doc_uuid":"RHTpbRvEBSzZJFIL2BYB9gb9ODA="},"url":"https://www.scribd.com/doc/122821934/computer-science-project-file-for-class-XII-CBSE","top_badge":null},"174370134":{"type":"document","id":174370134,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/174370134/149x198/329fd746fa/1518886356?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/174370134/298x396/90d6388d4c/1518886356?v=1","title":"Class Xi Computer Science Chapter 5.Unlocked","short_title":"Class Xi Computer Science Chapter 5.Unlocked","author":"manas_j","tracking":{"object_type":"document","object_id":174370134,"track":"flattened_recommender","doc_uuid":"IlLow75x2nV/h5SjyfSNP0mtuj8="},"url":"https://www.scribd.com/document/174370134/Class-Xi-Computer-Science-Chapter-5-Unlocked","top_badge":null},"189080321":{"type":"document","id":189080321,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/189080321/149x198/0a5b289bd0/1521177870?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/189080321/298x396/bedfc2755a/1521177870?v=1","title":"1 c++ Revision Tour","short_title":"1 c++ Revision Tour","author":"krishnaakp","tracking":{"object_type":"document","object_id":189080321,"track":"flattened_recommender","doc_uuid":"syMNOloReBuyZ9VT0pGgwthd1Fo="},"url":"https://www.scribd.com/document/189080321/1-c-Revision-Tour","top_badge":null},"202329814":{"type":"document","id":202329814,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/202329814/149x198/fa97f13819/1539106954?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/202329814/298x396/cbfd9a66d0/1539106954?v=1","title":"Comp Science Practical File 12th class","short_title":"Comp Science Practical File 12th class","author":"cursator","tracking":{"object_type":"document","object_id":202329814,"track":"flattened_recommender","doc_uuid":"zic5UWDjCZ3m6UX3ntPY4Xx1Ews="},"url":"https://www.scribd.com/document/202329814/Comp-Science-Practical-File-12th-class","top_badge":null},"208304181":{"type":"document","id":208304181,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/208304181/149x198/005d56de76/1512920571?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/208304181/298x396/6c3bbd230c/1512920571?v=1","title":"CBSE Sample Paper for Class 11 English - Set E","short_title":"CBSE Sample Paper for Class 11 English - Set E","author":"aglasem","tracking":{"object_type":"document","object_id":208304181,"track":"flattened_recommender","doc_uuid":"rk7OPoSxkL+LXC8HAiv77vQeHSI="},"url":"https://www.scribd.com/document/208304181/CBSE-Sample-Paper-for-Class-11-English-Set-E","top_badge":null},"208305940":{"type":"document","id":208305940,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/208305940/149x198/3da59533a9/1507355442?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/208305940/298x396/69ff495016/1507355442?v=1","title":"CBSE Sample Paper for Class 11 Computer Science - Set A","short_title":"CBSE Sample Paper for Class 11 Computer Science - Set A","author":"aglasem","tracking":{"object_type":"document","object_id":208305940,"track":"flattened_recommender","doc_uuid":"Vv0RDi8cOh2yagvivmfSZs/boTk="},"url":"https://www.scribd.com/document/208305940/CBSE-Sample-Paper-for-Class-11-Computer-Science-Set-A","top_badge":null},"227866237":{"type":"document","id":227866237,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/227866237/149x198/d27120cef3/1441276598?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/227866237/298x396/2b8122bc36/1441276598?v=1","title":"sumita_arora_class_12_c++_classes_and_objects","short_title":"sumita_arora_class_12_c++_classes_and_objects","author":"Arshil Khan","tracking":{"object_type":"document","object_id":227866237,"track":"flattened_recommender","doc_uuid":"eb8zvMh4O0Jv0aIYQX7U7cR15as="},"url":"https://www.scribd.com/doc/227866237/sumita-arora-class-12-c-classes-and-objects","top_badge":null},"231803044":{"type":"document","id":231803044,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/231803044/149x198/996cdc8c40/1518932675?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/231803044/298x396/d931a3fb5d/1518932675?v=1","title":"Ch 10 Linked Lists Stacks and Queues","short_title":"Ch 10 Linked Lists Stacks and Queues","author":"maya__scribd","tracking":{"object_type":"document","object_id":231803044,"track":"flattened_recommender","doc_uuid":"CSfx4tiytxMnM5FLOUZlz4l0KN0="},"url":"https://www.scribd.com/document/231803044/Ch-10-Linked-Lists-Stacks-and-Queues","top_badge":null},"233666472":{"type":"document","id":233666472,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/233666472/149x198/dd98b41ab4/1405252953?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/233666472/298x396/39178e1414/1405252953?v=1","title":"syllabus","short_title":"syllabus","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":233666472,"track":"flattened_recommender","doc_uuid":"qHvk9gu7Lj/0KqI+KhImjBmyr0s="},"url":"https://www.scribd.com/doc/233666472/syllabus","top_badge":null},"234635419":{"type":"document","id":234635419,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/234635419/149x198/f01b7b19cc/1531758305?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/234635419/298x396/d3a882bbeb/1531758305?v=1","title":"CBSE 2014 Question Paper for Class 12 Computer Science - Outside Delhi","short_title":"CBSE 2014 Question Paper for Class 12 Computer Science - Outside Delhi","author":"aglasem","tracking":{"object_type":"document","object_id":234635419,"track":"flattened_recommender","doc_uuid":"bFwAKvIeqy6PqILpSFjAkj91wtY="},"url":"https://www.scribd.com/doc/234635419/CBSE-2014-Question-Paper-for-Class-12-Computer-Science-Outside-Delhi","top_badge":null},"235943442":{"type":"document","id":235943442,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/235943442/149x198/1b4b2093fc/1539520520?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/235943442/298x396/c63acf0120/1539520520?v=1","title":"class 11 sumita arora ","short_title":"class 11 sumita arora ","author":"Vipul Sachdeva","tracking":{"object_type":"document","object_id":235943442,"track":"flattened_recommender","doc_uuid":"G+bJhClPKz2yDOvGTtfU+DMufe4="},"url":"https://www.scribd.com/doc/235943442/class-11-sumita-arora","top_badge":null},"236371039":{"type":"document","id":236371039,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/236371039/149x198/433a5020cb/1539612985?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/236371039/298x396/954369ebfb/1539612985?v=1","title":"Xi Computer Science User Defined Functions","short_title":"Xi Computer Science User Defined Functions","author":"Vipul Sachdeva","tracking":{"object_type":"document","object_id":236371039,"track":"flattened_recommender","doc_uuid":"Ctu7OyWTwd75e/r4IwJkb2HuIPE="},"url":"https://www.scribd.com/document/236371039/Xi-Computer-Science-User-Defined-Functions","top_badge":null},"244371864":{"type":"document","id":244371864,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/244371864/149x198/9d3a27b16c/1539246082?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/244371864/298x396/500c85fa52/1539246082?v=1","title":"Computer Science Investigatory Project on Railway Ticket Reservation for Class 12","short_title":"Computer Science Investigatory Project on Railway Ticket Reservation for Class 12","author":"jenniferanna","tracking":{"object_type":"document","object_id":244371864,"track":"flattened_recommender","doc_uuid":"TTlHbUBaTZ0++4vcpYI82g+2iFo="},"url":"https://www.scribd.com/doc/244371864/Computer-Science-Investigatory-Project-on-Railway-Ticket-Reservation-for-Class-12","top_badge":null},"245174111":{"type":"document","id":245174111,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/245174111/149x198/a5bac2a887/1537025986?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/245174111/298x396/386c1c513a/1537025986?v=1","title":"Flow of Control 2","short_title":"Flow of Control 2","author":"Niti Arora","tracking":{"object_type":"document","object_id":245174111,"track":"flattened_recommender","doc_uuid":"UxF+E9+MTaCDAzso9U3XrtY2h74="},"url":"https://www.scribd.com/document/245174111/Flow-of-Control-2","top_badge":null},"250465091":{"type":"document","id":250465091,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/250465091/149x198/264d016045/1418911380?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/250465091/298x396/56ca9482c0/1418911380?v=1","title":"Computer Science CBSE class 11 chp-14","short_title":"Computer Science CBSE class 11 chp-14","author":"Chammu","tracking":{"object_type":"document","object_id":250465091,"track":"flattened_recommender","doc_uuid":"cZk4c0ikJyU47PtjRK4xzd/C8rY="},"url":"https://www.scribd.com/document/250465091/Computer-Science-CBSE-class-11-chp-14","top_badge":null},"253387563":{"type":"document","id":253387563,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/253387563/149x198/c922e22e92/1433357061?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/253387563/298x396/7e4ab60a3b/1433357061?v=1","title":"Computer Science Sumita Arora Database Concept","short_title":"Computer Science Sumita Arora Database Concept","author":"Muhammad Dawood","tracking":{"object_type":"document","object_id":253387563,"track":"flattened_recommender","doc_uuid":"ToM2IV9Qr58P7YnjEuZrJDmfXSQ="},"url":"https://www.scribd.com/document/253387563/Computer-Science-Sumita-Arora-Database-Concept","top_badge":null},"255715565":{"type":"document","id":255715565,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/255715565/149x198/896914c4ec/1536325950?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/255715565/298x396/9d888040ff/1536325950?v=1","title":"c++_arrays_chapter_9_class_xii","short_title":"c++_arrays_chapter_9_class_xii","author":"pranjal ","tracking":{"object_type":"document","object_id":255715565,"track":"flattened_recommender","doc_uuid":"z/H1lcAQYdsDvMkdCLLc/nztGCk="},"url":"https://www.scribd.com/document/255715565/c-arrays-chapter-9-class-xii","top_badge":null},"266529043":{"type":"document","id":266529043,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266529043/149x198/574b62007b/1538148339?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/266529043/298x396/f47c00c6a6/1538148339?v=1","title":"cbse_computer_science_operators_and_expressions_solutions.pdf","short_title":"cbse_computer_science_operators_and_expressions_solutions.pdf","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266529043,"track":"flattened_recommender","doc_uuid":"bxGe6YKURd2qUBEFPg4YUhkbglQ="},"url":"https://www.scribd.com/doc/266529043/cbse-computer-science-operators-and-expressions-solutions-pdf","top_badge":null},"266530872":{"type":"document","id":266530872,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266530872/149x198/66dffbddaf/1537969150?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266530872/298x396/9985dbe242/1537969150?v=1","title":"cbse_class_11_c++_ flow_of_control_solved_questions.pdf","short_title":"cbse_class_11_c++_ flow_of_control_solved_questions.pdf","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266530872,"track":"flattened_recommender","doc_uuid":"DTgH9otVQcqW3rGY+mnE9VcvUZc="},"url":"https://www.scribd.com/document/266530872/cbse-class-11-c-flow-of-control-solved-questions-pdf","top_badge":null},"266531226":{"type":"document","id":266531226,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266531226/149x198/e87bc0c7e2/1535608897?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266531226/298x396/109463bf63/1535608897?v=1","title":"Computer Science Chapter 5 Constructors and Destructors From Sumita Arora","short_title":"Computer Science Chapter 5 Constructors and Destructors From Sumita Arora","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266531226,"track":"flattened_recommender","doc_uuid":"+FpKTWFc9Q2AKVEjB2nnAkiBpIk="},"url":"https://www.scribd.com/document/266531226/Computer-Science-Chapter-5-Constructors-and-Destructors-From-Sumita-Arora","top_badge":null},"266531767":{"type":"document","id":266531767,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/266531767/149x198/351f868bfd/1539805437?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/266531767/298x396/60641f4690/1539805437?v=1","title":"c++_chapter_7_solution_of_data_handling_by_sumita_aroa","short_title":"c++_chapter_7_solution_of_data_handling_by_sumita_aroa","author":"Kamal Joshi","tracking":{"object_type":"document","object_id":266531767,"track":"flattened_recommender","doc_uuid":"PWAhbF0vBNcTInVQ5MkDNLvgeac="},"url":"https://www.scribd.com/document/266531767/c-chapter-7-solution-of-data-handling-by-sumita-aroa","top_badge":null},"302651870":{"type":"document","id":302651870,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/302651870/149x198/223cae394b/1539111436?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/302651870/298x396/82404303d7/1539111436?v=1","title":"Computer science class 12 Project","short_title":"Computer science class 12 Project","author":"nitesh gupta","tracking":{"object_type":"document","object_id":302651870,"track":"flattened_recommender","doc_uuid":"qcy31IXy3J9NTt1JY4B3cP+NWvw="},"url":"https://www.scribd.com/document/302651870/Computer-science-class-12-Project","top_badge":null},"312726401":{"type":"document","id":312726401,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312726401/149x198/b0a7168798/1463378890?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312726401/298x396/02e86a2282/1463378890?v=1","title":"Ec 2009 Gate Paper","short_title":"Ec 2009 Gate Paper","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312726401,"track":"flattened_recommender","doc_uuid":"CbkAsFIN/PNgJcfr5Tvhv8pfWjg="},"url":"https://www.scribd.com/doc/312726401/Ec-2009-Gate-Paper","top_badge":null},"312727189":{"type":"document","id":312727189,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312727189/149x198/b26a7f5f80/1463378893?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312727189/298x396/66538dfc2b/1463378893?v=1","title":"Aptitude Paper Explanatation - Gate2010","short_title":"Aptitude Paper Explanatation - Gate2010","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312727189,"track":"flattened_recommender","doc_uuid":"3HYyj3WXqfdpIzBghO3dtGg29TA="},"url":"https://www.scribd.com/doc/312727189/Aptitude-Paper-Explanatation-Gate2010","top_badge":null},"312727361":{"type":"document","id":312727361,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312727361/149x198/a9b0a8510f/1463379057?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312727361/298x396/e62c270f3b/1463379057?v=1","title":"5","short_title":"5","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312727361,"track":"flattened_recommender","doc_uuid":"8/sHSV2ZI4WIVTdxaYhYVYaE1V0="},"url":"https://www.scribd.com/document/312727361/5","top_badge":null},"312727996":{"type":"document","id":312727996,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312727996/149x198/17012bdd4b/1463379750?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312727996/298x396/0dbc4c429e/1463379750?v=1","title":"Common German Adverbs and Adjectives","short_title":"Common German Adverbs and Adjectives","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312727996,"track":"flattened_recommender","doc_uuid":"tBaVLlCSP+gwu1gUNUgDiY5svxw="},"url":"https://www.scribd.com/doc/312727996/Common-German-Adverbs-and-Adjectives","top_badge":null},"312728286":{"type":"document","id":312728286,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312728286/149x198/92687f1a84/1463380057?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312728286/298x396/847cf1a4af/1463380057?v=1","title":"set 1","short_title":"set 1","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312728286,"track":"flattened_recommender","doc_uuid":"mU6IppgohN28GCkV5u24KkK8wO0="},"url":"https://www.scribd.com/document/312728286/set-1","top_badge":null},"312728387":{"type":"document","id":312728387,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/312728387/149x198/f96e16eeb8/1463380146?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/312728387/298x396/baa30e6352/1463380146?v=1","title":"set 2","short_title":"set 2","author":"Sathiya Ramesh","tracking":{"object_type":"document","object_id":312728387,"track":"flattened_recommender","doc_uuid":"yNcsBZu29l/DLKDI6yrSvv4kHwQ="},"url":"https://www.scribd.com/doc/312728387/set-2","top_badge":null},"331552044":{"type":"document","id":331552044,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/331552044/149x198/b0ab2f03f8/1523801079?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/331552044/298x396/804d94b255/1523801079?v=1","title":"Sumita Arora Classes and Objects Long Answer Questions","short_title":"Sumita Arora Classes and Objects Long Answer Questions","author":"vaibhavmaan","tracking":{"object_type":"document","object_id":331552044,"track":"flattened_recommender","doc_uuid":"PfJU645bOwSXzrSrGS+v9rdkg+I="},"url":"https://www.scribd.com/document/331552044/Sumita-Arora-Classes-and-Objects-Long-Answer-Questions","top_badge":null},"337913350":{"type":"document","id":337913350,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/337913350/149x198/d12be08fb0/1534604678?v=1","retina_thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/337913350/298x396/1670ffcd52/1534604678?v=1","title":"Sumita Arora Class 12 Solutions","short_title":"Sumita Arora Class 12 Solutions","author":"Saarthak Kamal","tracking":{"object_type":"document","object_id":337913350,"track":"flattened_recommender","doc_uuid":"bJEVHTfks54SQbNqAiBULxxUV/E="},"url":"https://www.scribd.com/document/337913350/Sumita-Arora-Class-12-Solutions","top_badge":null},"370117750":{"type":"document","id":370117750,"thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/370117750/149x198/ec6e69439d/1537199298?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/370117750/298x396/f4fe72f6fe/1537199298?v=1","title":"Chapter-12 Simple Queries in SQL Solutions to Sumita Arora.pdf","short_title":"Chapter-12 Simple Queries in SQL Solutions to Sumita Arora.pdf","author":"shubham","tracking":{"object_type":"document","object_id":370117750,"track":"flattened_recommender","doc_uuid":"DV+67GxSwICts2YNqF7oDoc7R+E="},"url":"https://www.scribd.com/document/370117750/Chapter-12-Simple-Queries-in-SQL-Solutions-to-Sumita-Arora-pdf","top_badge":null},"375338964":{"type":"document","id":375338964,"thumb_url":"https://imgv2-1-f.scribdassets.com/img/document/375338964/149x198/979417741e/1538972005?v=1","retina_thumb_url":"https://imgv2-2-f.scribdassets.com/img/document/375338964/298x396/8e2b5041ab/1538972005?v=1","title":"123444332-c-programs-class-11","short_title":"123444332-c-programs-class-11","author":"Armaan Chauhan","tracking":{"object_type":"document","object_id":375338964,"track":"flattened_recommender","doc_uuid":"MgoF/6gFXAZfN9Ou8mLzprx5YNQ="},"url":"https://www.scribd.com/document/375338964/123444332-c-programs-class-11","top_badge":null}}},"seo_roadblock_props_path":"/doc-page/seo-roadblock-props/312726209","signup_context":null,"toolbar":{"search_path":"/search-4gen?allowed_pages=1%2C2&auth_token=dtyDi7cptaS%2Bs%2BpES1%2FxDjTZJ9c%3D&authenticity_token=wavfEekeBfwbd5h%2F8Ih5ym7fYjUPMOvJv%2BDlhnzts1PPdSyiHyn2YlYooPd2DP3Fs11vU0e2EWBCc1IQ5KcTEg%3D%3D&expires=1540501254&wordDocumentId=312726209&wordUploadId=318100810"},"renewal_nag_props":null}-->