Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Your homework is to create a program to simulate a library. For that, you have to create a massive(array?) whose elements are as follows: *see the first few lines of the example code - struct raamat{*
- You have to create a program which would simulate the lending and returning of books
- Program description:
- - Reads RAAMATUD.TXT file for a massive(array?)
- - After that you have to create a cycle where:
- - You have to display the database of the library with a choice for the user to sort it how he pleases
- - After that the user has to make a choice whether to lend a book, return it or go into the next repetition (of the cycle)
- - When lending, only show the books that are still in the library ie. not lent
- - When returning, only show returnable books
- The result of the program:
- - The user can simulate a database of the library, see information about those books; lend and return them
- The grade is for:
- ...
- In the assignment, a student has to demonstrate the understanding of:
- -Functions
- -Cycles
- -Booleans
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement