Question: QUESTION 3 (15 MARKS) Figure 3.1 shows an incomplete C++ program. Refer to the figure and answer question 3(a) (c). Write the complete program. int


QUESTION 3 (15 MARKS) Figure 3.1 shows an incomplete C++ program. Refer to the figure and answer question 3(a) (c). Write the complete program. int main() { Person p; i cout > p.age; cout > p.salary; // Function call with structure variable // as an argument displayData (p); return 0; } Figure 3.1 d. Write a code segment to define struct Person (5 marks) b. Write function definition of displayData() (5 marks) c. Modify function main() to input 50 data of type Person
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
