Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Statement The great magic university of Fakebills has been adding a lot of new spellbooks to their library lately. The school administration has hired

Problem Statement

The great magic university of Fakebills has been adding a lot of new spellbooks to their library lately. The school administration has hired you to create a spellbook catalog program that will make searching for spellbooks easier.

To simplify your task, the school has provided you with their spellbook information. These come in the form of a text file that file contains a list of Fakebill's spellbooks and their included spells, all of the information that your program will display.

Requirements

Command Line Argument:

When starting the program, the user will provide one command line argument. The command line argument will be the name of the file that contains the information about spellbooks and included spells. If the user does not provide the name of an existing file the program should print out an error message and quit.

Sorting and Printing:

Once the program begins, the user should be prompted with a list of different ways to display the spellbook and spell information. After the user has chosen an option, they should be asked if they want the information printed to the screen or written to a file. If they choose to write to a file, they should be prompted for a file name. If the file name already exists, the information should be appended to the file. If the file name does not exist, a file should be created and the information should be written to the file.

Available Options:

  • Sort spellbooks by number of pages: If the user picks this option the books must be sorted in ascending order by number of pages. Once they are sorted, you should print/write to file the title of the book and the number of pages it has.
  • Sort spells by effect: There are five types of spells: fire, bubble, memory_loss, death, poison. The spells with bubble as the effect should be listed first, followed by memory_loss, fire, poison, and death. Once they are sorted, you should print/write to file the spell name and its effect.
  • Sort by average success rate of spells: You must create a list of books sorted by the average success rate of all the spells contained within the book. Once calculated, you should print/write to file the title of each applicable book and the corresponding average success rate.
  • Quit: The program will exit.

Your program should continue sorting and printing/writing until the user chooses to quit. For the sorting functionality, you can write your own sorting function, or consider using C++'s built in sort function.

Required Structs:

The following structs are required in your program. They will help organize the information that will be read in (or derived) from the files. You cannot modify, add, or take away any part of the struct.

The spellbook struct will be used to hold information from the spellbooks.txt file. This struct holds information about a spellbook.

struct spellbook { string title; string author; int num_pages; int edition; int num_spells; float avg_success_rate; struct spell* s; }; 

The spell struct will also be used to read in information from the spellbooks.txt file. This struct holds information about a spell. There are five options for effect: "fire", "poison", "bubble", "death", or "memory_loss".

struct spell { string name; float success_rate; string effect; }; 

Required Functions:

You must implement the following functions in your program. You are not allowed to modify these required function declarations in any way. Note: it is acceptable if you choose to add additional functions (but you must still include the required functions). Note2: You must write the dynamic memory allocation functionality yourself (i.e. no using vectors).

This function will dynamically allocate an array of spellbooks (of the requested size):

spellbook* create_spellbooks(int); 

This function will fill a spellbook struct with information that is read in from spellbooks.txt. Hint: ifstream & is a reference to a filestream object. You will need to create one and pass it into this function to read from the spellbooks.txt file.

void get_spellbook_data(spellbook*, int, ifstream &); 

This function will dynamically allocate an array of spells (of the requested size):

spell* create_spells(int); 

This function will fill a spell struct with information that is read in from spellbooks.txt.

void get_spell_data(spell*, int, ifstream &); 

You need to implement a function that will delete all the memory that was dynamically allocated. You can choose the prototype. A possible example prototype includes the following:

void delete_spellbook_data(spellbook*, int); 

Required Input File Format

Your program must accommodate the file formats as specified in this section. The spellbooks.txt file has the following structure. The file information will be provided in sets (corresponding to each spellbook). Each spellbook will be accompanied by a listing of the spells inside.

The spellbooks.txt file will have the following pattern, and an example can be found here:

  <author> <number of pages> <edition> <number of spells in book> <title of spell> <success rate> <effect> <title of spell> <success rate> <effect> <title of spell> <success rate> <effect> ... <title of second spellbook> <author> <number of pages> <edition> <number of spells in book> <title of spell> <success rate> <effect> <title of spell> <success rate> <effect> <title of spell> <success rate> <effect> <title of spell> <success rate> <effect> ... <title of third spellbook> <author> <number of pages> <edition> <number of spells in book> <title of spell> <success rate> <effect> <title of spell> <success rate> <effect> </pre> <p>Example Operation</p> <p>The following snippet of text shows an example implementation of the spellbook program. Note that this example does not illustrate all required behavior. You must read this entire document to ensure that you meet all of the program requirements.</p> <pre>$ ./catalog_prog spellbooks.txt Which option would you like to choose? Sort spellbooks by number of pages (Press 1): Group spells by their effect (Press 2): Sort spellbooks by average success rate (Press 3): Quit (Press 4): 1 How would you like the information displayed? Print to screen (Press 1) Print to file (Press 2) 1 Spells_for_Dummies 303 Wacky_Witch_Handbook 1344 Necronomicon 1890 Forbidden_Tome 1938 Enchiridion 2090 The_Uses_of_Excalibur 3322 Charming_Charms 4460 Dorian 50000 Which option would you like to choose? Sort spellbooks by number of pages (Press 1): Group spells by their effect (Press 2): Sort spellbooks by average success rate (Press 3): Quit (Press 4): 3 How would you like the information displayed? Print to screen (Press 1) Print to file (Press 2) 1 <note: this example output is only intended to illustrate the program operation. your values will be different.> Wacky_Witch_Handbook 90.05 The_Uses_of_Excalibur 87.9 Forbidden_Tome 76.8 Necronomicon 72.34 Enchiridion 51.2 Dorian 48.64 Charming_Charms 37.8 Spells_for_Dummies 29.74 Which option would you like to choose? Sort spellbooks by number of pages (Press 1): Group spells by their effect (Press 2): Sort spellbooks by average success rate (Press 3): Quit (Press 4): 3 How would you like the information displayed? Print to screen (Press 1) Print to file (Press 2) 2 Please provide desired filename: success_rate_list.txt Appended requested information to file. Which option would you like to choose? Sort spellbooks by number of pages (Press 1): Group spells by their effect (Press 2): Sort spellbooks by average success rate (Press 3): Quit (Press 4): 2 How would you like the information displayed? Print to screen (Press 1) Print to file (Press 2) 1 bubble Bubble_Beam bubble Exploratory_Maneuver memory_loss Space_Out memory_loss Preliminary_Black_out memory_loss Wacky_Dreams fire Blasto_Strike fire Beginning_Blast poison Cthulhu_Venom death Deathrock death Nightmare death Deadly_Details Which option would you like to choose? Sort spellbooks by number of pages (Press 1): Group spells by their effect (Press 2): Sort spellbooks by average success rate (Press 3): Quit (Press 4): 4 </pre> <p> </p> <p>-----------------------------------------------</p> <p>spellbooks.txt</p> <p> </p> <p>8</p> <p>Wacky_Witch_Handbook Gretchen 1344 19 3</p> <p>Blasto_Strike 40.6 fire</p> <p>Space_Out 60.23 memory_loss</p> <p>Bubble_Beam 100.0 bubble</p> <p>Forbidden_Tome Voldemort 1938 1 2</p> <p>Avada_Kedavra 20.45 death</p> <p>Snake_Bite 45.2 poison</p> <p>Necronomicon LoveCraft 1890 3 5</p> <p>Wacky_Dreams 89.8 memory_loss</p> <p>Cthulhu_Venom 77.2 poison</p> <p>Deathrock 20.4 death</p> <p>Nightmare 25.89 death</p> <p>Deadly_Details 5.02 death</p> <p>Enchiridion various_heros 2090 1 5</p> <p>Dog_Stretch 70.883 bubble</p> <p>Not_Ice_Blast 92.744 fire</p> <p>Blush 100.0 fire</p> <p>Adopted_By_Dogs 0.05 memory_loss</p> <p>Cloud_Dream 34.9 memory_loss</p> <p>Charming_Charms Linda_Charming 4460 3 4</p> <p>Lovely_Day 90.23 memory_loss</p> <p>Smile 99.9 bubble</p> <p>Sunshine 73.20 fire</p> <p>Lucky_One 54.331 bubble</p> <p>Dorian Ludvig_Vivaldi 50000 1 2</p> <p>Music_To_Me 87.32 fire</p> <p>Lydian 41.005 poison</p> <p>The_Uses_of_Excalibur Merlin 3322 2 3</p> <p>Deadly_Battle 30.031 death</p> <p>Strong_Swing 68.7 fire</p> <p>Winning_Day 44.9 memory_loss</p> <p>Spells_for_Dummies Tracey_Wood 305 1 4</p> <p>Preliminary_Black_Out 55.5 memory_loss</p> <p>Exploratory_Maneuver 88.5 bubble</p> <p>Beginning_Blast 97.3 fire</p> <p>Introductory_Levitation 77.62 bubble</p>                        </div>
                                            </section>
                    <section class="answerHolder">
                        <div class="answerHolderHeader">
                            <div class="answer-heading">
                                <h2>Step by Step Solution</h2>
                            </div>
                                                            <div class="answerReviews">
                                    <div class="starReview">
                                        <div class="starIcon">
                                                                                    </div>
                                        <div class="starText">
                                                                                    </div>
                                    </div>
                                </div>
                                                    </div>

                        <div class="answerSteps">
                            <p>There are <span>3</span> Steps involved in it</p>
                            <div class="step">
                                <h3>Step: 1</h3>
                                                                <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp" width="759" height="271" alt="blur-text-image"  decoding="async" fetchpriority="high">
                                <div class="step1Popup">
                                    <h3>Get Instant Access to Expert-Tailored Solutions</h3>
                                    <p>See step-by-step solutions with expert insights and AI powered tools for academic success</p>
                                    <button class="view_solution_btn step1PopupButton">View Solution</button>
                                </div>
                            </div>

                            <div class="step">
                                <h3 class="accordion">Step: 2</h3>
                                <div class="panel">
                                    <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp" width="975" height="120" alt="blur-text-image_2" loading="lazy" decoding="async" fetchpriority="low">
                                    <button class="view_solution_btn stepPopupButton">Sign Up to view</button>
                                </div>
                            </div>

                            <div class="step">
                                <h3 class="accordion">Step: 3</h3>
                                <div class="panel">
                                    <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp" width="975" height="120" alt="blur-text-image_3" loading="lazy" decoding="async" fetchpriority="low">
                                    <button class="view_solution_btn stepPopupButton">Sign Up to view</button>
                                </div>
                            </div>
                                                    </div>
                    </section>
                </div>

                <div class="expertRight">
                    <section class="AIRedirect">
                        <div class="AIHolder">
                            <h2>Ace Your Homework with AI</h2>
                            <p>Get the answers you need in no time with our AI-driven, step-by-step assistance</p>
                            <a class="AILink" href="/ask_ai">Get Started</a>
                        </div>
                    </section>
                                            <section class="relatedBook">
                            <div class="bookHolder" >
                                <div class="relatedBookHeading" >
                                    <h2>Recommended Textbook for</h2>
                                    <object class="freeTagImage" type="image/svg+xml" data="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/document_product_info/free.svg" name="free-book-icon"></object>
                                </div>
                                <div class="bookMainInfo" >
                                    <div class="bookImage" >
                                        <a href="/textbooks/scientific-and-statistical-database-management-21st-international-conference-ssdbm-2009-new-orleans-la-usa-june-2009-proceedings-lncs-5566-2009th-edition-978-3642022784-176137">
                                            <img src="https://dsd5zvtm8ll6.cloudfront.net/si.question.images/book_images/2024/01/6597ef2a8ba66_9786597ef2a87f6a.jpg" width="100" height="131" alt="Scientific And Statistical Database Management 21st International Conference Ssdbm 2009 New Orleans La Usa June 2009 Proceedings Lncs 5566" loading="lazy">
                                        </a>
                                    </div>
                                    <div class="bookInfo" >
                                        <h3 class="bookTitle">
                                            <a href="/textbooks/scientific-and-statistical-database-management-21st-international-conference-ssdbm-2009-new-orleans-la-usa-june-2009-proceedings-lncs-5566-2009th-edition-978-3642022784-176137">
                                                Scientific And Statistical Database Management 21st International Conference Ssdbm 2009 New Orleans La Usa June 2009 Proceedings Lncs 5566                                            </a>
                                        </h3>
                                        <div class="bookMetaInfo" >
                                            <p class="bookAuthor">
                                                <b>Authors:</b> <span>Marianne Winslett</span>
                                            </p>
                                            <p class="bookEdition">
                                                2009th Edition                                            </p>
                                            <p class="bookEdition">
                                                3642022782, 978-3642022784                                            </p>
                                        </div></div></div>
                                                                    <a href="/textbooks/computer-science-setl-2582" class="viewMoreBooks">More Books</a>
                                                            </div>
                        </section>
                                    </div>
            </div>
                            <section class="relatedQuestion">
                    <div class="relatedQuestionHolder">
                        <h4>Students also viewed these Databases questions</h4>
                        <div class="relatedQuestionSliderHolder">
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/alexi-files-her-tax-return-20-days-after-the-due" >
                                        Alexi files her tax return 20 days after the due date. Along with the return, she remits a check for $3,000, which is the balance of the tax she owes. Disregarding any interest liabilities, compute...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/select-the-range-a-2-m-8-1-and-apply-12477481" >
                                        Select the range A 2 :M 8 1 and apply the Custom table style Sports Schedule.                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/random-sampling/suppose-a-couple-will-continue-having-children-until-they-have-2076502" >
                                        Suppose a couple will continue having children until they have at least two children of each sex (two boys and two girls). How many children might they expect to have?                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/innovative-office-inc-has-cash-and-carry-customers-and-credit" >
                                        Innovative Office Inc. has cash and carry customers and credit customers. Innovative Office estimates that 30% of monthly sales are to cash customers, while the remaining sales are to credit...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/problem-statement-the-great-magic-university-of-fakebills-has-been-12379324" >
                                        Problem Statement The great magic university of Fakebills has been adding a lot of new spellbooks to their library lately. The school administration has hired you to create a spellbook catalog...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/if-elkhart-were-to-discontinue-production-fixed-manufacturivg-costs-would-11013287" >
                                        If Elkhart were to discontinue production, fixed manufacturivg costs would be reduced ty 70x. The releviant cost of theciding whether the divislon shotid purchase the product from an outeide supplier...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/the-joshi-farm-jff-a-saltwater-aquarium-company-is-planning-1232339" >
                                        The Joshi Farm (JFF), a saltwater aquarium company, is planning to expand its operations. It anticipates that an expansion will be undertaken in 6 years. In anticipation of the expansion, JFF invests...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/1-point-the-graph-of-the-function-fx-is-4-1025995" >
                                        (1 point) The graph of the function f(x) is -4 1,0 (the horizontal axis is x.) Consider the differential equation x' = f(x). List the constant (or equilibrium) solutions to this differential equation...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/the-properties-of-unidirectional-fiber-reinforced-polymer-composite-laminate-are-1024237" >
                                        The properties of unidirectional fiber reinforced polymer composite laminate are given as: Elasticity modulus E (GPa) Shear modulus G(GPa) Fiber (E1f)=252 (E2f)=30 25 0.32 Matrix 3,8 2 0.28 Poisson's...                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/graph-the-function-y-se2x-to-draw-the-graph-plot-999784" >
                                        Graph the function. y= se2x To draw the graph, plot three consecutive asymptotes and two points, one on each side of the second asymptote. Then click on the graph icon.                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/questions/which-circuit-below-is-a-direct-implementation-of-the-propositional-999022" >
                                        Which circuit below is a direct implementation of the propositional logic statement ~ (p V qV ~ (r^ ~ ))^\\ ~ r? Version 1 P 13 P output 9 Version 2 output R                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/intercultural-communication/6-identify-seven-types-of-hidden-histories-2116785" >
                                        6. Identify seven types of hidden histories.                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/intercultural-communication/what-is-human-nature-2116771" >
                                        What is human nature?                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                            <div class="relatedQuestionCart ">
                                    <div class="relatedQuestionCartHeader">
                                        <h3>Question</h3>
                                                                                    <div class="relatedStarRating">
                                                <span class="star active">★</span><span class="star active">★</span><span class="star active">★</span><span class="star">★</span><span class="star">★</span>                                            </div>
                                                                            </div>
                                    <a class="relatedQuestionText" href="/study-help/intercultural-communication/like-a-coconut-pudding-this-food-comes-from-hawaii-2116770" >
                                        . Like a coconut pudding, this food comes from Hawaii: a. Lomi lomi b. Poke c. Haupia d. Kalua                                    </a>
                                    <div class="relatedQuestionCartFooter">
                                        <div class="relatedHistory">
                                            <p>
                                                Answered: <span>1 week ago</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                    </div>
                    </div>
                </section>
                                        <hr class="expert-separator">
                <div class="next-previous-button">
                    <div class="navigationButtons">
                                                    <a class="previousQuestionButton" href="/study-help/questions/calculate-saponification-value-of-fish-oil-12379323">Previous Question</a>
                                                                            <a class="nextQuestionButton" href="/study-help/questions/1-the-recursive-fibonacci-algorithm-is-the-most-efficient-true-12379325">Next Question</a>
                                            </div>
                </div>
                    </div>
        <div class="promo items-center justify-center hidden" style="margin-left:-15px;">
            <div class="app_promo">
                <div class="app_promo_headline">
                    <img class="app_promo_icon" alt="Mobile App Logo" width="40" height="40" loading="lazy" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png">
                    <p class="app_promo_title font-sans items-center">View Answer in SolutionInn App</p>
                </div>
                <button class="app_promo_action redirection question_open_url='q_id=12379324&q_type=2'"> Download on the App Store </button>
                <button class="btn btn-default app_promo_dismiss"> Continue with the mobile website </button>
            </div>
        </div>
    </main>
</div>
<div class="blank-portion"></div>
<footer>
<div class="container footerHolder">
    <div class="footerLinksFlex">
        <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6">
            <p>Services</p>
            <ul>
                <li><a href="/site-map">Sitemap</a></li>
                <li><a href="/fun/">Fun</a></li>
                <li><a href="/study-help/definitions">Definitions</a></li>
                <li><a href="/tutors/become-a-tutor">Become Tutor</a></li>
                <li><a href="/study-help/categories">Study Help Categories</a></li>
                <li><a href="/study-help/latest-questions">Recent Questions</a></li>
                <li><a href="/study-help/questions-and-answers">Expert Questions</a></li>
            </ul>
        </div>
        <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6">
            <p>Company Info</p>
            <ul>
                <li><a href="/security">Security</a></li>
                <li><a href="/copyrights">Copyrights</a></li>
                <li><a href="/privacy">Privacy Policy</a></li>
                <li><a href="/conditions">Terms & Conditions</a></li>
                                <li><a href="/solutioninn-fee">SolutionInn Fee</a></li>
                <li><a href="/scholarships">Scholarship</a></li>
            </ul>
        </div>
        <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-6">
            <p>Get In Touch</p>
            <ul>
                <li><a href="/about-us">About Us</a></li>
                <li><a href="/support">Contact Us</a></li>
                <li><a href="/career">Career</a></li>
                <li><a href="/jobs">Jobs</a></li>
                <li><a href="/support">FAQ</a></li>
                <li><a href="/campus-ambassador-program">Campus Ambassador</a></li>
            </ul>
        </div>
        <div class="footerLinksCol col-md-3 col-lg-3 col-sm-6 col-12">
            <p>Secure Payment</p>
            <div class="footerAppDownloadRow">
                <div class="downloadLinkHolder">
                    <img src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/common/footer/secure_payment_method.png" class="img-fluid mb-3" width="243" height="28" alt="payment-verified-icon" loading="lazy">
                </div>
            </div>
            <p>Download Our App</p>
            <div class="footerAppDownloadRow">
                <div class="downloadLinkHolder mobileAppDownload col-md-6 col-lg-6 col-sm-6 col-6 redirection"  data-id="1">
                    <img style="cursor:pointer;" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/home_page/google-play-svg.svg" alt="SolutionInn - Study Help App for Android" width="116" height="40" class="img-fluid mb-3 "  loading="lazy">
                </div>
                <div class="downloadLinkHolder mobileAppDownload col-md-6 col-lg-6 col-sm-6 col-6 redirection"  data-id="2">
                    <img style="cursor:pointer;" src="https://dsd5zvtm8ll6.cloudfront.net/includes/images/rewamp/home_page/apple-store-download-icon.svg" alt="SolutionInn - Study Help App for iOS" width="116" height="40" class="img-fluid mb-3"  loading="lazy">
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer-bottom">
    <p>© 2024 SolutionInn. All Rights Reserved</p>
</div></footer>
<script>
    window.addEventListener("load",function(){jQuery(document).ready(function(t){t.ajax({type:"POST",url:"/",data:{trackUserActivity:!0,reqUri:document.URL,referer:document.referrer},success:function(t){}})})},!1),window.addEventListener("load",function(){jQuery(document).ready(function(t){t.ajax({type:"POST",url:"/",data:{insertCrawler:!0,reqUri:document.URL,parseTime:"0.056",queryTime:"0.01654768548584",queryCount:"30"},success:function(t){}})})},!1),window.addEventListener("load",function(){jQuery(document).ready(function(){function t(t="",n=!1){var i="itms-apps://itunes.apple.com/app/id6462455425",e="openApp://action?"+t;isAndroid()?(setTimeout(function(){return window.location="market://details?id=com.solutioninn.studyhelp",!1},25),window.location=e):isIOS()?(setTimeout(function(){return window.location=i,!1},25),window.location=e):(i="https://apps.apple.com/in/app/id6462455425",n&&(i="https://play.google.com/store/apps/details?id=com.solutioninn.studyhelp"),window.open("about:blank","_blank").location.href=i)}jQuery("#appModal").modal("show"),jQuery(".download-app-btn").click(function(){t(jQuery(this).attr("question_open_url"))}),jQuery(".redirection").click(function(){var n=jQuery(this).attr("question_open_url"),i=jQuery(this).attr("data-id");void 0!=n?1==i?t(n,!0):t(n,!1):1==i?t("",!0):t("",!1)}),jQuery(".app-notification-close").click(function(){jQuery(".app-notification-section").css("visibility","hidden");var t=new FormData;t.append("hide_notification",!0),jQuery.ajax({type:"POST",url:"/",data:t,cache:!1,contentType:!1,processData:!1,beforeSend:function(){},success:function(t){location.reload()}})})})},!1);
</script>
</body>
</html>