Page 124 -
P. 124

functions




                                                Using the new get_price() function, write a new version of the
                                                price-checking program that does this:
                                                1. Ask the user to indicate if the price is required immediately (Y/N).
                                                2. If the user chooses “Y” for “yes,” find the current price and display it
                                                on the screen.
                                                3. Otherwise, check the price every 15 minutes until it falls below
                                                $4.74, then (and only then), display the price on screen.

























































                                                                                        you are here 4    89
   119   120   121   122   123   124   125   126   127   128   129