Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

See attached: Program Exercise 4-16 Instructions Summary 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,...

1 answer below »

See attached:

Program Exercise 4-16

Instructions

Summary

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,000upon delivery of the final manuscript and$20,000when the novel is published.
  • In the second option, the author is paid12.5%of the net price of the novel for each copy of the novel sold.
  • In the third option, the author is paid10%of the net price for the first4,000copies sold, and14%of the net price for the copies sold over4,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.

Instructions

Write a program that prompts the author to enter:

  1. The estimated number of copies that will be sold.
  2. The net price of each copy of the novel

The program then outputs:

  1. The royalties under each option
  2. The best option the author could choose.
    • Ex XXXXXXXXXXIf option 1 is the best, outputOption 1 is the best

(Use appropriate named constants to store the special values such as royalty rates and fixed royalties.)

Since your program handles currency, make sure to use a data type that can store decimals with a decimal precision of 2.

Answered 1 days After Oct 16, 2021

Solution

Sathishkumar answered on Oct 17 2021
130 Votes
#include #include using namespace std;
int main()
{
int copies;
double price;
    double fixedroyalties = 25000;
double royaltyrates_case2;
    double royaltyrates_case3;    

cout
"1. Enter The estimated number of copies that will be sold ";
cin
copies;
cout
endl;
cout
"2.    The net price of each copy of the novel ";
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here