Create a library class. include vectors of books

Assignment Help Basic Computer Science
Reference no: EM131395684

Create a Library class. Include vectors of Books and Patrons. Include a struct called Transaction. Have it include a Book, a Patron, and a Date from the chapter. Make a vector of Transactions. Create functions to add books to the library, add patrons to the library, and check out books. Whenever a user checks out a book, have the library make sure that both the user and the book are in the library. If they aren't, report an error. Then check to make sure that the user owes no fees. If the user does, report an error. If not, create a Transaction, and place it in the vector of Transactions. Also write a function that will return a vector that contains the names of all Patrons who owe fees.

Reference no: EM131395684

Questions Cloud

Which of the following is responsible for expression of a : Which of the following is responsible for expression of a trait? Which of the following is a pyrimidine base? On which strand of DNA m RNA is constructed?
Create high-level use cases for the customer requirements : Create high-level use cases for the customer requirements described in the W2 Course Project Instructions." Create a use case diagram for one of the high-level use cases using Microsoft Visio.
Write a report of notable arab people : Nobel and other prices Ahmed has received and Ahmed's publications - write a report of 500 words of each sections(± 100 words) on one of the notable Arab people:
How do you determine who gets the shot : The problem is that it takes a considerable amount of time to produce the medication. Currently, there are 50,000 people infected (with more every day) but only 1,000 available doses of medication. How do you determine who gets the shot? What is t..
Create a library class. include vectors of books : Then check to make sure that the user owes no fees. If the user does, report an error. If not, create a Transaction, and place it in the vector of Transactions. Also write a function that will return a vector that contains the names of all Patrons..
Whether definitions are stipulative or lexical - politician : Determine whether the following definitions are stipulative, lexical, precising, theoretical, or persuasive.- "Politician" means a person of unquestioned honesty and integrity whom the people, in their collective wisdom, have duly elected to guide ..
Create a patron class for the library : Have functions that access this data, as well as a function to set the fee of the user. Have a helper function that returns a Boolean (bool) depending on whether or not the user owes a fee.
Design and implement a data structure for a social network : In this assignment you are required to design and implement a data structure for a social network (e.g., Facebook, LinkedIn, etc). You would also be required to implement an algorithm to show the connection.;
Whether definitions are stipulative or lexical - intoxicated : Determine whether the following definitions are stipulative, lexical, precising, theoretical, or persuasive.- "Intoxicated," for purposes of driving a car in many states, means having a blood-alcohol content of 0.08 percent (.0008) or greater.

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Select a non-profit cybersecurity organization

Organizations may outsource their security functions due to financial and talent reasons. In this case, organizations need to ensure their contractors meet its security needs, abide by their Risk Management Strategy, and align with their organizat..

  Write a java program that will print the words hello world

Write a java program that will print the words Hello World

  Proposal to your current-previous company

Write a 4- to 5-page proposal to your current or previous company's executives discussing how analytics can be used in your company to improve sales through your retail outlets, customer service department, or other service department (tech suppor..

  How many fingers would you expect martians to have

A flying saucer crashes in a Nebraska cornfield. The FBI investigates the wreckage and finds an engineering manual containing an equation in the Martian number system: 325 + 42 = 411. If this equation is correct, how many fingers would you expect ..

  If not, why do you think this might be the case

If not, why do you think this might be the case?

  Use this data frame to fix the problem with the merging

Use this data frame to fix the problem with the merging of the location data, which uses ISO codes, with the demographic data, which uses the CIA Fact book coding. Be sure the final data frame contains both codes and the country name from code Map..

  Added values in formatting a documenting

What might be some challenges in formatting a 2013 document? What are the added values in formatting a documenting?

  Web forms controls

Using Web Forms controls,create a Web application to include a TextBox object,a Button object,and a ListBox object. Allow the user to input values into the TextBox.Use those values to populate the ListBox object.

  Case study discussing network forensics

Research by finding an article or case study discussing network forensics

  Ideas you learnt on interpretation

Input: The input to the program shall be a text file containing binary encoding of some x86 code. Here is a sample input file ("sampleinput.txt"): 8d 4c 24 04 83 e4 f0 50 c1 f8 02 34 2e 89 e5 45 83 ec 04 80 7c 24 04 81 5d This is for the following..

  A speeder traveling 45 miles per hour

Police chase: A speeder traveling 45 miles per hour (in a 25 mph zone ) passes a stopped police car which immediately takes off after the speeder. If the police car speeds up steadily to 60 miles/hour in 10 seconds and then travels at a steady 60 mil..

  Local community non-profit organization

Web site topic: Your boss has asked you to create a web site for: a local community non-profit organization that sells rummage sale items. This week, they have asked you to set up 1 page to show what the site will look like.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd