- 1
Needing help in c project
https://code.sololearn.com/cPXUh3VhqZ6j/?ref=app I want to add two functions for printing the average of quantity and printing the newest book according to its rack.no I will be thank full to help me
1 ответ
+ 3
I assume you didn't have anything to do with coding this program so you should have a comment stating where you got it from to give credit to the original authors.
The viewbooks function currently reads and displays all of the books. This should be copied to your new function. Delete the code to display and instead sum the quantities and count the books. At the end, display the average of the sum divided by the count.
The other new function is also a copy of viewbooks. This time only display the book with the highest rack number.
The mainmenu function needs to be modified to add your two commands and call your functions just like the viewbooks call.