Find Jobs
Hire Freelancers

C program that maintains information for an online bookstore

$30-250 USD

Berlangsung
Dibuat lebih dari 11 tahun yang lalu

$30-250 USD

Dibayar ketika dikirim
Objective In this lab you will write a program that maintains information for an online bookstore, similar to the information on Amazon. The program will allow you to add and delete books from the bookstore inventory, to search the inventory for books by name or by rating, and to print out part or all of the book inventory. The data in your book inventory will be stored in memory with the use of a linked list, with list nodes representing books in the inventory. Each node will contain members for storing a book’s name (char * ) and author (char * ), its rating (int) and its category (char). There are four possible categories, each of which is identified by the first character in the words (F)iction, (H)istory, (P)hilosophy and (A)rts. Your linked list must be kept in a special order, with all the fiction books first, then the history books, then the philosophy books, and finally the arts books. If there is more than one book in the same category, then the books should be kept in order of their insertion (e.g., the last history book in the inventory should be the history book most recently inserted into the list; the first art book in the inventory should be the art book that was inserted first into the list, and so on). Books with duplicate names are not allowed in the inventory. You must detect such cases, disallow them and print an error. However, you can assume that the user enters a valid author, rating, and category. Your program should be menu driven, with the user being offered a choice of the six commands described below: Insert a new book into the bookstore inventory. The program should prompt the user for a book name and author name, a rating and a category. This information should be placed in a new node that has been created using the malloc function. And then the node should be inserted at the appropriate category in the linked list that stores the inventory data. Don’t forget that the inventory must be stored in a special order, by considering the book’s category first, and then (if needed) the order of insertion. If a node with the given name is already in the inventory, an error message should be produced and the new node should not be inserted into the linked list. Delete a book from the bookstore inventory. The program should prompt the user for the name of the book to be deleted and then delete the node containing that name from the linked list that stores the bookstore inventory. If no book with the given name is found in the inventory, an error message should be produced. Print the bookstore inventory, following a special order. Print the name, author, rating and category of each book, with each piece of information on a separate line. A blank line should be printed between each book. The special order assumes that the fiction books appear first, then the history books, then the philosophy books, and finally the art books. If a category has more than one book, then they should be printed in order of their insertion. Search for a book using a name. The program should print the name of the book, as well as its author, rating and category, with each piece of information on a separate line. Search results should be printed using the same ordering defined for the Print function. If no book with the provided name is found in the inventory, an error message should be produced. Search for books in the inventory that are rated higher than or equal to a given rating. The program should print the name, author, rating and category of any book that is rated higher than or equal to an input rating, with each piece of book information on a separate line. Search results should be printed using the same ordering defined for the Print function. A blank line should be printed between each book (if more than one is found). If no book in the inventory is rated higher than or equal to the given rating, an error message should be produced.
ID Proyek: 2655776

Tentang proyek

15 proposal
Proyek remot
Aktif 11 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
Hello, I am expert and dedicated in C Development.I am very much interested for your project. I can complete your project quickly and efficiently in time. Details will be discussed in the message.
$30 USD dalam 1 hari
4,8 (34 ulasan)
4,8
4,8
15 freelancer menawar dengan rata-rata $72 USD untuk pekerjaan ini
Avatar Pengguna
Hi, I'd like to do this project please.
$35 USD dalam 1 hari
4,9 (30 ulasan)
4,3
4,3
Avatar Pengguna
I am good at Visual-programming, the task is out of question. I am ready for that.
$50 USD dalam 1 hari
4,8 (11 ulasan)
3,9
3,9
Avatar Pengguna
Hello sir. I can do this job....
$80 USD dalam 5 hari
4,9 (6 ulasan)
2,2
2,2
Avatar Pengguna
2 years of professional experience in c anc c++ programming and can do it quickly.
$60 USD dalam 4 hari
5,0 (1 ulasan)
1,4
1,4
Avatar Pengguna
Hi. I can do it. I believe that I accomplish .
$50 USD dalam 4 hari
5,0 (2 ulasan)
0,9
0,9
Avatar Pengguna
Hi! I have the rich experience of program for the student. I can do this. Regards!!!
$150 USD dalam 3 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
It's very easy. I can do this job for you.
$50 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o
$250 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
I can do it, Check your PMB.
$80 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
I am very interested to do this and I can finish off this in less than a day.
$30 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
I have a Master's degree in Computer Science and more than 5 years of C experience. I can easily handle this project in a timely fashion.
$30 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
This is my first time i am using Freelancer,i can only tell am good in c so i can deliver it in 1-2 days.
$30 USD dalam 2 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Ready to do it for you. Check PM for details.
$50 USD dalam 2 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Hi, I am very much interested to your project. I would like to share that I have already written two books(one is on C & another is on C++). It will be a great opportunity for me to do such project. thanks sattar
$100 USD dalam 20 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED ARAB EMIRATES
Abu Dhabi, United Arab Emirates
5,0
1
Memverifikasi Metode pembayaran
Anggota sejak Nov 14, 2012

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.