Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

After studying gross annual revenues of Broadway shows over a 20-year period, yo

ID: 3654432 • Letter: A

Question

After studying gross annual revenues of Broadway shows over a 20-year period, you model the revenue as a function of time: R(t) = 203.265 x (1.071)^t Where R is in millions of dollars and t is the years since 1984. Create the following C++ functions to implement this model: revenue-calculates and returns R for an input parameter of t. predict-predicts the year in which revenues (in millions) will first equal or exceed the value of the input parameter. For example, predict (200) would return 1984. Write a main function that calls predict to determine when revenues will likely exceed $1 trillion (that is, 1,000 million). Then display a table of estimated revenues (in millions of dollars) for all the years from 1984 through the year when revenues should exceed $1 trillion. Round revenue estimates to three decimal places.

Explanation / Answer

#include #include #include using namespace std; double revenue(int t){ double R= (203.265*pow(1.071,t)); return R; } int predict(double millions){ int t=0; while(1){//stuck in the while loop until if(revenue(t)>=millions){//it meets this criteria return (1984+t); //and returns 1984+years until meet criteria } t++; } } int main(){ int year,t; double rev; t=predict(1000);//when revenues will likely exceed $1 trillion cout