consider two queuing systems: system 1 has three servers each serving at rate 1; system 2 has a single server serving at rate 3. both systems are subject to exp(1) arrivals. which system is better in terms of the expected number of customers in system?

Answers

Answer 1

System 1 is better in terms of the expected number of customers in system. System 1 has handle up to  three servers concurrently.

What does "queuing system" mean?

A queue (or waiting line) forms anytime there are more units in the system than the service facility can handle at once in a queuing system, which is characterized by a system with a service facility at which units of some kind (often referred to as "customers") arrive for service.

First in, first out (FIFO) refers to the practice of serving clients in order of arrival, starting with the one who has waited the longest. The most typical kind of queue discipline is this.

The customer with the shortest wait time is attended to first under the last in, first out (LIFO) alternative to FIFO.

To learn more about queuing system refer to:

https://brainly.com/question/14555199

#SPJ4


Related Questions

question 8 you are creating a slideshow for a client presentation. there is a pivot table in a spreadsheet that you want to include. in order for the pivot table to update whenever the spreadsheet source file changes, how should you incorporate it into your slideshow?

Answers

Answer:

Link it

Explanation:

A pivot table should be linked to the spreadsheet source file for the slideshow in order to be most effective. In this manner, the pivot table will automatically update anytime the source file is modified.

What is spreadsheet?

A computer application called a spreadsheet is used to organize, analyze, and store tabular data. Spreadsheets were developed to replace paper accounting worksheets in the accounting industry. The application accepts data entered into table cells as input. Text, numerical data, or the results of algorithms that quickly calculate and display a value based on the contents of other cells may all be contained in a cell. 

Spreadsheet users have the ability to edit any stored value and see how changes impact computations. The spreadsheet is useful for "what-if" analysis since it allows different possibilities to be swiftly analyzed without manual recalculation. In contemporary spreadsheet software, many sheets can communicate with one another, and data can be displayed graphically or as text and numbers.

Thus, a pivot table should be linked to the spreadsheet source file for the slideshow in order to be most effective. In this manner, the pivot table will automatically update anytime the source file is modified.

To learn more about spreadsheet, refer to the link below:

https://brainly.com/question/8284022

#SPJ2

what are the two capabilities of the internet that promote and sustain customer relationships? multiple choice question. anywhere and anytime place and form interactivity and individuality integration and customization

Answers

The two capabilities of the internet that promote and sustain customer relationships is option C: interactivity and individuality.

What can the internet do and how does it function?

A global computer network called the internet transmits many types of data and media between linked devices. It functions by utilizing a packet-routing network that complies with Transport Control Protocol (TCP) and Internet Protocol (IP).

Therefore, Note that Web interactivity describes interactive elements that are integrated into websites and allow for the exchange of information between users of technology or between users of communication technology.

Learn more about internet  from

https://brainly.com/question/2780939
#SPJ1

When schools use spy systems to see what you're doing, is it possible for them to see what you're doing connected to ethernet and not wifi?

Answers

Yes, if you're on a school network with a border firewall that records activity, they could see what you're searching for on the Internet.

What is “reasonable suspicion”?

They can search only under certain conditions. To begin, your school must have a "reasonable suspicion" that searching you will yield evidence of a violation of a school rule or law.

Unfortunately, no precise definition exists. A reasonable suspicion, on the other hand, should be founded on facts unique to you or your situation. It can't be based on a rumor, a hunch, or a whim.

A teacher, for example, cannot request a search for drugs based solely on the appearance of the bag.

Can my school conduct a random search of its students?

YES. These random searches, however, must be based on special, school-wide needs, such as ensuring school safety, and must be truly random. A random search cannot be used to target specific students.

To know more about ethernet, visit: https://brainly.com/question/26956118

#SPJ1

Darius needs to include contact information in an email that he is sending to a colleague. Which option should he choose from the ribbon?


Attach File

Attach Item

Attach Policy

Attach Signature

Answers

Attach a Signature should he choose from the ribbon that he is sending to a colleague. Thus, option D is correct.

Who is a colleague?

A colleague is a companion or collaborator, usually of the same position or standing, who works in a profession, government or religious office, or both.

The alternative to Attach Signatures lets users add a previously made signing including your personal details at the conclusion of the communication. Darius wants to have included an email address, thus he will pick the tie is attach signature option.

Therefore, option D is the correct option.

Learn more about colleague here:

https://brainly.com/question/14138829

#SPJ1

A hacker wants to gain illegal Elizabeth owns a Mac and is not careful about what websites she visits, what links she clicks on, or what she downloads. She says that it is impossible for Macs to get viruses because the operating system is sandboxed. Is she correct? A. Yes, it is impossible for a Mac to become infected with any malware. B. No, a Mac can get a virus and be affected just as bad as a PC. C. No, a Mac can get a virus but it is not susceptible to any other type of malware. D. No, a Mac can still get viruses, but the viruses cannot get to the heart of the machine. Reset Next to Elizabeth owns a Mac and is not careful about what websites she visits, what links she clicks on, or what she downloads. She says that it is impossible for Macs to get viruses because the operating system is sandboxed. Is she correct? A. Yes, it is impossible for a Mac to become infected with any malware. B. No, a Mac can get a virus and be affected just as bad as a PC. C. No, a Mac can get a virus but it is not susceptible to any other type of malware. D. No, a Mac can still get viruses, but the viruses cannot get to the heart of the machine. Reset Next passwords for a popular online website. Where should they direct their attack? A. a bank B. a server C. a removable USB drive D. a laptop

Answers

Since  Elizabeth says that it is impossible for Macs to get viruses because the operating system is sandboxed. The response is D. No, a Mac can still get viruses, but the viruses cannot get to the heart of the machine.

The place that they should direct their attack is option B. a server.

What is Mac's server name?

Go to Apple menu > System Settings, select General from the sidebar, and then select About from the right-hand menu on your Mac. The name of your Mac's computer can be found at the top of the About settings page (you might need to scroll down).

Malware can infect a Mac computer. Macs are susceptible to malware and viruses. Even while Mac infections are less frequent than PC malware, Mac machines aren't completely shielded from online dangers by the security mechanisms built into macOS.

Note that Sandboxing is widely used to analyze untested or untrusted code and is intended to stop dangers from entering the network. In order to prevent infection or damage to the host computer or operating system, sandboxing keeps the code confined to a test environment.



Learn more about viruses  from

https://brainly.com/question/26128220
#SPJ1





joey used the rehearse timings command to add timings to the slides in his presentations. after reviewing the presentation in slide show view, he thinks that two of the slides transition too quickly. how can he adjust the timings of those slides?

Answers

Click Rehearse Timings under the Set Up section of the SLIDE SHOW tab. When the Slide Time box is activated, the Rehearsal toolbar appears and the presentation is timed.

How can adjust time in in slides?

Click Slide Sorter to check that all of the slide timings are configured the way you want them to be. Each slide's thumbnail is followed by the slide timings. To return to Normal view, click Normal. The simplest approach to disable slide timings is to click Slide Show and uncheck Use Timings.

If you want to honor your audience and the people who invited you to speak, stay within the time given. Additionally, if you go over or cut it too close, the audience will become disinterested. If you talk for an hour, the audience is ready for a conclusion by minute 58.

To learn more about slide show refer to :

https://brainly.com/question/25874600

#SPJ4

an attack has been detected in your network system by one of the network engineers. analyzing the attack, you come to know that the system was accessed through one of the switches where the hacker fed his own vlan traffic into the port and accessed the network. what kind of an attack have has been experienced in this scenario?

Answers

The kind of attack that has been experienced in this scenario is called switch spoofing.

What is switch spoofing?
Switch
spoofing occurs when an attacker attempts to negotiate a trunk with a switch by sending Cisco's Dynamic Trunking Protocol (DTP) packets. The dynamic auto or dynamic desirable default switch modes are the only ones that make it possible. When a trunk is attached to the computer, the attacker has access to every VLAN.

By connecting a malicious switch to an interface set up in "dynamic desirable," "dynamic auto," or "trunk" modes, Switch Spoofing can also be accomplished. The attacker can obtain traffic from every VLAN once the trunk link has been established. Now that the VLANs are all open, the attacker can sniff their traffic.

To learn more about switch spoofing, use the link given
https://brainly.com/question/14725094
#SPJ1

the what went wrong feature in chapter 9 focuses on devver, a 2008 startup that helped software developers use cloud-based services to test their code in an expedient manner. according to the feature, what was one of the primary reasons devver failed?

Answers

The primary reason was that the founders of the companies are unable to transition into their new roles quickly enough, and the companies lack a "track record" with outside buyers and sellers.

Building software that satisfies user needs requires the use of programming and design skills by software developers. They typically meet with a client who needs software built before building, testing, and deploying the program in accordance with the companies they have been given.

In many facets of the economy today, software engineers are among the most important professionals. Software is the power behind every digital device in the world, not only codes, games, and apps. Software developers use a variety of tools and skills to design, program, create, deploy, and maintain software. Additionally, they contribute to the creation of software systems that power devices and networks and maintain the functionality of those systems.

To know more about software click here:

https://brainly.com/question/985406

#SPJ4

Write a python code using tracy turtle to draw the following shape

Answers

Answer:

import turtle

t = turtle.Turtle()

R = 20

N = 8

def rect(x,y,w):

 t.penup()

 t.setpos(x,y)

 t.pendown()

 for _ in range(4):

   t.left(90)

   t.forward(w)

rect(0,0,R*N)

rect(R*N,0,R*N)

rect(0,-R*N,R*N)

rect(R*N,-R*N,R*N)

for x in range(1,N+1):

 t.penup()

 t.setpos(0,-R*x)

 t.pendown()

 t.circle(R*x)

Explanation:

Not a turtle expert, but this seems to do the job.

data mining is used to explore large amounts of data, looking for hidden patterns that can be used to predict future trends and behaviors. a. true b. false

Answers

In order to uncover hidden patterns that can be utilized to forecast future trends and behaviors, data mining is used to examine enormous volumes of data. Let's say you excel at math and statistics.

If you want to become a data scientist, you will need to expand your skill set to include programming. Analyzing a vast amount of data to find patterns and trends is known as data mining. Large data sets are sorted through in data mining in order to find patterns and relationships that can be used in data analysis to help solve business problems. Enterprises can forecast future trends and make more informed business decisions thanks to data mining techniques and tools. Large amounts of data from various sources are centralized and consolidated in a data warehouse.

Learn more about programming here-

https://brainly.com/question/11023419

#SPJ4

Complete the sentence about bias and equity.
Biased algorithms may make
decisions that negatively impact the lives of individuals from minority groups.

Answers

The completed sentence is:

Biased algorithms may make erroneous decisions that negatively impact the lives of individuals from minority groups.

What is a Biased Algorithm and how do you prevent one?

Algorithmic bias refers to persistent and recurring flaws in a computer system that result in "unfair" outcomes, such as "privilege" for one category over another in ways that are inconsistent with the algorithm's intended function.

Use the following steps to decrease bias in algorithms:

STEP 1: Algorithms for inventory. Make a list of all the algorithms in use or developed in your business. A steward should be designated to manage and update the inventory.STEP 2: Look for bias in each algorithm.STEP 3: Retrain erroneous algorithms. Improve or stop using biased algorithms.STEP 4: Preventive measures. Create structures and protocols for ongoing bias mitigation and a permanent team to enforce those protocols.

Learn more about Biased Algorithms:
https://brainly.com/question/23282908
#SPJ1

These statements describe LANs. SELECT ALL THAT APPLY
1) are not able to connect to the Internet
2) connect networks over a large geographic area
3) don't have to be connected to other networks
4) located in one building or adjacent buildings
5)wires connecting the network owned by the organization

Answers

Local area networks connect computers and give users shared access to printers, data, and other resources. Peer-to-peer or client-server architectures are the two main types of local area network architecture. Thus, option B, D, E is correct.

What is the significance of local area network?

Computers may swiftly and readily exchange data and messages using local area networks. This expedites the process and saves time.

Therefore, Any user on the network can send and receive messages and data using LAN. Users can access the server-stored data via the network from any computer.

Learn more about local area network here:

https://brainly.com/question/1167985

#SPJ1

4. Which of the following is NOT a common file type for a text document?
O xlsx
O docx
Opdf
Oodt

Answers

Answer:

xlsx

Explanation:

pdf, is a document file, so is docx and odt. which leaves the remaining file, xlsx.

Which option is an example of an entry-level job that can be achieved with a bachelor's degree in computer science?

junior systems analyst
senior systems analyst
mid-level systems analyst
chief technology officer

Answers

The junior systems analyst is an example of an entry-level job that can be achieved with a bachelor's degree in computer science. Thus, option A is correct.

What is computer science?

Application and system platform creation and assessment are the main areas of computer science research. Engaging in utilizing statistical models, information protection and monitoring, computers, and computational science are all aspects of it.

Helps with the concept, development, and deployment of electronic information processing platforms; conducts related tasks as needed.  The basic concepts that form the cornerstone of all programs are defined by software engineers.

Therefore, option A is the correct option.

Learn more about computer science, here:

https://brainly.com/question/13609051

#SPJ1

given that a file system has been replicated on two disks, if the probability that any of the disks becomes unavailable is 0.001, what is the chance that both disks become unavailable?

Answers

The chance that both disks become unavailable is 0.000001.

What is disk?

Disk is a programme that allows you to inspect, alter, and configure discs and other storage devices. Power management and acoustic levels can be set for ATA disks. Any disk in standby mode is indicated by a Zzz icon. You can also put a disc into standby mode and wake it up manually. The ability to safely wipe a disk. Long-running operations are now presented in the Disks user interface, along with a cancel button. The benchmark capability, which was lost in the Disks/udisks redesign that shipped with GNOME 3.4, is now restored by popular demand.

To calculate the likelihood that both disks will become unavailable

We multiply the probability that a disk is unavailable, that is, (0.001)(0.001)

= 0.000001.

To learn more about disk
https://brainly.com/question/28493309

#SPJ4

write a function called convertstrtoint that inputs four strings that represent integers, converts the strings to integers, sums the values and prints the total of the four values.

Answers

A group of components of the same data types are held together in an array..

What is string and array?A group of components of the same data types are held together in an array, which is a linear data structure.An object that defines a string of characters is called a string.It is both one-dimensional and two-dimensional.String has only ever two dimensions.

#include <stdio.h>

#include <stdlib.h>

int main(void)

{

 char x[10];

 char y[10];

 char z[10];

  char t[10];

  int sum=0;

  puts("Enter 4 strings to be summed");

 scanf(" %s %s %s %s", x, y, z, t);

 printf("\nSum is=%d", atoi(x)+atoi(y)+atoi(z)+atoi(t));

}

To learn more about string refer,

https://brainly.com/question/12978443

#SPJ4

What is the name of the narrow strip along the bottom of the windows environment?.

Answers

In the Windows environment, the narrow strip along the bottom is called the taskbar.

The taskbar on a computer screen with the Windows operating system is a narrow strip of icons. The taskbar on the Windows screen is usually located at the bottom. The taskbar provides information about that currently open files/programs/windows as well as allows switching between these programs or windows.

In the latest versions of Windows operating systems, the taskbar has an added feature that enables users to 'pin' files or programs on the taskbar to have quick access to them, just with a single click. Due to the prominence of the taskbar on the computer screen, it ususly provides a notification area too; which uses interactive icons to provide real-time information about the state of the computer systems and some of the programs active on it.

You can leanr more about Taskbar at

https://brainly.com/question/28147966

#SPJ4

write a c function (along with helper functions) that takes an unordered array of integers (with at least one value) and another integer value pivot and creates a new array of the same length that contains all the elements smaller than pivot followed by all the elements larger or equal to pivot

Answers

This function uses the final element as the pivot, positions the pivot element correctly in the sorted array, and positions all smaller elements to the left of the pivot and all larger elements to the right of the pivot.

QuickSort is a Divide and Conquer algorithm, just like Merge Sort. It chooses an element to act as a pivot and divides the supplied array around it. There are numerous variations of quickSort that select pivot in various ways.

As a rule, choose the first component as the pivot.

Always choose the final component as the pivot (implemented below)

Choose a pivot that is at random.

Decide on median as your pivot.

Partitioning is quickSort's primary operation (). The goal of partitions is to arrange an array with element x serving as the pivot so that all other elements smaller than x are placed before x and all other elements larger than x are placed after x in a sorted array.

To know more about quickSort click here:

https://brainly.com/question/17143249

#SPJ4

Which of the following statements is true about dictionaries?
A) Dictionary keys are immutable.
B) It is not possible to update the entries of a dictionary.
C) Keys can change, but values cannot.
D) One key can correspond to more than one value

Answers

The statement that is true about dictionaries is option A) Dictionary keys are immutable.

Do dictionaries change or remain the same?

A dictionary is a changeable, unordered Python container used to store mappings between distinct keys and values. Curly brackets () are used for dictionaries, as well as key-value pairs with commas between them (,).

Note that A dictionary's keys cannot be accessed using its values, but its values can be obtained using its keys. Since dictionaries themselves are mutable, entries can always be added, deleted, or modified.

Therefore, an immutable type must be used for a dictionary key. An integer, float, text, or Boolean value, for instance, can be used as a dictionary key. However, since dictionaries and lists are both mutable, neither one can act as a dictionary key for the other.

Learn more about dictionaries from

https://brainly.com/question/896784
#SPJ1

you are looking to print photos that you have saved on a cloud storage account using a third-party online printing service. after successfully logging into the cloud account, you are automatically given access to the third-party online printing service. what allowed this automatic authentication to occur?

Answers

As soon as local transmission starts, Bluetooth audio is automatically turned off. You can re-connect your Bluetooth audio device after cutting off local connectivity.

What does it mean when Bluetooth is disabled?If your Bluetooth driver is outdated or the incorrect one, this issue could arise. To test if it resolves your issue, you should update your Bluetooth driver. Driver Easy allows you to update the driver automatically if you lack the necessary time, patience, or abilities to do so manually.As soon as local transmission starts, Bluetooth audio is automatically turned off. You can re-connect your Bluetooth audio device after cutting off local Select Bluetooth Settings from the search results after typing "Bluetooth Settings" into the Start menu. Click the toggle switch to turn on Bluetooth under the "Manage Bluetooth Devices" section. To turn off Bluetooth functionality, press the toggle switch once more.

To Learn more About Bluetooth disabled Refer to:

https://brainly.com/question/23728337

#SPJ4

which task area best represents the actions below? analyzing the skill of an attacker organizing a public relations posture determining the type of attack classifying a victim system

Answers

The task area that best represents the actions below is  option C: determining the type of attack.

How does system base attack work?

This particular malicious software program spread throughout computer files without the user's knowledge. When it is executed, this malicious computer program copies itself and inserts copies of itself into other programs.

Note that Cyberattacks aim to disable, disrupt, demolish, or take control of computer systems, as well as to change, block, delete, manipulate, or steal the data stored within these systems. Any person or organization can launch a cyberattack from any location using one or more different attack strategies.

Learn more about System attack from

https://brainly.com/question/28482553
#SPJ1

write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow

Answers

The function called checkfactor that takes two arrays of positive numbers will be;

function [firstDivisible, secondDivisible] = checkFactor(firstNumberRow, secondNumberRow)

testArray = ~logical(rem(firstNumberRow,secondNumberRow));

firstDivisible = firstNumberRow(testArray);

secondDivisible = secondNumberRow(testArray);

mod(3,1);

What is an array?

An array is a set of items, or data, stored in contiguous memory locations, also known as database systems, in coding and programming. An array's purpose is to store multiple pieces of data of the same type together.

Array programming in computer science refers to solutions that allow operations to be applied to an entire set of values at once. These types of solutions are frequently used in scientific and engineering settings. A variable that can hold multiple values is known as an array. For example, if you need to store 100 integers, you can use an array. data[100] int;

Learn more about array on:

https://brainly.com/question/24275089

#SPJ1

what is value engineering
Substituting low-cost components with high-quality components that still meet the product's lifetime duration and basic purpose
Substituting high-quality components with low-cost components that still meet the product's lifetime duration and basic purpose
Engineering products that are not meant to be replaced but have a high cost Engineering products that are meant to be replaced frequently but have a low cost

Answers

The term value engineering is option D: Engineering products that are meant to be replaced frequently but have a low cost.

What is meant by value engineering?

Value engineering is a methodical, planned strategy for delivering essential project functionalities for the least amount of money. Value engineering encourages the use of less expensive substitutes for materials and techniques without compromising functionality.

Instead of emphasizing the physical characteristics of different parts and materials, it only focuses on their functions. Value analysis is another name for value engineering.

Therefore, Value engineering is the process of reviewing new or current goods throughout the design phase in order to lower costs and improve functionality in order to boost the product's value. The most economical way to produce an item without detracting from its function is considered to be the worth of that thing. Hence, it is cost-cutting tactics that sacrifice quality are just that—cost-cutting tactics.

Value engineering is what it is.

Learn more about value engineering from

https://brainly.com/question/15649329

#SPJ1

you can add or remove various fields in a door or room schedule. (t/f?) question 2 options: true false

Answers

It is true you can add or remove various fields in a door or room schedule.

What is room schedule?Room schedulers give facility managers the ability to forecast future usage. They're a crucial tool for assisting staff in efficiently using spaces. The analytics offered by expert room schedulers for facility managers assist you in making growth plans.Every every view that is associated to a view that has a section tag added to it also has a section tag added. In section views, it is possible to change items (such doors, windows, and ceilings). Using the crop region does not allow you to change the "depth of view."Select Schedule/Quantities from the Schedules pull-down menu after selecting the View tab's View option. Click OK after selecting Spaces as the category for scheduling. Include these conditions in the Schedule fields. To create the Schedule view, click OK.

To learn more about room schedule refer to:

brainly.com/question/12310554

#SPJ4

what should you install in a guest os running on vmware workstation to optimize network, video, and disk drivers?

Answers

Device drivers enhance the performance of networking, storage, sound, and graphics. While carrying out a customized VMware Tools installation or reinstallation, you can choose the drivers to be installed.

The guest operating system and the VMware product determine the set of drivers that are installed when you install VMware Tools. Consult the documentation for your VMware product for comprehensive information on the features or capabilities of these drivers, including configuration needs, best practices, and performance. Device drivers for the following hardware can be found with VMware Tools.

Fast and effective communication between virtual machines and the hosts they run on is supported by the Virtual Machine Communication Interface driver. To leverage the VMCI virtual device, developers can create client-server applications for the VMCI Sock (vsock) interface.

As part of installing VMware Tools, the VMCI driver is automatically installed.

To know more about VMware click here:

https://brainly.com/question/14840053

#SPJ4

a(n) is an attack that always maintains a primary focus on remaining in the network, operating undetected, and having multiple ways in and out.

Answers

Advanced Persistent Threats (APT) is an attack that always maintains a primary focus on remaining in the network, operating undetected, and having multiple ways in and out

About Advanced Persistent Threats (APT)

Advanced persistent threat (APT) refers to cyber attacks launched by attackers with substantial means, organization and motivation to carry out sustained attacks against targets.  APT is developed in the sense that it uses stealth and multiple attack methods to compromise targets, which are often high-value corporate or government resources.  These attacks are difficult to detect, remove, and attribute.  Once a target is breached, backdoors are often created to provide the attacker with ongoing access to the compromised system.  

APTs are persistent because an attacker can spend months gathering intelligence about a target and use that intelligence to launch multiple attacks over an extended period of time.  This is threatening because perpetrators are often looking for highly sensitive information, such as the layout of a nuclear power plant or the code to break into a US defense contractor.

Learn more about Advanced Persistent Threats (APT) at https://brainly.com/question/17328761.

#SPJ4

Ha-yoon downloaded an app on her phone that allows her to order food from various restaurants and have it delivered to her house. What type of technology is this app? A. software B. Internet of Things C. technology hardware D. IT services

Answers

A food delivery app uses all the mentioned technologies, i.e., software, the Internet of Things, hardware technology, and IT services. We create these types of apps, in this case a food delivery app, by utilizing these technologies during the app development process. 

What role does this technology play in food delivery apps?

Software: The app is written in some type of programming language like Kotlin, Java, Swift, etc.

Internet of Things: The app requires internet access in order to connect with global services and databases.

Technology hardware: For live food delivery tracking, the app must be able to use hardware components such as GPS.

IT services: This service is critical to customer support operations.

What Does App Mean?

An app is a piece of computer software or a program, most often a small, specific one designed for mobile devices. The term "app" used to refer to any mobile or desktop application, but as more app stores emerged to sell mobile apps to smartphone and tablet users, the term has evolved to refer to small programs that can be downloaded and installed all at once.

Thousands of apps are available for today's smartphones and tablets. Some apps are free to download, while others must be purchased from an app store.

To know more about App development, visit: https://brainly.com/question/27865621

#SPJ1

In python, an infinite loop usually occurs when the computer accesses an incorrect memory address. True or false?.

Answers

Answer:

False

Infinite Loop in Python is a continuous repetitive conditional loop that gets executed until an external factor interfere in the execution flow, like insufficient CPU memory, a failed feature/ error code that stopped the execution, or a new feature in the other legacy systems that needs code integration.

You can learn more about at :
brainly.com/question/18782666#SPJ4

write a c recursive function that finds the maximum value in an array (or vector) of integers without using any loops. you may assume the array will always contain at least one integer. do not modify the array

Answers

If you want to predefine the vector array you can use this code.

#include <bits/stdc++.h>

int eval(std::vector<int> v, int n) {

   return (n==1) ? v.at(0) : std::max(v.at(n-1), eval(v,n-1));

}

int main() {

   std::vector<int> vector {1,2,3,4,90,1234,9,0,45,-7};

   std::cout << "The maximum is: " << eval(vector,vector.size());

   return 0;

}

If you want the user to fill the vector array, you should use this.

#include <bits/stdc++.h>

int eval(std::vector<int> v, int n) {

   return (n==1) ? v.at(0) : std::max(v.at(n-1), eval(v,n-1));

}

int main() {

   std::cout << "How many elements will you append?: ";

   int size; std::cin>>size;

   

   std::vector<int> vector;

   

   for(int i=0;i<size;i++) {

       std::cout << i+1 << ". element: ";

       int temp; std::cin>>temp; vector.push_back(temp);

   }

   

   std::cout << "The maximum is: " << eval(vector,vector.size());

   

   return 0;

}

pl enter the output ​

Answers

The output of the program is as follows:

Day name is SundayDay name is MondayDay name is TuesdayDay name is WednesdayDay name is ThursdayDay name is FridayDay name is SaturdayPlease enter correctPlease enter correctPlease enter correct

How to determine the output of the program?

The complete program is given as an attachment

In this attachment, we can see that:

The program makes use of conditional statements

These conditional statements are such that:

if the input takes any value between 1 and 7 (inclusive), the program prints the corresponding day (from Sunday to Saturday)

Other inputs outside this range (i.e. from 8 to 10), the program prints "Please enter correct" without the string

Hence, the outputs of the program are the correct day for valid input, and "Please enter correct" for invalid inputs

Read more about programs at

https://brainly.com/question/16397886

#SPJ1

Other Questions
If a 50 N force is applied to a lever and the lever is then able to lift a 150 N object, what is the mechanical advantage of the lever? what do conference committees do? a. reconcile differences between chambers b. monitor the bureaucracy c. override the veto of the president d. produce reports that may be amended on the house floor what physical feature of mars is atypical compared with the other terrestrial planets? what physical feature of mars is atypical compared with the other terrestrial planets? its size its rotation rate its atmospheric content its density its surface composition Choose the form that best matches the diagram.A B Asonata formrondo formbinary formminuet form given the growth in telecommuting and other mobile work arrangements, how might offices physically change in the coming years? will offices as we think of them today exist in the next ten years? why or why not? Mason, a hardwood flooring installer, needs to calculate the amount of hardwood flooring needed to cover a floor thats 3 3/4 yards Wide and 5 1/2 yards Long. How many square yards of hardwood flooring are needed? (Area= Length x Width). A) 20 5/8 B)15 3/8 C)18 3/4 D)16 1/2 Help ASAP, I'll give brainliest to the first correct answer.12/0.02 = PP = $ ? .00 According to the ADHI, when the phrase between blank and blank is used, the and is spelled out Find the perimeter of a rectangle with a diagonal of 20 inches that make angle measure 30 and 60 using trigonometric function (sine, cosine, tangent) Match the description to the person or item.1. married George A. Mr. Morgan2. was Dr. Gibbs's son B. a post-card album 3. died before Emily did C. George4. hanged himself D. Mr. Warren5. birthday present for Emily E. Simon Stimson6. suggests universality F. Emily Webb7. the town constable G. Mrs. Gibbs8. the druggist H. an unusual address Will give brainliest. Please it needs to be correct. Refer to the image what is 100200 need help which fossil fuel can be made to burn cleaner and reduce carbon dioxide emissions if it is combined with purified oxygen? sicl4 reacts with mg to produce mgcl2 and si (see video for balancing). if 17 g of silicon are required, how many grams of mg are needed? samira has a workbook containing many worksheets with interconnected formulas. what can she use to display the values of specified cells located throughout the workbook? I NEEEDD HELP ASAPP PLEASESolve negative three minus one and two fifths. three fifths one and two fifths negative four and two fifths four and two fifths What are physical and chemical changes of matter? a 32-year-old warehouse worker presents for evaluation of low back pain. he notes a sudden onset of pain after lifting a heavier-than-usual set of boxes. he also states that he has numbness and tingling in the left leg. what test should the nurse perform to assess for a herniated disc? When a constant force acts upon an object, the acceleration of the object varies inversely with its mass. When a certain constant force acts upon an object with mass 3 kg, the acceleration of the object is 25 m/s^2. If the same force acts upon another object whose mass is 5 kg, what is this object's acceleration? what kind of compound would 5A and 7A make