Question

In: Computer Science

In C++ A new author is in the process of negotiating a contract for a new...

In C++

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.

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. If option 1 is the best, output Option 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.

Example input:

120
22.99

Expected Output:

25000.0

344.8

275.8

Option 1 is the best

Solutions

Expert Solution

#include <iostream>

using namespace std;

int main()
{
double copies,price,second,third; //Declaring variables
cout<<"\nEnter no of estimated copies: ";
cin>>copies; //Taking no of copies from user
cout<<"\nEnter net price of each copy of the novel: ";
cin>>price; //Taking price from user
cout<<"\nOption 1: $25000"; //Printing option 1
second = price * 0.125 * copies; //Calculating option 2
cout<<"\nOption 2: $"<<second; //Printing option 2
if(copies<4000)
third = price * 0.10 * copies; //Calculating option 3
else
third = (price * 0.10 * 4000) + (price * 0.14 * (copies-4000)); //Calculating option 3
cout<<"\nOption 3: $"<<third; //Printing option 3
if(25000>second && 25000>third) //Checking which option is best
cout<<"\nOption 1 is best";
else if(second>third)
cout<<"\nOption 2 is best";
else
cout<<"\nOption 3 is best";
  

return 0;
}

Output:-


Related Solutions

You are negotiating a contract with a new customer to deliver one of the components for...
You are negotiating a contract with a new customer to deliver one of the components for their product. You estimate that on average you should be able to deliver the product in 8 hours once the customer places the order. Based on historical data, you believe it is reasonable to assume the standard deviation is 1 hour and that actual delivery times are normally distributed. The customer offers you a bonus for deliveries when you are able to deliver the...
You are negotiating a contract with a new customer to deliver one of the components for...
You are negotiating a contract with a new customer to deliver one of the components for their product. You estimate that on average you should be able to deliver the product in 8 hours once the customer places the order. Based on historical data, you believe it is reasonable to assume the standard deviation is 1 hour and that actual delivery times are normally distributed. The customer offers you a bonus for deliveries when you are able to deliver the...
A rookie quarterback is in the process of negotiating his first contract. The team's general manager...
A rookie quarterback is in the process of negotiating his first contract. The team's general manager has offered him three possible contracts. Each contract lasts for four years. All of the money is guaranteed and is paid at the end of each year. The payment terms of the contracts are as follows: (dollars in millions) Year Contract 1 Contract 2 Contract 3 1 $1.50 1.0 3.5 2 $1.50 1.5 0.5 3 $1.50 2 0.5 4 $1.50 2.5 0.5 The quarterback...
Assume you just accepted a new job offer and you are negotiating your contract. You are...
Assume you just accepted a new job offer and you are negotiating your contract. You are offered the opportunity to take deferred salary. Would you accept this offer? Why or why not? If not, under what circumstances would you consider accepting a deferred salary? If you were the owner of a business, would you want to pay your employees a deferred salary? Why or why not?
When you are negotiating the borrowing contract with the bank, the bank proposes a restriction that,...
When you are negotiating the borrowing contract with the bank, the bank proposes a restriction that, during the borrowing period, the annual dividend per share paid by the firm can not be higher than the earnings per share in the previous year. What is the terminology in corporate finance for this restriction? And explain why the bank proposes this restriction
Alicia and Rafel are in the process of negotiating a divorce agreement to be finalized in...
Alicia and Rafel are in the process of negotiating a divorce agreement to be finalized in 2018. They both worked during the marriage and contributed an equal amount to the marital assets. They own a home with a fair market value of $400,000 (cost of $300,000) that is subject to a mortgage for $250,000. They have lived in the home for 12 years. They also have investment assets with a cost of $160,000 and a fair market value of $410,000....
Discos plc is negotiating an export contract with a customer in a developing country, Xeridia. Discos...
Discos plc is negotiating an export contract with a customer in a developing country, Xeridia. Discos have not exported to the country before, and is concerned both about the risk of late or non-payment for the exports, and about the foreign exchange risks associated with the Xeridian peso. The contract specifies that Discos should receive 55 million Xeridian pesos in three months’ time. Discos will require short-term finance for the full value of the exports. Exchange rates (peso/£) Spot 32·34...
Refer to the LawNow article, “What is an Employment Contract?” written by Peter Bowal. The author...
Refer to the LawNow article, “What is an Employment Contract?” written by Peter Bowal. The author notes that the terms of a contract can be implied by common law. Which one of the following is NOT one of the implied duties of an employee? Select one: a. Will provide reasonable notice of resignation. b. Will not work for a competitor for a period of 3 months after resigning. c. Will be qualified for the job. d. Will serve in good...
ABC (Ltd) is a dairy company which is in the process of negotiating the acquisition of...
ABC (Ltd) is a dairy company which is in the process of negotiating the acquisition of XYZ (Ltd). The management estimates that the acquisition will result in economies of scale and the additional benefits will amount to R30 000 000. ABC (Ltd) is prepared to make a cash payment of R55 000 000 for XYZ (Ltd). The following information is available for the two companies: ABC (Ltd) XYZ (Ltd) Earnings per share R5.00 R4.00 Number of shares 5 000 000...
Jefferson Inc. is in the process of negotiating a lease of equipment with a fair value...
Jefferson Inc. is in the process of negotiating a lease of equipment with a fair value of $200,000 and must determine the proper lease classification. The following table describes four scenarios under negotiation. 1 2 3 4 Ownership Transfer No No No No Lease term (years) 8 10 8 8 Asset’s useful life (years) 12 12 12 12 Asset’s fair value $200,000 $200,000 $200,000 $200,000 Purchase option that is reasonably certain to be exercised? No No $40,000 No Alternative use...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT