Question

In: Electrical Engineering

Write a C program for a library automation which gets the ISBN number, name, author and...

Write a C program for a library automation which gets the ISBN number, name, author and publication year of the books in the library. The status will be filled by the program as follows: if publication year before 1985 the status is reference else status is available. The information about the books should be stored inside a linked list. The program should have a menu and the user inserts, displays, and deletes the elements from the menu by selecting options. The following data structure should be used. struct list{ char ISBN[ 20 ]; char NAME[ 20 ]; char AUTHOR[ 20 ]; int YEAR; char STATUS[20]; struct list *next; }INFO; The following menu should be used in the program. Press 1. to insert a book Press 2. to display the book list Press 3. to delete a book from list Hint: use strcpy to fill STATUS.

Solutions

Expert Solution

C PROGRAM :


Related Solutions

This C++ program is to validate the ISBN number and output "Valid" if the number is...
This C++ program is to validate the ISBN number and output "Valid" if the number is valid, and "Invalid" otherwise. The ISBN number for a book is a 10-digit number made up of 4 sections separated by '-'. In the ISBN number 1-214-02031-3: 1 represents a country (must be 1 digit) 214 represents the publisher (must be 3 digits) 02031 represents the book number (must be 5 digits) 3 is the checksum (must be 1 digit or the letter 'x')....
Write an ISBN Validator in C language What are ISBN? ISBN, or International Standard Book Number,...
Write an ISBN Validator in C language What are ISBN? ISBN, or International Standard Book Number, is a numeric identifier for commercially printed books. Prior to 2007, they had 10 digits, but all newly issued ISBN use 13 digits. They are used to uniquely identify a book and consist of several portions. These include the registrant group, publisher, title, and a check digit. The registrant group indicates where the publisher is located. For example a registrant group of 0 or...
C# Write a program in C# that prompts the user for a name, Social Security number,...
C# Write a program in C# that prompts the user for a name, Social Security number, hourly pay rate, and number of hours worked. In an attractive format, dis- play all the input data as well as the following: » Gross pay, defined as hourly pay rate times hours worked » Federal withholding tax, defined as 15% of the gross pay » State withholding tax, defined as 5% of the gross pay » Net pay, defined as gross pay minus...
C++ Here is a program that to validate the ISBN number from user typed and output...
C++ Here is a program that to validate the ISBN number from user typed and output "Valid" if the number is valid, and "Invalid" otherwise. I want to change this program to read the file, and to validate the ISBN number from the file. Please add comments. #include <iostream> #include <string> using std::cin; using std::cout; using std::string; // remove dashes convert letters to upper case string normalize(const string &isbn) { string ch; for (char i : isbn) { if (i...
C++: Write a student class for the library, which have the following: Username, password, Maximum number...
C++: Write a student class for the library, which have the following: Username, password, Maximum number of copies that a student is allowed to keep(less than 5), maximum borrow periods(less than 30 days per book), list of copy(array) cpp and h
Write a C++ program to display toy name
Write a C++ program to display toy name
Programming Language Required: C Write a multithreaded program in C (not c++) using the pthread library...
Programming Language Required: C Write a multithreaded program in C (not c++) using the pthread library and dynamic memory(malloc) that multiplies two matrices together. The numbers in the matrices must be read in from a text file. The program should also check if the two matrices are capable of being multiplied together. The amount of threads used has to be dynamic. The user should be able to choose how many threads they wish to use using the command line. Finally,...
Programming C: Write a program for a Rolodex of contact information (e.g., name, phone number, email)...
Programming C: Write a program for a Rolodex of contact information (e.g., name, phone number, email) implemented as a linked list. The program will ask the user to enter a new contact information, retrieve/print a person’s contact information, and to delete a person. It will maintain the linked list in alphabetical order by last name. It will also allow the user to search for a person’s contact information by last name. Assume that all last names are unique.
Write a program in java that asks the name of the buyer and the number of...
Write a program in java that asks the name of the buyer and the number of shares bought. Your program must then calculate and display the following. sold stock/shares to the general public at the rate of $24.89 per share. Theres a 2 percent (2%) commission for the transaction. Outputs need Amount paid for buying the stock ($) Amount paid for the commission ($) Total amount ($)
URGENT write a c++ program which asks the user to enter a positive number which is...
URGENT write a c++ program which asks the user to enter a positive number which is less than or equal to 9. Do not let the user continue until he or she enters a number within range. once a valid number is entered, multiply it by itself. if the resulting number is even, display a message with the number followed by the words even. If it is odd, display the number followed by the words is odd. must use a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT