To analzye various alternative scenarios, a manager would use _______.
a. the spreadsheet's 'what-if' capability
b. the graphing features of spreadsheet software
c. the reporting feature of a BI tool
d. a data visualization tool

Answers

Answer 1

The 'what-if' feature of the spreadsheet would be used by the management to assess numerous potential scenarios.

used to search through enormous amounts of data for hidden patterns that can be utilized to forecast future trends?

Large data sets are sorted through using a technique called data mining to find patterns and relationships that may be used to analyze data and find answers to business challenges. Businesses can foresee future trends and make more educated business decisions thanks to data mining techniques and tools.

Which of the following will be a fact measure in a data cube utilized at a chain retail establishment?

The revenue for a chain retail business is typically the fact measure in a data cube (example: Indiana's second-quarter revenue of $900 from sales of pants).

To know more about spreadsheet visit :-

https://brainly.com/question/8284022

#SPJ4


Related Questions

Define a class TestIsEvenMethod, which is derived from unittest. TestCase class. Hint : Import unittest module and use TestCase utility of it. Define a test test_isEven1, inside TestIsEvenMethod, that checks if isEven(5) returns False or not.


Hint : Use assertEqual method to verify the function output with expected output. Add the statement unittest. Main(), outside the class definition

Answers

A unit test should be imported from the standard library. Make a class called TestSum that is an inheritor of TestCase. Add self as the first argument to the test functions to make them into methods.

When utilizing the unit test module, which class do we inherit to create a straightforward testing class?

The function you want to test, formatted name(), and a unit test must first be imported. Following that, you develop a class, such as NamesTestCase, which will house tests for your formatted name() function. This class is descended from the unit test class. TestCase.

Why is pytest inferior to unit test?

Unittest mandates that programmers construct classes inherited from the TestCase module, where the test cases are then specified as methods. For Pytest, however, all you need to do is declare a function with "test_" before it and utilize the assert conditions inside of it.

to know more about TestCase class here:

brainly.com/question/30115788

#SPJ1

For business networks, which of the following is NOT one of the main cable types?
A) Twisted-pair
B) Polyvinyl
C) Coaxial
D) Fiber-optic

Answers

The correct answer is (B), Polyvinyl is NOT one of the primary cable types used for corporate networks.

What is network?

Two or more computers linked together to pool resources (such printer and CDs), exchange information, or enable electronic communications make up a network. A network's connections to its computers can be made by cables, telephone line, radio frequencies, satellite, or infrared laser pulses.

What is the most common network?

Though LAN & WAN networks are the two most common, the following network types may also be mentioned: A LAN that uses Wi-Fi wirelessly network infrastructure is known as a "wireless local area network." Metropolitan Area Networks: A network which covers a geographical area that is wider than that of a LAN but smaller than a WAN, like a city.

To know more about network visit :

https://brainly.com/question/24279473

#SPJ4

The ____ command is used to restore the table's contents to their previous values.
a. COMMIT; RESTORE;
b. COMMIT; BACKUP;
c. COMMIT; ROLLBACK;
d. ROLLBACK;

Answers

To return the table's contents to their previous values, use the ROLLBACK command.

How can I get data out of a table in SQL?

To get data out of our tables, utilize the SELECT command in SQL. The output of this command is always a table, which we can use to develop dynamic web pages or desktop apps or to browse with our database client software.

How would the table row "WHERE" be deleted? Which command would be used?

The DELETE command can be used to remove rows from a table. To delete individual rows or all rows from a table, use the DELETE command. Provide the table and an optional search condition (WHERE) that specifies which rows to delete in order to delete rows.

To know more about ROLLBACK command visit:-

https://brainly.com/question/29853510

#SPJ4

*** JAVA ***
Retype and correct the code provided to combine two strings separated by a space.
secretID.concat(spaceChar);
secretID.concat(lastName);
import java.util.Scanner;
public class CombiningStrings {
public static void main (String [] args) {
String secretID = "Barry";
String lastName = "Allen";
char spaceChar = ' ';
/* Your solution goes here */
System.out.println(secretID);
return;
}
}

Answers

 * This program is used to Concatenate the strings *

// import statement

import java.lang.*;

 // Create a class CombiningStrings

public class CombiningStrings

{

 // Create a main method

public static void main(String[] args)

   {

  String secretID = "Barry";

String lastName = "Allen";

char spaceChar = ' ';

 /* Your solution goes here */

// Convert character data type to string data type

// The concatenation operation occurs with two string data

//types

String strSpaceChar = Character.toString(spaceChar);

// Concatenate two strings secretID and strSpaceChar

secretID = secretID.concat(strSpaceChar);

 // Concatenate two strings secretID and lastName

   secretID = secretID.concat(lastName);

// Display secretID

System.out.println(secretID);

 return;

   }

}

To know more about JAVA visit:

https://brainly.com/question/29897053

#SPJ4

A new resident in Virginia desiring to register his / her vehicle must obtain a vehicle ____________ certificate and verification of the vehicle ______________ number.

Answers

The starting system enables the driver to switch on an electric motor, solenoid switch, wiring, and battery by turning the ignition key. The lighting, safety systems, and accessories are all powered by the accessory circuits.

What are danger lights used for?

The danger lights on your car perform a crucial job in terms of safety. These lights serve as a warning to other vehicles when used properly. Most of the time, when you flash your danger lights, other drivers assume that your car is stationary and that they should avoid it.

What do yellow warning lights do?

When driving on slick roads, yellow or amber lights frequently signal a lower-level hazard or warning, such as the activation of the traction control system. White, blue, and green lights just indicate the activation of a device, such as the headlights.

To know more about accessories visit:-

https://brainly.com/question/28082899

#SPJ4

Which of the following describes an engine where the pistons move horizontally rather than vertically or diagonally

Answers

A "boxer" engine is one in which the pistons move in opposition to one another and the cylinders are arranged horizontally rather than vertically, as in inline and V-type engines.

Exactly what Engines are devices that transform energy from a variety of sources into mechanical force and motion:

additionally: a device or item that acts as an energy source. Quasars' engines might be black holes, like a locomotive.

How come it's called an engine?

The word "engine" derives from the Latin ingenium, which also refers to mental aptitude or cunning. The term acquired the meanings of inventiveness, contrivance, deception, and malice throughout its transition from French to English.

To know more about engine visit:

https://brainly.com/question/1232655

#SPJ4

Which of the following is the correct statement to return a string from an array a of characters?
A. toString(a)
B. new String(a)
C. convertToString(a)
D. String.toString(a)

Answers

The following is the appropriate syntax to extract a string from an array of characters named New String(a).

Which of the following describes the action of directly assigning a value of a primitive data type to an object wrapper?

The process of turning a primitive value into an object of the relevant wrapper class is referred to as autoboxing. Changing an int to a class of integer, for instance.

Which of the following statements uses Java to build a string?

by a new word: The "new" keyword is used to construct Java Strings. Consider this: String s = new String ('Welcome'); Two objects are created (one each in the heap and the String pool), and one reference variable is also created, with the variable "s" referring to the heap object.

To know more about New String(a) visit :-

https://brainly.com/question/30099412

#SPJ4

Quetion 10 of 10 Which action take place in the Deploy tep of the game development cycle?

Answers

The most likely course of action during the Define stage of the game development cycle is to play the game and complete each level to check for flaws. Option B is correct.

What exactly does game development entail?

The art of creating games is known as "game development," which includes the design, creation, and release of a game. The components could include concept generation, design, construction, testing, and release. When creating the game, you should take into account the rules, rewards, player interaction, and level design.

Do you develop games in C++?

In today's game development ecosystem, C++ is crucial. The usage of C++ in the source code of numerous popular game engines, like Unreal and Unity, enables developers to create more high-performing games. Let's examine the benefits of using C++ as a game development language.

To know more about game development visit

brainly.com/question/19837091

#SPJ4

The options are;

A. Creating a mood board in order to plan the overall feel and color

scheme of the game

B. Playing the game and going through every level to make sure that

no errors occur

C. Determining whether the outside material needed in the game has

special licenses

D. Building a minimum viable product (MVP) and presenting it to an

audience for testing

Define the term Project brief? why is it important to do planning?Atleast 2 paragraph.

Answers

A project brief is a concise explanation of the important components of your project. Consider it a high-level overview for project stakeholders and cross-functional collaborators.

What is a project brief?

Your project brief should explain your project requirements without overwhelming your stakeholders with specifics. The project brief is a document that summarizes the project.

The paper highlights all of the project's significant and necessary components. This comprises the project scope, project objectives, and the ambitions or goals that the project seeks to attain.

Therefore, A project brief is a concise overview of your project's key components. Consider it an executive summary for project stakeholders and cross-functional collaborators.

To learn more about the project brief, refer to the link:

https://brainly.com/question/25009327

#SPJ1

E-commerce refers to the use of any networking technologies to transact business
True
False

Answers

E-commerce does not necessarily refer to using networking technologies to do business, which is a false statement.

Which statement best describes e-commerce?

E-commerce is described as the exchange of money and data to complete sales while purchasing or selling products or services online. It is often referred to as online commerce or electronic commerce.

An e-commerce easy response is what?

E-commerce refers to the exchange of products and services over the internet. On the information superhighway, your bustling city center or physical store is being transformed into zeros and ones. Ecommerce, usually referred to as electronic commerce or internet commerce, is the term for the online purchase and sale of products and services as well as the exchange of financial instruments.

To know more about networking technologies visit:-

https://brainly.com/question/7499316

#SPJ4

What is the output results of Artificial Neurons, electrical signals, chemical signals, numbers or letters?

Answers

Answer:

Neurons communicate via both electrical signals and chemical signals. The electrical signals are action potentials, which transmit the information from one of a neuron to the other; the chemical signals are neurotransmitters, which transmit the information from one neuron to the next.

Explanation:

As part of clinical documentation improvement, a patient case review resulted in the determination that a patient's previous hospital discharge was inappropriate because the patient was transported back to the hospital via ambulance and admitted through the emergency department within three days of the previous discharge; this process is called a __________ audit.

Answers

Within three days of the previous release; this procedure is known as a readmission audit.

For an osteoporosis diagnosis, which code would be considered a medical necessity?

The WHO classifies ICD-10 code Z13. 820, Encounter for osteoporosis screening, as a medical condition that falls under the heading of "Factors influencing health status and interaction with health services."

What kind of code should be used to record a patient's disease, injury, or medical condition?

The state of the patient and the diagnosis made by the doctor are represented by ICD codes. These codes are employed in the billing procedure to establish medical necessity. Coders must ensure that the procedure they are billing for is appropriate given the provided diagnosis.

To know more about readmission audit visit :-

https://brainly.com/question/29979411

#SPJ4

A computer program outputs whether a capital city in Europe is north or south of another capital city in Europe. It only needs to know the latitude of the two cities – the other detail is unnecessary. This is an example of abstraction; including the necessary detail and not including the unnecessary detail.

Answers

Program brief :

City = input(“Enter a city in Europe”)Latitude=input(“Enter the Latitude ofthe city”)

If Lattitude ==

Your worksheet appears with a reduced view of each page and blue dividers where new pages begin. What view are you in

Answers

Your worksheet displays a condensed version of each page and blue dividers to indicate where new pages start (page break preview).

What does the response on the worksheet mean?

In an Excel document, a worksheet is a collection of cells organised in rows and columns. It is the location where data entering happens. With select the optimal rows and corresponding to the different columns, each worksheet serves as a huge table for organizing data.

What does a worksheet in the classroom mean?

Worksheets are often loose sheets of paper with exercises or questions on them for students to complete and record their responses. They are utilized in most courses to some extent, and there are two main varieties in the math curriculum where they are often used.

To know more about worksheet visit:

https://brainly.com/question/13129393

#SPJ4

Source code is one particular representation of a software system. It highlights some details and hides others. This is a good example of:

Answers

A nice example of abstraction is when a source code shows some details while hiding others.

What exactly is computer source code?

A programmer's text editor or visual programming tool-created programming statements that are later saved in a file are known as source code. The output, a compiled file, that results from the compilation of the source code using a C compiler is referred to as object code in most contexts.

How is the source code concealed?

Really, there is no method to conceal the source code for languages used on the web. Everyone has access to it if the browser can see it. Obfuscating it is one way to try to make it more difficult. Given enough time, one can still make sense of it.

To know more about abstraction visit :-

https://brainly.com/question/19419456

#SPJ4

A hacker is trying to perform a Distributed Denial of Service (DDoS) attack on the server by flooding it with bogus requests from zombies in a botnet.

Answers

The correct option is A: "A hacker is trying to perform a DDoS attack on the server by flooding it with bogus requests from zombies in a botnet".

Distributed Denial of Service (DDoS) attacks are a type of denial of service (DoS) attack. A DDoS attack involves a network of multiple connected online devices, known as a botnet, that are used to flood a target website with bogus traffic.

In the scenerio where you are watching the network with a sniffer, analyzing external traffic when a server suddenly begins getting hundreds of unidentifiable random packets from a variety of sources. The most likely scenario is that a cybercriminal is trying to launch a DDoS attack on the server by flooding it with bogus requests from zombies in a botnet.

"

Complete question:

You are monitoring the network by analyzing the external traffic with a sniffer when, suddenly, a server starts receiving hundreds of unidentified random packets from many different sources. What is most likely happening?

A) A hacker is trying to perform a Distributed Denial of Service (DDoS) attack on the server by flooding it with bogus requests from zombies in a botnet.

B) A hacker is making the server devote more resources than the attacker's machine by exploiting a protocol weakness.

C) A hacker is trying to brute force the server to break into it with admin credentials.

D) A hacker is performing an ARP (Address Resolution Protocol) poisoning attack to make the attacker's IP the default gateway in order to redirect traffic.

"

You can leanr more about Distributed Denial of Service (DDoS) at

https://brainly.com/question/29992471

#SPJ4

The local amusement park has decided to stop printing paper copies of the park map. It will now only be available as a digital file. Why do some visitors think this is a bad idea

Answers

For the fact that not every visitor will have a mobile device on which he or she can read the map, some visitors believe that this is a bad idea.

What sort of paper is ideal for printing maps on?

A synthetic paper is the finest medium to print maps on if you want results that are waterproof, durable, and tear resistant. SYNPLAS SPA possesses all of these qualities. For printing maps and charts, synthetic papers are available.

Are paper maps distributed at Disneyland?

There are various places to get a map while in the Disneyland Resort. At the main entrance turnstiles of the theme park, there is a paper park brochure with a map. The majority of Guest Relations sites also have these.

To know more about mobile device visit :-

https://brainly.com/question/30011881

#SPJ4

A customer recently moved a high-end graphics card from a known-working computer to a different computer. The computer works without issue when viewing email and web pages or when using certain applications. However, when a game with high-end graphics requirements is opened, the program will run for a few minutes before the computer shuts down. Which of the following is MOST likely causing the problem?
A. Video RAM
B. Power supply wattage
C. CPU frequency
D. Monitor resolution

Answers

The most likely cause of the problem is the power supply wattage.

What type of graphics card was installed in the new computer? The type of graphics card installed in the new computer depends on the specific model of the computer and its intended use. For example, a gaming computer may require a more powerful graphics card than a basic office computer. If the new computer is used mainly for gaming or video editing, it may require a dedicated graphics card such as an NVIDIA GeForce or AMD Radeon. For basic office work, a basic integrated graphics card is sufficient. When selecting a graphics card, it is important to consider the types of games or programs that will be used with the computer. Some games or programs may require a more powerful graphics card to run smoothly. Additionally, if the computer is used for video editing, an additional graphics card such as a Quadro or FirePro may be required. When shopping for a new computer, it is important to research the specific graphics card that will be required for the intended use of the computer. This will help to ensure that the computer is equipped with the necessary hardware to run the desired programs or games. Additionally, it is important to consider the power supply of the computer when selecting a graphics card.Some graphics cards require more power than the standard power supply can provide, so a higher wattage power supply may be necessary.

To learn more about graphics card refer to:

https://brainly.com/question/30097997

#SPJ4

Can scratch cloud variables save across computers? For example, if I save the cloud variable as 10, then log in from a different computer will that variable save from that other computer?

Answers

Answer:

Explanation:

Scratch cloud variables are a feature in Scratch, a visual programming language, that allows for saving and sharing data across different projects and even across different computers. Once a variable is saved as a cloud variable, it can be accessed from any other project that has been shared with the same Scratch account.

If you set the value of a cloud variable to 10 on one computer, and then log in to Scratch from a different computer using the same Scratch account, you will be able to access the variable and its value (10) from that other computer.

It is important to note that the cloud variable feature is only available for Scratch accounts with a login, if you don't have a Scratch account, you won't be able to use this feature.

It's also good to keep in mind that if you set a variable as a cloud variable in a project, it will be accessible to anyone who has access to that project. So make sure you understand the sharing settings and permissions before using cloud variables in a project that contains sensitive information.

Is this correct?
The Arithmetic Logic Unit converts input data to a form the computer can read, processes the data and displays that information in the form humans understand.

Answers

The Arithmetic Logic Unit converts input data to a form the computer can read, processes the data and displays that information in the form humans understand is not correct.

What is the Arithmetic Logic Unit?

The Arithmetic Logic Unit (ALU) is a digital circuit that performs arithmetic and logical operations on input data. It is a fundamental building block of the central processing unit (CPU) and is responsible for performing basic operations such as addition, subtraction, and logical operations like AND, OR, and NOT.

The Input/Output (I/O) device is the component that converts input data to a form the computer can read, and the output devices are responsible for displaying the processed data in a way that humans can understand.

In all, the ALU is a fundamental part of the CPU that performs arithmetic and logical operations on input data, but it does not convert input data to a form the computer can read or display information in the form humans understand.

Learn more about Arithmetic Logic Unit from

https://brainly.com/question/7994884

#SPJ1

The statement int[ ] list = {5, 10, 15, 20};
O initializes list to have 5 int values
O initializes list to have 20 int values
O initializes list to have 4 int values
O declares list but does not initialize it
O causes a syntax error because it does not include "new int[4]" prior to the list of values

Answers

Option 3 is correct ( initializes list to have 4 int values) The syntax here implies direct setup of integer array named list with 4 initial values. there is no need to mention size for this kind of syntax.

Describe an array.

An array is a group of related data items kept in close proximity to each other in ram. The sole way to retrieve each data element direct is using its index number, making it the most basic data structure.

How do arrays function?

A linear data structure called an array contains elements of the same data type in contiguous and nearby memory regions. Arrays operate using an index with values ranging from zero to (n-1), where n is the array's size.

To know more about array visit :

https://brainly.com/question/15048840

#SPJ4

There are critical times when memory problems often manifest themselves. Match each critical time on the left with the corresponding cause of the memory problems on the right.
This event can require more memory and can cause problems if there is not enough memory when it occurs.
- Software installation
Memory is not properly seated or missing/the motherboard is defective.
- First boot of a new computer
Incompletely or improperly doing this can cause errors that appear to be memory-related.
- Hardware installation or removal
The memory is not compatible and was not installed and configured properly.
- Memory upgrade
At these critical times, memory problems can manifest themselves as follows:
First boot of a new computer - memory is not properly seated, missing, or the motherboard is defective.
After a memory upgrade - ensure that the memory is compatible and was installed and configured properly.
After software installation - new software can require more memory and can cause problems if there is not enough memory for the software.
After hardware installation or removal - incompletely or improperly installed hardware can cause errors that appear to be memory-related.

Answers

Software installation, First boot of a new computer, Hardware installation or removal, Memory upgrade is the correct match.

How do I upgrade my memory?

A RAM or system memory increase may be suggested to enhance a computer's performance. An upgrade entails either replacing the outdated memory modules with a set of new, greater capacity modules or adding additional memory modules to the existing ones.

Is memory expansion worthwhile?

Your PC's performance will significantly improve whether you choose to boost your memory or storage. Your slow computer will function more quickly when you add extra RAM since it will be able to handle more tasks concurrently.

To know more about Memory upgrade visit

brainly.com/question/21106765

#SPJ4

The standard header file for the abs(x)function is ____.
a. <cmath>
c. <cctype>
b. <ioinput>
d. <cstdlib>

Answers

The basic header file again for abs(x)function is <cstdlib> .

What is header in HTML?

A container for introductory material or a group of navigational links is represented by the "header" element. One or more heading elements (h1-h6), a logo, or an icon are commonly contained in a "header" element. authorship details.

What is an example of a header?

A header or heading is text that displays there at top of each page of an electronic or hard copy document. For instance, in Word Documents, the page numbers of each page might be shown in a text's header. An printed or electronic document's footer, on the other hand, is located at the bottom of each page.

To know more about Header visit :

https://brainly.com/question/12908595

#SPJ4

Tablets (e.g., iPads) and cell phones make extensive use of ________ to store the operating system and applications that are included with the device. RAM Optical memory Flash memory Cache memory

Answers

Tablets (e.g., iPads) and cell phones make extensive use of Flash memory to store the operating system and applications that are included with the device. Flash memory is used to store the operating system and applications on tablets and cell phones.

Flash memory is a type of non-volatile memory that is commonly used in mobile devices such as tablets and cell phones. It is used to store the operating system and applications that come pre-installed on the device. Unlike RAM, flash memory retains its data even when the device is powered off. It is also smaller, more durable, and more power-efficient than a traditional hard drive, making it a suitable choice for mobile devices that have limited space and battery life. Additionally, flash memory is re-writeable, so it can be used to store additional applications and data as the device's storage needs grow.

Learn more about flash memory, here https://brainly.com/question/30134835

#SPJ4

What is the term used for information about a computer file, distinct from the information it contains

Answers

Answer:

Metadata

Explanation:

This is type of data that provides information about other data, but not the content if the data, such as the text of a message or the image itself.

26. Universal Containers (UC) has a queue that is used for managing tasks that need to be worked by the UC customer support team. The same team will now be working some of UC's Cases. Which two options should the administrator use to help the support team

Answers

The two options should the administrator use to help the support team are (I) Configure a flow to assign the cases to the queue and (II) Use assignment rules to set the queue as the owner of the case.

A universal container is what?

International distributor of containers, Universal Containers is expanding quickly. The business manufactures all different types of containers, including small postal containers, special equipment packing, and huge cargo shipping containers.

What does Salesforce mean by a universal container?

As a rapidly expanding international supplier of container solutions, Universal Containers creates various scenarios by getting users to consider issues from a business viewpoint and by offering advice on the types of industries and scenarios we will encounter and how to handle them.

To know more about universal container visit:

https://brainly.com/question/30143272

#SPJ4

Your workstation is running Windows 10 Professional and you decide to share a folder on your computer. Twenty-two people in your office are trying to connect to that folder at the same time over the network. The first 20 people can connect, the other two cannot. What could you do to fix this

Answers

Fixing this would require a computer, software, and licenses to run Windows Server 2016.

What principal network protocol does Windows 10 employ for interoperability?

Transmission Control Protocol/Internet Protocol, or TCP/IP, is a group of protocols used to connect network devices on the internet. In a private computer network, TCP/IP is also employed as a communications protocol (an intranet or extranet).

Which of the subsequent is a brand-new browser that comes with Windows 10?

Edge by Microsoft This new browser is intended to improve the online experience for Windows users. It has a lot of new features, is faster, and is safer.

To know more about licenses to run Windows visit :-

https://brainly.com/question/29803901

#SPJ4

Which programming problem stems from multiple threads not executing in a predictable, sequential pattern

Answers

Race condition is the programming problem stems from multiple threads not executing in a predictable, sequential pattern.

What does "racial condition" refer to?

When two threads try to access a shared variable at the same time, it is called a race condition. Both the first and second threads read the same value from the variable in the first thread. A light switch is a straightforward example of a race situation. A common ceiling light may be controlled by several light switches in some dwellings. The switch position is no longer relevant when these kinds of circuits are employed. If either switch is moved from its current position while the light is on, the light is turned off.

What makes it a "race condition"?

A race condition is, by definition, a situation in which a program's behaviour depends on the relative timing or interleaving of several threads or processes. A bug could arise if one or more alternative outcomes are unfavourable. This type of behaviour is referred to as nondeterministic.

To know more about Race condition visit

brainly.com/question/28495026

#SPJ4

Which of the following is NOT a task in preparation for installing an OS?
A) perform a low-level format on all disk drives
B) make sure the computer meets hardware requirements
C) ensure the hardware is working correctly
D) have an understanding of the features of the new OS

Answers

It is NOT a chore to be completed in advance of installing an OS to do a low-level format on each disk drive of the following.

Which of the following is not a function an operating system performs?

The operating system's fundamental capabilities do not include job control. Data management, memory management, and job scheduling are all options. Operating systems facilitate network connectivity and user interaction with computers. Operating system capabilities do not include job control.

Understanding is crucial when getting ready to install an OS.

It's crucial to know the kind of network environment an OS will be installed into before beginning the installation process. Two processes are loaded into memory on a cooperative multitasking system, and process 1 is currently active.

To know more about installing an OS visit :-

https://brainly.com/question/30045716

#SPJ4

Codewriting Python 3 main.py3 Saved def solution (blocks, height): You are given array of integers called blocks . Each of the values in this array represents the width of a block - the ith block has a height of 1 and a width of blocks[i] (i.e. it's a 1 x blocks (1) block). You want to pack all the given blocks into a rectangular container of dimensions height x width , according to the following rules: . Place blocks into the container row by row, starting with block . For each row, place the blocks into the container one by one, in the order they are given in the blocks array. • If there is not enough space to put the current block in the current row, start filling the next row. You are given the value height of the rectangular container. Your task is to find the minimal possible width of a rectangular container in which all blocks can fit. Find and return this minimal possible width value. TESTS CUSTOM TESTS RESULTS O RUN TESTS NOTE: The blocks cannot be rotated. A Tests passed: 0/26. Syntax error. Example Test 1 . For blocks - [1, 3, 1, 3, 3] and height - 2. the output should be solution (blocks, height) - 6 Input: blocks: [1, 3, 1, 3, 3] height: Here's how the blocks should be packed in a container size 2 X6 6 Expected Output: LILL-HD-T.

Answers

The minimal possible width of a rectangular container in which all blocks can fit is print(solution([1, 3, 1, 3, 3], 2))     #test case

def solution(blocks, height):       #function definition

   width = max(blocks)         #at first width is initialzied with max width of block in blocks list

   while(1):       #loop repeats until correct width is found

       temp = []   #list to store the blocks that are placed succesfully

       x = []  #a list of size height is declared to store the blocks of each row

       for i in range(height):

           x.append(0)     #fill the list x with zeroes

       j = 0               #j is initialzied to zero

       for i in range(len(blocks)):    #for each block present in blocks list

           if(x[j] + blocks[i] <= width):  #if current block can be placed in jth index

               x[j] += blocks[i]       #then it is added

               temp.append(blocks[i])  #and as it is added to x, we can add that to temp also

           else:       #else

               j += 1  #go for next index i.e., increment j by 1

               if(j < len(x) and (x[j] + blocks[i] <= width)): #check if current block can be placed

                   x[j] += blocks[i]       #adds that to x

                   temp.append(blocks[i])  #and to temp also

               else:       #else if the capacity of rectangle exceeds

                   width += 1  #we increase the width by 1 and continue the above process again

                   break       #break from this for loop

       if(len(temp) == len(blocks)):   #whenver temp and blocks are same, all blocks are placed succesfully

           break   #then we break from the while loop

   return width    #width is returned

print(solution([1, 3, 1, 3, 3], 2))     #test case

To learn more about Python

https://brainly.com/question/18502436

#SPJ4

Other Questions
Angel missies 4% of the free throws he attempts in a season. How many total free throws did he attempt if he missed 55 Determine your company's mode of entry into foreign markets. This should be based upon a serious analysis of your company's risk-return tradeoff. In your opinion, has your company taken the right approach Tandang Sora has deposited P33,000 today in an account which will earn 10 percent annually. She plans to leave the funds in this account for seven years earning interest. If the goal of this deposit is to cover a future obligation of P65,000, what recommendation would you make to Tandang Sora? What is the present value of a series of payments received each year forever, starting with $1,000 paid one year from now and the payment growing in each subsequent year by 6% What does it mean if the question asks "translate triangle ABC with the vector of _____ is not a type of current problem that organizational development can help address. What is the main benefit of organic farming? What are the 3 types of saving? What is the coefficient in the expression 6 2 + 4n A type of mortgage which allows the lender to increase the outstanding balance of a loan up to the original amount of the loan in order to advance additional funds is called an What are the four features of bacteria that enable them to survive? What are the different types of algorithms? What is y=3x - 2 x-y =4 substitutional method What is the danger of engaging in unprotected pre marital sex? LaTonya was just hired as an engineer for an electric company. She will make a salary of $50,000 a year. How much of LaTonya's salary will be taxed at the 10 percent rate? 6 miles East 4 miles Southeast 4 miles South 7 miles Southwest 4 miles East This person has walked a total of Find the total displacement vector for this walk: What does Accenture mean by sustainability will be the new digital TQ? Irascible \Vi-ra-s-bl\ adjective 1. Having or showing a tendency to be easily angered. Middle French, from Late Latin irascibilis, from Latin irasci to become angry, be angry, from ira. Using the dictionary entry, which sentence uses irascible correctly? A. When Sadie heard the concert had been cancelled, she became irascible and cried herself to sleep from disappointment. B. Mr. Cowen, a well-liked science professor, often gave his students funny nicknames, which demonstrated his irascible nature. C. On the days when Liam's guitar lesson proved he had practiced hard all week, his teacher was irascible instead of her usual cheerful self. D. The irascible dog growled and snarled whenever strangers neared the fence Design posters condemning lynching or any other type of punishment without a fair trial.If possible, you can also share the picture of the poster, but it is up to you.PLEASE VERY URGENT!! a(1)=20 a(n)=a(n1)17 third term