Question: . Question 1) Write a C program that corresponds EXACTLY to the following description. Note: all the program is in main. A structure type passenger

 . Question 1) Write a C program that corresponds EXACTLY tothe following description. Note: all the program is in main. A structuretype passenger is defined. It contains a string name (name of thepassenger) and a float w (weight of the passenger). Define the structure

. Question 1) Write a C program that corresponds EXACTLY to the following description. Note: all the program is in main. A structure type passenger is defined. It contains a string name (name of the passenger) and a float w (weight of the passenger). Define the structure type car as containing a float w (weight of the car) and an array p of 2 passenger structures. declare an array car arrl] of 2 car structures. Read the car weight and passenger information of each car from keyboard Finally, calculate and print with proper header the total weight of each car with its passengers inside it (total weight weight of the car + weight of the passengers). YOU MUST use some loops to scan each car and each passenger of the car. I Question 2) Build a binary search tree by adding the following nodes to the tree in the order they appear. Travers the binary tree in the inorder, preorder and postorder. 5 2 1 0 4 18 13 7 7 0 18 41 40 16 67 44 5 10 55 75 75 49 100 1 2 1 5 I Question 3) Show the queue after execution of each command QUEUE LIST headPtr tailPt1 AYA KAAN NOUR ZAKRIA a) Enqueue PELIN b) Dequeue a value c) Enqueue BERK d) Dequeue a value Question 4) Write a function list_pass () for the linked list. This function should list all student information which average is equal or greater than 50. Use the structure shown below as the node of the linked list struct student int stdno; char name[25]; int midterm, quiz, final; float aver struct student *nextPtr

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!