1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
NNADVOKAT [17]
3 years ago
11

Integer indexing array: Weekend box office The row array movieBoxOffice stores the amount of money a movie makes (in millions of

$) for the 7 days of a week, starting with Sunday. Write a statement that constructs a row array weekendBoxOffice having the values for Sunday, Friday, and Saturday. Ex: If movieBoxOffice is [5.6, 3.5, 1.1, 1.5, 0.8, 1.2, 1.9], then weekendBoxOffice is [5.6, 1.2, 1.9] Function Save Reset MATLAB DocumentationOpens in new tab function weekendBoxOffice = GetWeekendEarnings(movieBoxOffice) % movieBoxOffice : 7 day box office sales in millions, starting with Sunday % Assign Sunday, Friday, and Saturday box office % earnings to row array weekendBoxOffice weekendBoxOffice = 0; end 1 2 3 4 5 6 7 8 Code to call your function
Computers and Technology
1 answer:
DiKsa [7]3 years ago
8 0

Answer:

function weekendBoxOffice = GetWeekendEarnings(movieBoxOffice)

    weekendBoxOffice = movieBoxOffice([1, 6,7]);

end

Explanation:

  • Create a function called GetWeekendEarnings() .
  • Create an array weekendBoxOffice that stores the sunday,friday, saturday sales .

You might be interested in
Overcoming the fundamental attribution error requires making an effort to shift an external attribution into an internal attribu
Irina-Kira [14]

The correct answer on Edgen is:

(B.) False

I just took the test and this is the right answer.

8 0
4 years ago
Read 2 more answers
12) The Windows utility returns your computer to the state it was in when it came from the factory. Erase Refresh Reset Backup N
Ludmilka [50]

Answer:

Reset

Explanation:

3 0
3 years ago
A car can move, a crystal can grow, a fire alarm is sensitive and they are classified as non-living things. Explain?​
aleksandrvk [35]

Answer:

They are all controlled by something else. A car is controlled by humans. A crystal grows due to the temperature and climate. A fire alarm only rings when it senses smoke, which is caused by something else, usually humans.

7 0
3 years ago
The ideal type of loop to use if you want a user to enter exactly 20 values is a(n) ________ loop.
mestny [16]

Answer:

use for loop when you know how much iteration user is going to perform.

if iteration is not confirmed and you want execute your loop atleast once use do while.

3 0
2 years ago
According to Pew Internet and American Life Project, a Pew Institute study, parents are concerned about which factor?
SashulF [63]

Answer:

Based on these studies, the answer would be 4.

Explanation:

Parents do not care if a child knows a language they do not, and whatever else, etc etc. But number 4 gives a very good example of things to actually worry about when a child is using the internet.

6 0
3 years ago
Other questions:
  • What is the output after the following code executes?
    14·1 answer
  • An Internet connection problem for customers is found to be outside a carrier's regional office. As a result, which area needs t
    9·1 answer
  • Which equation gives you the amount of work performed?
    13·1 answer
  • Sally is editing her science report about living things. She needs to copy a paragraph from her original report.
    15·2 answers
  • The most common types of utility programs fall into these categories. accessibility calculation communication data entry enterta
    6·2 answers
  • A Linux-based OS is called a _____.
    9·1 answer
  • Write a program that declares an array named myArray with 8 components of the type int. Initialize the array to 8 values that th
    6·1 answer
  • Suppose we want an error correcting code that will allow all single-bit errors to be corrected for memory words of length 15. 1.
    5·1 answer
  • A user can view <br> and <br> in the Reading pane.
    9·1 answer
  • List and describe the five moral dimensions that are involved in political, social, and ethical issues. Which do you think will
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!