Question: Figure 3.1 shows an incomplete C++ program. Refer to the figure and answer question 3(a) (c). Write the complete program. . . int main() {
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 << "Enter Full name: "; cin.get(p.name, 50); cout << "Enter age: "; cin >> p.age; cout << "Enter salary: "; cin >> 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 b. Write function definition of displayData() 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
