subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
You know the right 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
question
Mathematics, 18.02.2020 20:42
Questions on the website: 13722360