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 stores the information of 40 students using structures. Declare a structure to represent mark with two (2) members of type float; carry marks and f i n a l e x a m. 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 f i n a l e x a m is 50 or more). Note: Please write C ++ statements WITHOUT blank spaces unless it is absolutely needed. Example: int num,a,b;
Trace the following program segment. Write the elements of each array after the execution of the statement(s) in Table 1.
Table 1
Please answer all parts of the question. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started