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

In C++ Language please. #include <iostream> using namespace std; int main() { //

ID: 3876791 • Letter: I

Question

In C++ Language please.

#include <iostream>
using namespace std;

int main() {
   // your code goes here
   return 0;
}

2. The show How I Met Your Mother grossed $ 5 million per year ($225,000 per episode). (FYI the 3 leads on Big Bang Theory make $24 million per year) Write the program that includes the following: A calculation that outputs how many episodes aired each year A calculation that outputs how much per day each actor makes(5 leading cast members) Asks for an input who the Father is that is telling the story. This can be multiple choice

Explanation / Answer

#include <iostream>

using namespace std;

int main() {

// your code goes here

int a = 5000000,b = 225000;

int c;

float d;

int s ;

c = a/b;

cout<<"there are "<<c<<" episodes aired each year";

d = a/365;

d = d/5;

cout<<" each actor makes "<<d<<"$ per day";

cout<<" who the father telling the story enter the correct number 1) Ted Mosby 2) john roadsay";

cin>>s;

switch(s)

{

case 1:cout<<" correct";

break;

case 2:cout<<" wrong";

break;

default: break;

}

return 0;

}