I found 2 Answers for "a)"but None for "b)"
so b) takes priority and if you solved both it would begreat
Write the code segment for each of the following tasks: a) Declare a structure type: i. named Salary, with the following members: basic: a double value allowances : a double value ii. named Employee, with the following members: name: a string value id: an integer value salary: a Salary structure variable iii. Declare a variable of structure type Employee named myEmp. b) By using the variables and structure declaration in (a), define a function named displayEmp. It should accept an Employee structure variable as its argument and not return a value. The function should display the contents of the variable onto the screen based on figure below. *Notes: Assuming the data for struct members was already assigned. Sample output: Name: Azira Id: 8902 Basic salary: RM 4500 Allowances: RM 500
I found 2 Answers for "a)"but None for "b)" so b) takes priority and if you solved both it would be great
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am