Question: Please send me the program in soft form also. Thank you. Q.No.1: [2+3+3=08 marks) Consider the data of following two tables. Department Departmenti DName Contact
Please send me the program in soft form also. Thank you.

Q.No.1: [2+3+3=08 marks) Consider the data of following two tables. Department Departmenti DName Contact No D 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo Sname Fname Department! D 111 Ali Ahmed1 112 Sana Waqar 113 Afzal Ikram 2 There are only two departments and are already initialized globally, but students can be upto 100 and just defined globally. To maintain how many student's record have been entered you can use global variable with name as count. Write a C++ program having: A) Structures, structure definitions and required initializations for the above scenario. B) Function which takes input data (RollNo, Sname, Fname and DepartmentID) of student from user within the function, then verify that the DepartmentID exists in Department or not? If exists then copy DName and ContactNo in the student record along with above input, otherwise just display a message that department does not exists. For example the following record will not be allowed to store in the Student table because departmentID 3 instance is not available in the department table. 115 Farooq Bilal 3 Function which displays number of students in each department in the following format, note that you should be the first student in UIIT and your data should be displayed in first row (Add screen shot of your output): Total Student Enrolled: 03 Students enrolled in UIIT: 02 Student enrolled in UIMS: 01 Seats Vacant: 100-03=97 DName Contact No YourNo Your Sname YourFname UIIT0300-1234567 Waqar JUIMS 0300-4567891 Roll No Sname Fname 112 Sana 113 Afzal Ikram JUIIT 10300-1234567 Q.No.1: [2+3+3=08 marks) Consider the data of following two tables. Department Departmenti DName Contact No D 1 UIIT 0300-1234567 2 UIMS 0300-4567891 Student RollNo Sname Fname Department! D 111 Ali Ahmed1 112 Sana Waqar 113 Afzal Ikram 2 There are only two departments and are already initialized globally, but students can be upto 100 and just defined globally. To maintain how many student's record have been entered you can use global variable with name as count. Write a C++ program having: A) Structures, structure definitions and required initializations for the above scenario. B) Function which takes input data (RollNo, Sname, Fname and DepartmentID) of student from user within the function, then verify that the DepartmentID exists in Department or not? If exists then copy DName and ContactNo in the student record along with above input, otherwise just display a message that department does not exists. For example the following record will not be allowed to store in the Student table because departmentID 3 instance is not available in the department table. 115 Farooq Bilal 3 Function which displays number of students in each department in the following format, note that you should be the first student in UIIT and your data should be displayed in first row (Add screen shot of your output): Total Student Enrolled: 03 Students enrolled in UIIT: 02 Student enrolled in UIMS: 01 Seats Vacant: 100-03=97 DName Contact No YourNo Your Sname YourFname UIIT0300-1234567 Waqar JUIMS 0300-4567891 Roll No Sname Fname 112 Sana 113 Afzal Ikram JUIIT 10300-1234567
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
