A new author is in the process of negotiating a contract for a new romance novel. The publisher is offering three options. In the first option, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. In the second option, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. In the third option, the author is paid 10% of the net price for the first 4,000 copies sold, and 14% of the net price for the copies sold over 4,000. The author has some idea about the number of copies that will be sold and would like to have an estimate of the royalties generated under each option. Write a program that prompts the author to enter the net price of each copy of the novel and the estimated number of copies that will be sold. The program then outputs the royalties under each option and the best option the author could choose. (Use appropriate named constants to store the special values such as royalty rates and fixed royalties.)

Sample output

Enter the num of copies sold: 100

Enter the net price of one book: 50

Option 1 is the best and the royalty is: 25000.00
Royalty option1: 25000.00
Royalty option2: 625.00
Royalty option3: 500.00
Enter the num of copies sold: 20000

Enter the net price of one book: 30

Option 1 is the best and the royalty is: 79200.00
Royalty option1: 25000.00
Royalty option2: 75000.00
Royalty option3: 79200.00
Enter the num of copies sold: 4000

Enter the net price of one book: 100

Option 1 is the best and the royalty is: 50000.00
Royalty option1: 25000.00
Royalty option2: 50000.00
Royalty option3: 40000.00
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.