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

--------------------------------------------------------Using C++ ----------------------------------------------------------------
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; 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
Get step-by-step solutions from verified subject matter experts
