Question: Complete the following program with appropriate C++ statements. This program stores the information of 40 students using structures. Declare a structure to represent mark with

 Complete the following program with appropriate C++ statements. This program storesthe information of 40 students using structures. Declare a structure to represent

Complete the following program with appropriate C++ statements. This program stores the information of 40 students using structures. Declare a structure to represent mark with two (2) members of type float; carry marks and final exam. Then, create a structure named Student with three (3) members. The members include ID of type char array with size 10, name of type char array with size 40, and subject of type Mark. Store 40 input data in an array named stdn of type Student Print out a list of students who pass the subject (carry marks plus final exam is 50 or more). Note: Please write C ++ statements WITHOUT blank spaces unless it is absolutely needed. Example: int num, a,b; #include #include using namespace std; 1 2 13 4 15 6 int main() { /*a) Declare structure named Mark with 2 members of type float named carrymark and finalexam (3 marks)*/ 7 8 19 10 : 11 12 13 ; 14 }; 15 16 17 18 /*b) Declare structure named Student with 2 members of type array of char named ID and name with size 10 and 40, and one member of type Mark named subject (4 marks) */ { 19 20 21 3 22 123 ; 24 25 26 }; 27 28 const int SIZE = 40; 29 30 131 /*c) Define array named stdn of type Student with size 40. Note: use the declared SIZE constant (2 marks) 32 133 34 35 36 I/Get input data cout > 47 48 49 cout > ; 51 52 53 54 cout > 58 } 59 60 61 cout

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!