讲解:LLP109、C/C++、C/C++、bibliographicDatabase|R

LLP109 Coursework Part 1Develop your own electronic bibliographic information data management system.Assignment: Write a complete, well-structured C or C++ program that begins by asking theuser to enter bibliographic information of library items, such as books, CDs, photographs.The program will produce a database with the input values and display the stored ones tousers. You have to use: Pointer, Array, Structure (or Class), Loop, Conditionals, userdefined Functions, and Input/ Output. Therefore, you should ask yourself how you canincorporate the topics you learnt in the module into this specific project. Be sure to write yourstudent number in the upper right hand corner of the code. Use comments to explainintended meaning, reason, and functions of each part in the program. This will be veryhelpful for readers to understand your code.Directions: Above all, think of the general architecture of the code and chose one codinglanguage platform between C and C++. Define a Struct in C (or a Class in C++) that includesbibliographic data sets, such as a title, author, year, identification number, page numbermembers. Your code should be able to display all the data sets on a screen after enteringthe input data. The code should have an input and output (display) functions that defined byyou. Save the data inputs in a file at the end of the main function.Hint: A sequence of instructions may loop endlessly in the code, unless the user choosesterminating condition. Or, you can give the finite appropriate number for the loop. Declareand define Insert and Display functions outside the main () function. Define a structurearray having multiple elements in the main function. Think of an idea LLP109作业代做、代写C/C++编程作业、代做C/C++实验作业、代写bibliographic作业 代写Databto give the array to afunction as an input variable. Note, a structure can be considered a special data type (Referto the lecture notes). Remember the special relationship between an array and pointer,which is explained in the lecture notes. The total number of elements of the arraycorresponds to the numbers of bibliographic items, e.g. books. A few items can be all right inorder to demonstrate the functionality of the code.A user should be asked to choose an operation out of multiple options, such as (1) Datainput, (2) Display the data sets, (3) Finish and exit. When (1) is chosen, the code calls theinput function and the user put bibliographic information for each library item. After enteringall the data of a book, the user can make a choice out of the three (or more than three)options again. Therefore, a loop and conditionals are required in the main function. Forexample, a user can see the data sets stored in the database so far when (2) was chosen,finish the job and exit when (3) was chosen, or carry on with the data input job with theoption (1). If the user chooses the option (3), the code will write down all the data into afile, e.g. .txt, .dat file before completely terminating the program. Write a code preventing(overflow, memory) errors when a user tries to make wrong attempts, e.g. to try putting moredata than the storage size of an array.Start earlyProgramming is not an activity that can be reliably scheduled to take a predeterminedamount of time. The best thing you can do for yourself is to get started right away. Refer torecommended literature on coding, especially sections about Loop, Struct (C) (or Class(C++)), Input / Output, Array, and Pointer.转自:http://ass.3daixie.com/2018122030851890.html

你可能感兴趣的:(讲解:LLP109、C/C++、C/C++、bibliographicDatabase|R)