CHAP11 HW2A) Add to the program of your previous lab a new struct called DateType with 3 members (day, month and year). B) Redefine the struct bookType to hold the following information about a book: a. Title (string),b. up to four authors (array of strings),c. number of authors(string),d. price (float),e. number of copies in stock(int).f. Publication Date(DateType). C) Rewrite the function called ReadOnebook.D) Rewrite the function called OutputOnebook..E) Rewrite the function outofstock that receives an array of struct bookType and outputs Tiles of books with 0 copies in stock . Use same main function:Example of data:
[TABLE="class: MsoTableGrid, width: 497"]
[TR]
[TD="width: 67, bgcolor: transparent"]
Title
[/TD]
[TD="width: 156, bgcolor: transparent, colspan: 4"]
[/TD]
[TD="width: 96, bgcolor: transparent"]
Nb authors
[/TD]
[TD="width: 54, bgcolor: transparent"]
price
[/TD]
[TD="width: 228, bgcolor: transparent, colspan: 3"]
Publication Date
[/TD]
[TD="width: 62, bgcolor: transparent"]
Nb copies
[/TD]
[/TR]
[TR]
[TD="width: 37, bgcolor: transparent"]
1
[/TD]
[TD="width: 37, bgcolor: transparent"]
2
[/TD]
[TD="width: 39, bgcolor: transparent"]
3
[/TD]
[TD="width: 42, bgcolor: transparent"]
4
[/TD]
[TD="width: 75, bgcolor: transparent"]
day
[/TD]
[TD="width: 72, bgcolor: transparent"]
month
[/TD]
[TD="width: 81, bgcolor: transparent"]
year
[/TD]
[/TR]
[TR]
[TD="width: 67, bgcolor: transparent"]
AAA
[/TD]
[TD="width: 37, bgcolor: transparent"]
A1
[/TD]
[TD="width: 37, bgcolor: transparent"]
A2
[/TD]
[TD="width: 39, bgcolor: transparent"]
A3
[/TD]
[TD="width: 42, bgcolor: transparent"]
A4
[/TD]
[TD="width: 96, bgcolor: transparent"]
3
[/TD]
[TD="width: 54, bgcolor: transparent"]
10.5
[/TD]
[TD="width: 75, bgcolor: transparent"]
12
[/TD]
[TD="width: 72, bgcolor: transparent"]
11
[/TD]
[TD="width: 81, bgcolor: transparent"]
2004
[/TD]
[TD="width: 62, bgcolor: transparent"]
0
[/TD]
[/TR]
[TR]
[TD="width: 67, bgcolor: transparent"]
BBB
[/TD]
[TD="width: 37, bgcolor: transparent"]
B1
[/TD]
[TD="width: 37, bgcolor: transparent"]
B2
[/TD]
[TD="width: 39, bgcolor: transparent"]
B3
[/TD]
[TD="width: 42, bgcolor: transparent"]
B4
[/TD]
[TD="width: 96, bgcolor: transparent"]
1
[/TD]
[TD="width: 54, bgcolor: transparent"]
25.0
[/TD]
[TD="width: 75, bgcolor: transparent"]
1
[/TD]
[TD="width: 72, bgcolor: transparent"]
12
[/TD]
[TD="width: 81, bgcolor: transparent"]
1999
[/TD]
[TD="width: 62, bgcolor: transparent"]
55
[/TD]
[/TR]
[TR]
[TD="width: 67, bgcolor: transparent"]
CCC
[/TD]
[TD="width: 37, bgcolor: transparent"]
C1
[/TD]
[TD="width: 37, bgcolor: transparent"]
C2
[/TD]
[TD="width: 39, bgcolor: transparent"]
C3
[/TD]
[TD="width: 42, bgcolor: transparent"]
C4
[/TD]
[TD="width: 96, bgcolor: transparent"]
2
[/TD]
[TD="width: 54, bgcolor: transparent"]
5
[/TD]
[TD="width: 75, bgcolor: transparent"]
3
[/TD]
[TD="width: 72, bgcolor: transparent"]
7
[/TD]
[TD="width: 81, bgcolor: transparent"]
2011
[/TD]
[TD="width: 62, bgcolor: transparent"]
0
[/TD]
[/TR]
[/TABLE]
احد عنده فكرة عن حل هالاسايمنت

صعب