Question
Write C++ program for below. A new author is in the process of negotiating a contract for a new romance novel. The publisher is offering
Write C++ program for below.
A new author is in the process of negotiating a contract for a new romance novel. The publisher is offering three options. For Option 1, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. For Option 2, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. For Option3, the author is paid 10% of the net price for the first 4000 copies sold, and 14% of the net price for the copies sold over 4000.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 accepts1) the estimated number of copies, (Assume that the number of copies sold >4000), that will be sold and 2) the net price of each copy of the nove. The program outputs the royalties for Option 1, Option 2, and Option 3,one per line, and then the best royalty option number (Option 1,Option2 or Option 3) on the next line Format the output decimal numbers to two decimal places
Testcase: (Input / Output)
10000
49.99
25000.00
62487.50
61987.60
Option 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started