Menu

[Solved]Question 1 Based Real World Application Mind Define Struct Containing 4 Data Fields Follow Q37087185

Question 1 Based on a real-world application that you have in mind define a struct containing 4 data fields of the following

Question 1 Based on a real-world application that you have in mind define a struct containing 4 data fields of the following types of data 1.) char, 2.) int or 3.) float. (n.b. A struct modelling a student is not permitted as it is already given in the lecture notes). 10 marks Question 2 Write a function in C that takes the struct defined in your answer to Question 1 as an argument and prints out its contents in a nicely formatted way to the console 10 marks Show transcribed image text Question 1 Based on a real-world application that you have in mind define a struct containing 4 data fields of the following types of data 1.) char, 2.) int or 3.) float. (n.b. A struct modelling a student is not permitted as it is already given in the lecture notes). 10 marks Question 2 Write a function in C that takes the struct defined in your answer to Question 1 as an argument and prints out its contents in a nicely formatted way to the console 10 marks

Expert Answer


Answer to Question 1 Based on a real-world application that you have in mind define a struct containing 4 data fields of the follo… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *