Question: Matlab Please Homework 06 - Conditionals Function Name: boxOfficePower Inputs 1. (char) Comma separated string of three possible actors for your superhero movie Outputs: 1.

Matlab PleaseMatlab Please Homework 06 - Conditionals Function Name: boxOfficePower Inputs 1. (char)

Homework 06 - Conditionals Function Name: boxOfficePower Inputs 1. (char) Comma separated string of three possible actors for your superhero movie Outputs: 1. (double) Your movie's projected earnings at the box office (in millions) Background: You've just made a fortune as a MATLAB coder and have moved to L.A. to become a hotshot Hollywood producer. As you look at the current state of Hollywood movies, you notice one thing: the box office is dominated by franchises. Ever so eager to get in on the fun (and money), you decide to start your own superhero franchise! Function Description: For your superhero movie to be successful, it needs actors with lots of box office draw Each actor has the potential to bring in a certain sized fanbase based on their appeal. You decide to write a MATLAB function that takes in a list of three potential actors and calculates your movie's gross earnings (in millions) based on its cast. The list of actors will be a character vector separated by commas. To calculate your total projected earnings, add together the box office draws of each individual actor. Use the following table Actor Gal Gadot Robert Downey Jr Chadwick Boseman Chris Hemsworth Scarlett Johansson Jeremy Renner Brandon Routh Ryan Reynolds Nicolas Cage Box Office Draw (Millions $) 1,900 800 400 350 300 150 50 0 200

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!