Computers and Technology

Write a program that uses cin to get the name of a file from the user. The file will be a plain text file that contains information about different objects of type "BibleBook". BibleBook will be defined as a class. The private member attributes are: string title; int numChapters; double amountRead; The title will hold the title of the book, for example, "Genesis", "Exodus", "Psalms", etc. numChapters will hold the number of chapters in that book. amountRead will be a decimal ranging from 0 to 1. If the value is 0, that means you have read none of that book. If the number of 0.50, that means you have read half of that book, etc. You will need to discover the public member functions that need to be written based on the description. The text file will be organize like so: Each line will hold the title of a book, then a space, then the number of chapters, then a space, then the amount read of that book. Here's an example: Genesis 50 0.98 Matthew 28 1.00 Your program will read in this information and store each line in it's own object, and the objects will be part of a vector. In other words, there will be a vector of BibleBooks. Your program will then iterate through the vector, displaying all of the information about each object. The program will also identify for which object the amount read is the lowest. Sample output: Genesis 50 0.98 Matthew 28 1 The book with the lowest amount read is Genesis.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:30, LuxTheGirl3070
Entering key dates from your course syllabi test and quiz dates, assignments due dates in your planner can you manage your schedule by allowing you to see commitments ahead of time.
Answers: 3
image
Computers and Technology, 21.06.2019 21:00, kitkatwolf
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system. out. println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
image
Computers and Technology, 22.06.2019 11:00, najerajulio
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
image
Computers and Technology, 24.06.2019 00:00, miguelturner
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
Do you know the correct answer?
Write a program that uses cin to get the name of a file from the user. The file will be a plain text...

Questions in other subjects:

Konu
English, 21.04.2021 01:00
Konu
Mathematics, 21.04.2021 01:00
Konu
Mathematics, 21.04.2021 01:00
Konu
Mathematics, 21.04.2021 01:00
Konu
Mathematics, 21.04.2021 01:00