subject
Computers and Technology, 11.03.2020 01:59 krisik

Redo Programming Exercise 16 of Chapter 4 so that all the named constants are defined in a namespace royaltyRates. PLEASE DONT FORGET THIS PART- it makes me confused. Instructions for Programming Exercise 16 of Chapter 4 have been posted below for your convenience. Exercise 16A 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.)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
question
Computers and Technology, 25.06.2019 12:30
The term used to describe the shape and layout of a computer component such as a motherboard or hard drive is __ factor?
Answers: 1
question
Computers and Technology, 25.06.2019 20:30
Marco wants to create a heading that is bold and italic to make it really stand out on his webpage. he's typed in the code
Answers: 1
You know the right answer?
Redo Programming Exercise 16 of Chapter 4 so that all the named constants are defined in a namespace...
Questions
question
Mathematics, 17.10.2019 13:30
question
Mathematics, 17.10.2019 13:30
question
Mathematics, 17.10.2019 13:30
Questions on the website: 13722362