answer.
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
BabaBlast
1 month ago
14

A company is performing an analysis on the computers at its main office. The computers are spaced along a single row. The analys

is is performed in the following way: 1. Choose a contiguous segment of a certain number of computers, starting from the beginning of the row. 2. Analyze the available hard disk space on each of the computers. 3. Determine the minimum available disk space within this segment.
Computers and Technology
1 answer:
oksian1 [804]1 month ago
5 0

Answer:

array = input("Enter the list of computer memory: ").split(',')

int_arr = [int(x) for x in array]

segment = int(input("Enter the length of segment to analyze: "))

list_len = len(int_arr)

segList = []

mini = []

for x,i in enumerate(int_arr):

   seg = int_arr[i-1:segment+i-1]

   if len(seg) == segment:

       segList.append(seg)

for x in segList:

   mini.append(min(x))

result = mini.index(min(mini))

print("Segment with the minimum memory is: ",segList[result])

Explanation:

This Python program outputs the segment after evaluating, which has the lowest disk storage space. It collects the computer memory array based on user input and divides it according to the specified segment length, then compares the minimum across all segments.

You might be interested in
Given main(), define the Team class (in file Team.java). For class method getWinPercentage(), the formula is:teamWins / (teamWin
amid [805]

Answer:

Explanation:

public class Team {

   private String teamName;

   private int teamWins;

   private int teamLosses;

   public String getTeamName() {

       return teamName;

   }

   public void setTeamName(String teamName) {

       this.teamName = teamName;

   }

   public int getTeamWins() {

       return teamWins;

   }

   public void setTeamWins(int teamWins) {

       this.teamWins = teamWins;

   }

   public int getTeamLosses() {

       return teamLosses;

   }

   public void setTeamLosses(int teamLosses) {

       this.teamLosses = teamLosses;

   }

   public double getWinPercentage() {

       return teamWins / (double) (teamWins + teamLosses);

   }

}

7 0
13 days ago
George and Miguel are considering opening up a shoe store but first need to do market research. Which one of these is NOT part o
Natasha_Volkova [897]
The answer is D. Based on their research findings, they will draw conclusions and make business decisions.
7 0
1 month ago
Read 2 more answers
python Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value i
oksian1 [804]

int currentNumber,previousNumber = -1, countDuplicates = 0;

do {

cin >> currentNumber;

if ( previousNumber == -1) {

previousNumber = currentNumber;

}else {

if ( previousNumber == currentNumber )

countDuplicates++;

else

previousNumber = currentNumber;

}

} while(currentNumber > 0 );

cout << countDuplicates;

7 0
1 month ago
The symbol asterisk(*) in a select query retrieves​
Harlamova29_29 [932]

Answer:

The solution to this issue can be found in the explanation section provided below.

Explanation:

The asterisk (*) symbol within a select query retrieves all columns in the designated table. For instance, if there is a table named "employee" comprising three columns: id, name, address.

To use the asterisk (*) in a select query to obtain all columns in the result, it appears as follows:

for example:

select * from employee;

This query command selects all columns from the "employee" table to be included in the output.

3 0
21 day ago
After performing many sequential searches on a list of 6000 entries, what would you expect to be the average number of times tha
maria [879]
The most unfavorable scenario in a sequential search for n entries entails n comparisons (one for each non-matching entry), whereas the best scenario requires just 1 comparison. Hence, the complexity for sequential search is O(n). In average cases, you'd inspect around n/2 entries. When averaging the best (1) and worst (n) cases, the result is n / 2. Therefore, for this case, the expected number is 3000.
5 0
18 days ago
Read 2 more answers
Other questions:
  • Assume that the following variables have been properly declared and initialized.
    12·1 answer
  • When you add a zero to the right of a decimal number, it multiplies its value by 10 (For example, "15" becomes "150"). What simi
    10·1 answer
  • In the middle of the iteration, how should a team handle requirement changes from the customer? (1 correct answer)
    7·2 answers
  • Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an in
    13·2 answers
  •  How does critically analyzing technology add value to interactions with people in personal and professional contexts?
    9·2 answers
  • How has the development of personal computer hardware and software reversed some of the trends brought on by the industrial revo
    15·1 answer
  • Write a program that prompts the user for an integer, then asks the user to enter that many values. Store these values in an arr
    14·1 answer
  • Sketch the developments in multimedia. What do you expect to be the commercial impact of multimedia in the (near) future?
    12·1 answer
  • Describe a situation involving making a copy of a computer program or an entertainment file of some sort for which you think it
    7·1 answer
  • In a survey of 7200 T.V. viewers, 40% said they watch network news programs. Find the margin of error for this survey if we want
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!