Question: The makeCatalog function that we create in this chapter has a couple of significant errors. There should be a space in the title after
The makeCatalog function that we create in this chapter has a couple of significant errors.
• There should be a space in the title after the colon and before the product name. Fix that.
• The grammar of the example is awful, because the product we provided is plural (“Seahorses”) but the text assumes a singular product. Fix it so that the text is right for the number of the input. There are several ways to fix this problem. One way is to take in a boolean input for singular or plural, then change the text accordingly. Another way is to create two catalog page generators, one for singular and one for plural, then let the user decide which to use. Implement one of these.
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
1 Pass in a boolean 2 Split it ... View full answer
Get step-by-step solutions from verified subject matter experts
