7. Write a function named display_final_invoice() that applies a randomly generated discount to a lucky customer (decided by the get_lucky() function in 6.) and prints the updated final invoice as...



Write a main function that must call your other functions so that your program runs all required

components of this Automatic Invoice Generator. Do not forget to add the main guard to ensure

that the main() function does not get executed if your program is imported by some other

program. A complete sample run of this program is available in section 3.




I need help in part 8.



7. Write a function named display_final_invoice() that applies a randomly generated<br>discount to a lucky customer (decided by the get_lucky() function in 6.) and prints the<br>updated final invoice as follows.<br>Congratulations!<br>Good news, you have been qualified for a 10% discount!<br>Here is your final receipt!<br>==============================:<br>============<br>Spiked Umbrella x 3<br>Voice Changer x 3<br>Spy Camerа х 2<br>21.75<br>16.50<br>30.00<br>Subtotal (old):<br>Subtotal (new):<br>68.25<br>61.42<br>Discount:<br>6.83<br>Тах:<br>7.99<br>Total:<br>69.41<br>========<br>============<br>8. Write a main function that must call your other functions so that your program runs all required<br>components of this Automatic Invoice Generator. Do not forget to add the main guard to ensure<br>that the main() function does not get executed if your program is imported by some other<br>program. A complete sample run of this program is available in section 3.<br>

Extracted text: 7. Write a function named display_final_invoice() that applies a randomly generated discount to a lucky customer (decided by the get_lucky() function in 6.) and prints the updated final invoice as follows. Congratulations! Good news, you have been qualified for a 10% discount! Here is your final receipt! ==============================: ============ Spiked Umbrella x 3 Voice Changer x 3 Spy Camerа х 2 21.75 16.50 30.00 Subtotal (old): Subtotal (new): 68.25 61.42 Discount: 6.83 Тах: 7.99 Total: 69.41 ======== ============ 8. Write a main function that must call your other functions so that your program runs all required components of this Automatic Invoice Generator. Do not forget to add the main guard to ensure that the main() function does not get executed if your program is imported by some other program. A complete sample run of this program is available in section 3.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here