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
What type of power flaw involves a fluctuation in voltage levels caused by other devices on the network or by EMI?
HACTEHA [7]

Answer:

noise is the correct answer for the above question.

Explanation:

  • The noise is a term which is a barrier in the network of communication. It forces the signals to make a delay in data transfer. It is caused by any device or mechanism.
  • For example, if any data is transferring, but some device makes fluctuation in wire, then the communication voltage is disturbed.
  • The above question asked about the term which born with the help of some devices and it caused the fluctuation in the voltage. So the term is known as noise.
4 0
4 years ago
Types of libraries in operating system​
katrin2010 [14]

Answer:

Academic, Public, National & Special Library

Explanation:

8 0
3 years ago
Bill is building a project network that involves testing a prototype. he must design the prototype (activity 1), build the proto
Vedmedyk [2.9K]

Answer:

Bill is building a project network that involves testing a prototype. he must design the prototype (activity 1), build the prototype (activity 2), and test the prototype (activity 3). activity 1 is the predecessor for activity 2 and activity 2 is the predecessor for activity 3. if the prototype fails testing, bill must redesign the prototype; therefore, activity 3 is a predecessor for activity 1. this is an example of

b. looping

Explanation:

  • The given example is of looping because each activity is leading to another activity on the completion of some conditions.
  • The answer a is not valid as it is not just an example of conditional statements rather it is a loop which will keep moving until unless reached a situation to end it.
  • The option c, d an e are not right options for the given example.
4 0
4 years ago
A hotel salesperson enters sales in a text file. Each line contains the following, separated by semicolons: The name of the clie
Paul [167]

Answer:

Complete solution is given below:

Explanation:

Java code:

//Header file section

import java.util.Scanner;

import java.io.*;

//main class

public class SalesTestDemo

{

//main method

public static void main(String[] args) throws IOException

{

  String inFile;

  String line;

  double total = 0;

Scanner scn = new Scanner(System.in);

//Read input file name

System.out.print("Enter input file Name: ");

inFile = scn.nextLine();

FileReader fr = new FileReader(new File(inFile));

BufferedReader br = new BufferedReader(fr);

System.out.println("Name \t\tService_Sold \tAmount \tEvent Date");

System.out.println("=====================================================");

line = br.readLine();

//Each line contains the following, separated by semicolons:

//The name of the client, the service sold

//(such as Dinner, Conference, Lodging, and so on)

while(line != null)

{

String temp[] = line.split(";");

for(int i = 0; i < temp.length; i++)

{

System.out.print(temp[i]+"\t");

if(i == 1)

System.out.print("\t");

 

}

//Calculate total amount for each service category

total += Double.parseDouble(temp[2]);

System.out.println();

line = br.readLine();

}

//Display total amount

System.out.println("\nTotal amount for each service category: "+total);

}

}

inputSale.txt:

Peter;Dinner;1500;30/03/2016

Bill;Conference;100.00;29/03/2016

Scott;Lodging;1200;29/03/2016

Output:

Enter input file Name: inputSale.txt

Name        Service_Sold    Amount    Event Date

=====================================================

Peter   Dinner       1500   30/03/2016  

Bill   Conference       100.00   29/03/2016  

Scott   Lodging       1200   29/03/2016  

Total amount for each service category: 2800.0

7 0
3 years ago
What is the arc of technology it can't be a brand or app
Maru [420]

aim or audacity or avatar

bluetooth or blogspot

camera or cpu or core

5 0
3 years ago
Other questions:
  • If a local DNS server cannot find an IP address for a specified URL, it does this.
    9·1 answer
  • Which mode can students use to ensure that their information is not saved in their Chrome browser
    15·1 answer
  • This folder is ndownload and it isn't like download file
    14·1 answer
  • In order for Dr. Reynolds to send a CPOE from her office computer system to the computer system at the local hospital, a/an ____
    5·1 answer
  • Jackson is teaching a class the concept of the binary number system. Which term will he use to refer to the leftmost bit of a bi
    11·2 answers
  • The ____ method writes a newline character after the data.
    11·1 answer
  • 2. Which of the following statements describes a need or problem that can be solved using the technology design process.
    14·1 answer
  • 100 points, PLEASE HELP...To generate numbers between and including -10 to 10 you would use:
    5·1 answer
  • Text me on instagram forever.brazy so we can watch a movie​
    15·1 answer
  • Create a mobile app plan using PowerPoint slides to show mock-ups of screens,
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!