if the solution obtained by an approximation algorithm is : 10 the optimal solution is : 5 what will be the value of the approximation ratio?

Answers

Answer 1

The value of the approximation ratio will be 2, if the solution obtained by an approximation algorithm is : 10 and the optimal solution is : 5.

What is Algorithm?

An algorithm is a step-by-step procedure that defines a sequence of instructions that must be followed in order to produce the desired result. An algorithm may be implemented in more than one programming language because algorithms are usually developed independently of underlying languages. An algorithm's characteristics include unambiguity, fineness, effectiveness, and language independence. The main factors that contribute to the importance of an algorithm are its scalability and performance.

To know more about Algorithm, visit: https://brainly.com/question/22984934?referrer=searchResults

#SPJ4


Related Questions

(fill in the blank) this service may be the most important service on the internet, because many people who have no other use for the internet use it.

Answers

Email is the service may be the most important service on the internet, because many people who have no other use for the internet use it.

What is Email?

Electronic mail, abbreviated "email," is a method of communication that uses electronic devices to deliver messages across computer networks. The term "email" refers to both the delivery system and the individual messages sent and received.

Email has existed in some form since the 1970s, when programmer Ray Tomlinson devised a method to send messages between computer systems connected to the Advanced Research Projects Agency Network (ARPANET). With the development of email client software (e.g., Outl_ook) and web browsers, modern forms of email became widely available for public use, allowing users to send and receive messages over the world wide web using web-based email clients (e.g. G_mail).

To learn more about Email, visit: https://brainly.com/question/553980

#SPJ4

As a concurrent record reviewer for an acute care facility, you have asked Dr. Crossman to provide an updated history and physical for one of her recent admissions. Dr. Crossman pages through the medical record to a copy of an H&P performed in her office a week before admission. You tell Dr. Crossman
- a new H&P is required for every inpatient admission
- that you apologize for not noticing the H&P she provided
- the H&P copy is acceptable as long as she documents any interval changes
- Joint Commission standards do not allow copies of any kind in the original record

Answers

As a concurrent record reviewer for an acute care facility, you have asked Dr. Crossman to provide an updated history and physical for one of her recent admissions. Therefore, You tell Dr. Crossman to option C: the H&P copy is acceptable as long as she documents any interval changes.

What is a concurrent chart review?

In a concurrent coding review process, coders examine the EHR/medical notes and HCC codes in real time before the claims are sent to payers. Coders frequently make use of the EHR and RCM technology already in place to make this kind of review possible.

Therefore, note that the written record of a patient encounter includes the History, Physical Exam, Assessment, and Plan; it is frequently abbreviated as "H&P" for History and Physical.

Hence, in the above case, the History and Physical Exam, or "H&P," is where the patient's "story" about why they sought medical attention or are currently receiving medical attention begins.

Learn more about Documentation from

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

as a cable company technician, you need to use a fiber optic sc connector to connect a device to the company's fiber optic network. the connector includes the following unique characteristics: it uses a ceramic ferrule to ensure proper core alignment and to prevent light ray deflection. it is half the size of other fiber optic connectors. which of the following is the sc connector? (select the correct connector type.)

Answers

As a cable company technician, you need to use a fiber optic sc connector to connect a device to the company's fiber optic network, the option that  is the sc connector is:  B - SC connector.

What is a SC connector?

Subscriber Connector, abbreviated SC, is also known as Square Connector or Standard Connector. Due to its low cost, dependability, and ease of installation for both point-to-point and passive optical networking, it is a widely used fiber-optic connector.

Hence, (Subscriber Connector, Standard Connector) a connector for fiber optic cables that operates on the same push-pull latching principle as standard audio and video connectors.

Learn more about fiber optic network from

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

5. [4 pts] two stations running tcp/ip are engaged in transferring a file. this file is 100mb long, the payload size is 100 kb, and the negotiated congestion window size is 300 kb. the sender receives an ack 1200 from the receiver. (2 points each) a. which bytes will be sent next? b. what is the last byte number that can be sent without an ack being sent by the receiver?

Answers

On the internet, network devices are connected via a set of protocols referred to as TCP/IP, or Transmission Control Protocol/Internet Protocol.

What stations running TCP/IP are engaged in a file?

In the transport layer, TCP coexists with other protocols like UDP. Except for UDP, which has less robust error checking, protocols in this layer guarantee error-free data transfer to the source.

A connection between the destination computer and the source sending computer. One of the two primary methods of data transmission in a TCP/IP network is TCP.

Therefore,  Additionally, a private computer network uses TCP/IP as its communication mechanism (an intranet or extranet).

Learn more about TCP/IP here:

https://brainly.com/question/27742993

#SPJ1

miguel has been practicing his hacking skills. he has discovered a vulnerability on a system that he did not have permission to attack. once miguel discovered the vulnerability, he anonymously alerted the owner and told him how to secure the system. which type of hacker is miguel in this scenario? answer white hat script kiddie gray hat state-sponsored

Answers

Select LAN Settings under the Connections tab. Select the Use a proxy server for your LAN settings check box in the Local Area Network Settings dialog box.

Go to Control Panel > Network and Internet > Internet Options to set the proxy server's IP address. Select LAN settings after clicking the Connections tab. You can enable a proxy server for the LAN and then input the proxy server's IP address and port number in the box that is presented. A VPN offers a safe external connection to the resources of an internal network. Proxy servers enable shared network connections, operate as a firewall and web filter, and cache data to speed up frequent requests.

Learn more about server here-

https://brainly.com/question/14307521

#SPJ4

The open source movement makes _____ available to everyone in an effort to continue to build and improve the functionality of open source software.

Answers

The open source movement makes Source Code available to everyone in an effort to continue to build and improve the functionality of open source software.

What is Open Source software?

A piece of software that is open source is one whose source code is available for anyone to review, edit, and improve.

Most computer users never see the "source code," which is the code that computer programmers can update to alter how a piece of software—a "program" or "application"—works. Programmers can improve a computer program by adding new features or fixing any problematic sections when they have access to the source code.

To know more about Open Source Software, visit the given link:

https://brainly.com/question/4593389

#SPJ4

1.3-2 Packet switching versus circuit switching (1). Which of the characteristics below are associated with the technique of packet switching? Please select all correct choices. Note: Each wrong answer carries 33.33% penalty! Select one or more: Reserves resources needed for a call from source to destination. Resources are used on demand, not reserved in advance. Data may be queued before being transmitted due to other user's data that's also queueing for transmission. Frequency Division Multiplexing (FDM) and Time Division Multiplexing (TDM) are two approaches for implementing this technique. Congestion loss and variable end-end delays are possible with this technique. 그 그 This technique is used in the Internet. This technique was the basis for the telephone call switching during the 20th century and into the beginning of this current century.

Answers

Two methods for putting this technique into practice are frequency division multiplexing (FDM) and time division multiplexing (TDM).

Multiple data streams can be transmitted over a single channel using TDM. where each signal has a fixed-length time slot for it. In contrast, FDM divides the overall bandwidth into a number of non-overlapping frequency bands, each of which transmits a different signal.

In FDM, separate signals are given their own channels, each of which occupies a different frequency band, and the time is divided into multiple fixed duration slots that are allotted to the signals in a round-robin fashion.

The entire frequency band that is available in TDM is used on a time-sharing basis, whereas in FDM the entire frequency band is divided into multiple channels, each of which is separated by a space.

To know more about FDM click here:

https://brainly.com/question/14615704

#SPJ4

susan works in the research and development department. she recently purchased a large high-speed external drive and has attached the drive to her computer using a usb cable. her drive requires a minimum data transfer speed of 5 gbps and needs to have access to 600 ma/15 volts of usb power to function properly. although the correct drivers are installed, when she plugs her drive into her workstation, the drive is not working. to troubleshoot the problem, she has connected her drive to her coworker's computer, where the drive functions properly. no additional cables are required for this drive. which of the following is the most likely reason that susan's external hard drive is not working?

Answers

Susan has connected her usb drive to a USB 2.0 port that is insufficiently powered for her usb-drive.

Susan has connected her drive to a USB 2.0 port, which does not support the drive's requirements. Large high-speed USB drives necessitate more power than USB 1.0 or 2.0 can supply. USB 2.0 has a maximum bandwidth of 480 Mbps, which is sufficient for Susan's drive. The maximum power consumption of a 2.0 port is 500 milliamps.

What is Bandwidth?

Bandwidth is the capacity of a computer network to transfer data in bits per second (Bps). The term can also be used colloquially to describe a person's current capacity for tasks or deep thoughts.

To know more Bandwidth, visit: https://brainly.com/question/8154174

#SPJ4

which method of verification should be included in the two-step customer identification program (cip) process?

Answers

Driver's licences, state-issued ID cards, passports, and military IDs are among the most widely used forms of documentary identification for people.

Explain about the two steps in CIP process?

For confirming each customer's identity, it must also include appropriate and workable risk-based methods. The CIP is, at its core, a two-part procedure, the first step of which is to gather identifying data, and the second of which is to confirm that the data collected actually identifies the client.

The CIP needs to outline the identifying data that will be gathered from each consumer opening an account. Name, address, date of birth (if applicable), and identity number of the consumer are required to be included.

The CIP specifies the basic criteria for financial institutions and their customers regarding ,the identity of the customer that shall apply in connection with the establishment of an account at. a financial institution.

To learn more about  CIP process refer to:

https://brainly.com/question/14381298

#SPJ4

A company wants to create highly available datacenters. Which of the following will allow the company to continue to maintain an Internet presence at all sites in the event that a WAN circuit at one site goes down?
A. Load balancer
B. VRRP
C. OSPF
D. BGP

Answers

A company wants to create highly available datacenters. BGP will allow the company to continue to maintain an Internet presence at all sites in the event that a WAN circuit at one site goes down.

About BGP

BGP (Border Gateway Protocol) is a type of routing protocol that functions to exchange information between Autonomous Systems (AS). This BGP is a Dynamic Routing and on the proxy itself there are several kinds of dynamic routing features other than BGP such as OSPF and RIP. To exchange information, BGP utilizes the TCP protocol so that there is no need to use other types of protocols to handle fragmentation, retransmission, acknowledgment and sequencing.

Characteristics Of BGP Using distance vector routing algorithm. Distance vector routing algorithm periodically copies the routing table from router to router. Changes to the routing table are updated between interconnected routers when a topology change occurs. Used between ISPs with ISPs and clients. Used to route internet traffic between autonomous systems. BGP is Path Vector routing protocol. In the process of determining the best routes, it always refers to the best and selected path that it gets from other BGP routers. BGP routers establish and maintain peer-to-peer connections using port number 179. Inter-peer connections are maintained using periodic keepalive signals. The metrics (attributes) for determining the best route are complex and can be modified flexibly. BGP has its own routing table which usually contains the routing prefixes it receives from other BGP routers

Learn more about BGP at https://brainly.com/question/9257367.

#SPJ4

A source of emf is connected by wires to a resistor, and electrons flow in the circuit. The wire diameter is the same throughout the circuit. Compared to the drift speed of the electrons before entering the resistor, the drift speed of the electrons after leaving the resistor is.

Answers

The drift speed of the electrons after leaving the resistor is same.

What is drift speed?

Drift is the sluggish approach to something or anything. Drift velocity is the average speed of charged particles moving through a medium as a result of an electric field.

The average speed at which electrons "drift" in the presence of an electric field is known as drift velocity. The electric current is a result of the drift velocity (or drift speed). Thermal velocity, on the other hand, results in random motion that generates collisions with metal ions.

A change in mass causes an electron moving in a crystal lattice to move similarly to a free electron, as was previously demonstrated. This fact enables us to describe the motion of electrons and holes in a semiconductor device using the classical equations of motion.

To learn more about drift speed refer to:

https://brainly.com/question/12911661

#SPJ4

HBO and Showtime are both considering producing new television shows. They could produce either a romantic comedy or a historical drama. The profits are illustrated in the following payoff matrix. Use the table shown here to answer the three true false questions that follow. Note: these questions are taken from Study Problem 2 in Chapter 18 of your textbook. Showtime produces romantic Showtime produces historical comedy drama HBO produces HBO receives $19 million profit HBO receives $22 million profit romantic Showtime receives $13 million Showtime receives $10 million comedy profit profit HBO produces HBO receives $30 million profit HBO receives $25 million profit historical Showtime receives $14 million Showtime receives $8 million drama profit profit Question 8 3 pts If HBO chooses to produce a romantic comedy, then Showtime's best response is to produce a historical drama. [Select] HBO's best response is to always produce a historical drama. [Select ] Showtime's best response is to always produce a romantic comedy. [Select]

Answers

The ideal response from HBO is usually to create a historical drama- True.  False: If HBO decides to make a romantic comedy, Showtime's best reaction is to do the same. The best way for Showtime to unwind is to create a romantic comedy- True.

The graph's information allows us to determine the profit of HBO and Showtime in light of several scenarios, including:

HBO's income from producing fragrant comedies are $ 19 million and Showtime's are $ 13 million (Showtime)

If Showtime makes a historical drama and HBO does a romantic comedy, the profits are $22 million for HBO and $ 10 million for Showtime, respectively (Showtime)

The revenues from a historical drama produced by HBO and Showtime are $ 25 million (HBO) and $ 8 million (Showtime) (Showtime)

If Showtime produces a romantic comedy and HBO a historical drama, the profits are $30 million for HBO and $14 million for Showtime.

This leads us to the conclusion that:

Because it makes between $ 25 million and $ 30 million per historical drama it produces, HBO's best reaction is usually to do so. On the other hand, it makes between $ 19 and $ 22 million from producing romantic comedies.

When HBO decides to produce a romantic comedy, Showtime's best answer is to produce a historical drama, yet this is untrue because Showtime makes more money producing historical drama than it does when HBO produces a romantic comedy ($10 million against $13 or $14 million).

Given that its profits from producing comedies are between $ 13 and $ 14 million and those from making historical dramas are between $ 10 and $ 8 million, Showtime's best solution is to make comedies.

To know more about million click here:

https://brainly.com/question/13676185

#SPJ4

In the context of planning a training program, even though it is time-consuming, putting together a/an _______ is worthwhile because it helps an organization clarify training objectives, compare vendors, and measure results.

Answers

Answer: a request for proposal

Explanation:

this is the answer I put on my test hope this helps

role-based access control (rbac) uses labels to determine the type and extent of access to a resource and the permission, or security, level granted to each user.

Answers

It is false that role-based access control (RBAC ) uses labels to determine the type and extent of access to a resource and the permission, or security, level granted to each user.

RBAC is a technique for controlling network access based on the roles of specific individuals inside an organization.

RBAC guarantees that employees only have access to the information they require to do their duties and stops them from obtaining information that is irrelevant to them.

The rights that are provided to an employee are based on their job within the business, which prevents lower-level employees from accessing sensitive data or carrying out high-level duties.

Roles are based on a number of criteria in the role-based access control data model, including authorization, responsibility, and job competency. As a result, businesses can specify whether a user is an administrator, specialist user, or end user. Additionally, access to computer resources can be restricted to certain capabilities, like the capacity to view and create.

To know more about RBAC click here:

https://brainly.com/question/15129911

#SPJ4

You suspect a bad video driver is causing a user's system to randomly crash and reboot. Where wouldyou go to identify and confirm your suspicions?Application logsSyslogSIP logsDump files

Answers

Several software drivers may malfunction as a result of high CPU consumption. The typical symptoms include excessive heating and your programs' generally poor response times.

Stop all resource-intensive programs from consuming the system's memory in such situations. Playing 4K games with an integrated GPU rather than a dedicated one can also result in problems. Check your integrated GPU's ability to handle graphically demanding apps. If not, think about investing in a dedicated GPU. The incorrect launch option may cause an incompatible video setting to be used when the game first launches, resulting in the display driver crash error message. We'll walk you through setting up the launch options on outside gaming servers like Steam.

Learn more about system here-

https://brainly.com/question/13992507

#SPJ4

Identify the statement that will throw an error in the following code?
class Student {
public:
void SetName(string studentName);
void Display();
private:
string name;
char grade;
int Grade();
};
void Student::Display() {
grade = Grade();
...
}
int Student::Grade(){
...
}
void SetName(string studentName) {
name = studentName;
}
int main() {
Student stu1;
stu1.Display();
...
stu1.Grade();
}
a. stu1.Grade();
b. stu1.Display();
c. int Student::Grade()
d. void Student::Display() {
grade = Grade();
}

Answers

Below is the java code with the statement that will throw an error in the following code are as follows:

Compilation failed due to following error(s).

Main.java:2: error: illegal start of type

public:

Main.java:5: error: illegal start of type

private:

 

Main.java:10: error: class, interface, or enum expected

void Student::Display() {

Main.java:12: error: class, interface, or enum expected

Main.java:19: error: class, interface, or enum expected

Main.java:22: error: class, interface, or enum expected

stu1.Display();

Main.java:23: error: class, interface, or enum expected

Main.java:25: error: class, interface, or enum expected

Main.java:27: error: class, interface, or enum expected

b. stu1.Display();

Main.java:28: error: class, interface, or enum expected

c. int Student::Grade()

Main.java:31: error: class, interface, or enum expected

11 errors

To know more about java code, visit: https://brainly.com/question/25458754

#SPJ4

if i uninstall a game from my ps4 due to lack of memory space, will i lose all my progress and save datas?

Answers

No, you won't lose any of your saved data or progress. You will only lose the game itself.

Do savegames get deleted when a PS4 game is uninstalled?No, you won't lose any of your saved data or progress.You will only lose the game itself.Your saved data can only be deleted via one of two methods.The two options are to manually erase it from the storage or to factory reset your PS4.The PS4 usually retains your saved game files and other game settings when you delete a game in case you decide to reinstall it in the future.You can also erase your game files if you're certain you don't want them.

To learn more about saved data refer to

https://brainly.com/question/29528808

#SPJ4

The following loop is intended to print the numbers

2 4 6 8 10

Fill in the blank:

for i in ________:

print (i)

Answers

The following loop is intended to print the numbers 2 4 6 8 10. The for i in range (2, 11, 2).

What is a loop?

A for loop is used to iterate through a series (that is either a list, a tuple, a dictionary, a set, or a string). This behaves more like an iterator method in other object-oriented programming languages than the for a keyword in other programming languages.

For the loop. In Python, a for loop is used to iterate over a series (list, tuple, set, dictionary, and string). Loop while While loops are used to execute a series of statements while a condition is true.

Therefore, the for i in the range (2, 11, 2).

To learn more about loop, refer to the link:

https://brainly.com/question/29268230

#SPJ1

2.)For a given mean and standard deviation, the __________ function in Excel is used to generate a value for the random variable characterized by a normal distribution.
a.)NORM.INV()
b.)RAND()
c.)VLOOKUP()
d.)FREQUENCY()

Answers

The NORM.INV() function in Excel is used to generate a value for the random variable with a normal distribution for a particular mean and standard deviation.

Variable — what is it?

In computer coding, a variable is a designated container for a certain set of bits or kind of information. A variable is an abstract storage place with an associated symbolic name that stores some unknown or known amount of data referred to as a value (like integer, float, string etc...). Eventually, a memory address could be used to link or identify a variable. In addition to using the variable name or the variable itself, depending on the situation, the stored value is typically referred by the variable name.

To know more about variable
https://brainly.com/question/17344045
#SPJ4

Jerry has a problem with a package he just received—two items from his order are missing. Who should he contact to resolve the problem?.

Answers

Since Jerry has a problem with a package he just received—two items from his order are missing. The person that he should contact to resolve the problem is Customer service representative.

What does a customer service agent do?

By giving useful information, responding to inquiries, and handling complaints, a customer service representative helps customers. They serve as clients' and customers' first point of contact and work to make sure that customers are happy with the goods, services, and features.

Note that Customer service agents pay attention to customers' inquiries and provide answers. They often assist customers in resolving issues, processing orders, and getting information about the goods and services offered by an organization.

Therefore, based on the scope of their work, they can be able to answer Jerry's problem.

Learn more about Customer service representative from

https://brainly.com/question/26546102

#SPJ1

joe works for a company where the it department charges him for the number of crm login accounts that are in his department. what type of it funding model is his company deploying?

Answers

It funding model is his company deploying the Allocation.

What is allocation?Allocation is referred to as a procedure in both accounting and business. A corporation dividing up its expenses and allocating a specific sum to each division is one example of allocation.The term "allocation of funds" refers to the process of deciding which services or projects will receive money and how much of that funding is expected to be made available during the fiscal year.Allocation mean The process of efficiently allocating labor and resources to complete a task or project in accordance with the organization's output objectives is known as work allocation. The decision to allocate resources and jobs is based on how the company will profit from doing so. setting apart or choosing. apportionment, allocation, appointment

To learn more about allocation refer to:

https://brainly.com/question/27908956

#SPJ4

USB 3.0 can plug into a 2.0 port, but will only transmit at the speed of a USB 2.0 true or false

Answers

Answer:

true

Explanation:

USB 3.0 backwards is compatible—meaning it's designed to work with older USB versions including USB 2.0 and USB 1.1. You can plug a USB 2.0 device into a USB 3.0 port and it will always work, but it will only run at the speed of the USB 2.0 technology.

Write a hashing algorithm for social security numbers (ex. 124-34-5438) that would have 32 possible values, zero included. Note: THIS IS NOT A CLASS OR A PROGRAM, JUST A FORMULA! Write a description of how it would work, and tell me where the sample above would resolve to as a hash. Java

Answers

This hashing algorithm would work by converting the social security number into an integer and then performing a modulo operation on that number.

what is hashing algorithm

The modulo operation would be performed with a prime number that is larger than 32 such that the number can be divided up into 32 possible values, 0 included. For example, the prime number 41 could be used for this operation. The algorithm would take the individual digits of the social security number, convert them into an integer, and then add them all together. This integer would then be divided by 41 and the remainder would be the hash value. For the example social security number provided (124-34-5438), the algorithm would first convert each number into an integer (1, 2, 4, 3, 4, 5, 4, 3, 8) and add them all together (34). Then, 34 divided by 41 yields a remainder of 8, so the hash value of this social security number would be 8.

To know more about hashing algorithm
https://brainly.com/question/16985314
#SPJ4

1. describe how a page fault is handled? 2. what are file attributes? 3. what operations can be performed on files and directories? why are some distinct? 4. compare and contrast sequential to direct access. 5. how is a tree-structured directory different from a acyclic-graph directory?

Answers

The way that page fault is handled is by:

Once the virtual address that produced the page fault is determined, the system verifies that the address is genuine and makes sure there are no issues with protection or access. The system checks to verify if a page frame is free if the virtual address is legitimate. The page replacement algorithm is used to remove a page if there are no empty frames.

The operations that can be performed on files and directories are:

Open operationWrite operationRead operationRe-position or Seek operationDelete operationTruncate operationClose operationWhat is the compare and contrast sequential to direct access?

Sequential access should start at the start and access each element one at a time. Any element may be directly accessed by using its index number or address to find it. There is direct access with arrays. CDs had direct access, but magnetic tape only has sequential access.

Therefore, one can say that direct access eliminates the need to browse the data in order. When data is retrieved sequentially, it is located by starting at one location and moving on to succeeding sites until it is.

Learn more about  page fault from

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

Every keystroke and every mouse click creates an action, or ________, in the respective computer device.

Answers

In the appropriate computer device, each keypress and mouse click results in an action, or event.

Describe a device.

A display device is an output tool for information presentation in tactile or visual form (the latter used for example in tactile electronic displays for blind people). An electronic screen is one that uses an electronic current as part of its input information. A computer that is portable—also known as a visual interface be handled and used in the hands. Mobile phones often have a touchscreen interface, a flat LCD and OLED screen, and either physical or digital buttons. They might even have a real keyboard. Many of these gadgets have Internet connections and can communicate with other devices.

To know more about device
https://brainly.com/question/11599959
#SPJ1

write code that completes the celestialbody class. each celestialbody instance has an integer orbitlength (in days) and a integer dayssincediscovered attribute (which is initially 0). using these, write the orbit(int numberoftimes) method that adds numberoftimes * orbitlength to dayssincediscovered (e.g., if planet x has done two orbits with an orbit length of 12 days, it was discovered 24 days ago. if it then orbits another three times, it was discovered 60 days ago). also, fix the two errors in the class.

Answers

Using knowledge in computational language in python it is possible to write a code that celestialbody instance has an integer orbitlength and a integer dayssincediscovered attribute.

Writting the code:

import numpy as np          #IMPORTING numpy library for array operations

import math

'''Base Class CelestialBody is implemented'''

class CelestialBody:

   def __init__(self,name,position,mass,radius):

       self.name=name;

       self.position=position

       self.mass=mass

       self.radius=radius

   def volume(self):

       return (88/21)*(self.radius)*self.radius*self.radius #volume =  (4*pi*(radius^3))/3

   def density(self):

       vol=self.volume()       #volume is calculated using volume method

       return self.mass/vol       #density is mass/volume

   def delta_r(self,other):

       return np.subtract(other.position,self.position)#numpy subtract method is used to find difference vector

   def distance(self,other):

       dist = np.subtract(other.position,self.position)

       return math.sqrt(np.dot(dist,dist))#dot product is used to find distance between vector

'''planet class has same attributes as Celestial Body'''

class Planet(CelestialBody):

   pass

'''Moon class'''

class Moon(CelestialBody):

   def __init__(self,name,position,mass,radius,parent):

       CelestialBody.__init__(self,name,position,mass,radius)

       self.parent=parent

   

earth=Planet("Earth",np.array([9.978977040419635E-01, 6.586825681892025E-02, -6.320430920521123E-06]),597219e24,6371.01)

luna=Moon("Luna",np.array ([9.956768547953816E-01, 6.676030485840675E-02, 1.641093070596718E-04]),7.349e22,1737.53,earth)

mars=Planet("Mars",np.array([-1.638989837611019E+00,2.909235766064876E-01,4.607875056151672E-02]),6.4171e23,3389.92)

deimos=Moon("Deimos",np.array([-1.638943766241257E+00,2.907775944863155E-01,4.604465570526414E-02]),1.80e20,2.9,mars)

phobos=Moon("Phobos",np.array([-1.638995094538730E+00,2.909862261134459E-01,4.608601582090829E-02]),1.08e20,2.4,mars)

See more about python at brainly.com/question/12975450

#SPJ1

A local pizza parlor provides pizzas in the following sizes: Small, Medium, or Large. Customers also have a choice of a maximum of five toppings that can be added. If the user enters a value greater than 5, an appropriate message should be shown alerting the user and allowing them to re-enter the value. A delivery fee of $300 is charged as a flat rate, this is only applied if the pizza size is not large. The user is required to pay a tax of 17.5%. The program must print the sub-total, taxes, the amount of money the customer is required to pay based on the order given, and change to be tendered, and the name of the Cashier . Your program is to execute as many times until the user presses Y to exit. Use Appropriate FUNCTIONS are part of your solution.





Now the cost per pizza is calculated as follows:




pizza_cost = base_price + ( number_of_toppings * cost_per_topping ) + delivery cost + taxes

Answers

You have this in wrong section you put it in technologies this is math

PLEASE HELP
THIS IS A BEGINNER’S COMP SCI CLASS AND THE LANGUAGE IS JAVA!

Answers

Answer:

is this you looking for?

import java.util.Scanner;

public class PIN {

   public static void main(String[] args) {

       Scanner input = new Scanner(System.in);

       int pin = 1234;

       int userPIN = 0;

       int attempts = 0;

       while (userPIN != pin && attempts < 3) {

           System.out.print("Enter your PIN: ");

           userPIN = input.nextInt();

           if (userPIN != pin) {

               System.out.println("Invalid PIN, try again");

               attempts++;

               }

               }

               if (attempts == 3) {

                   System.out.println("Attempt limit exceeded. Account has been locked");

                   } else {

                       System.out.println("Access granted");

                       }

                       }

                       }

write a verilog description for a 3-8 decoder with one enable high input which will generate a low output chegg

Answers

Verilog is a hardware description language (HDL) for modeling electronic systems that is standardized as IEEE 1364. A verilog description for a 3-8 decoder with one enable high input which will generate a low output is:

What is Verilog?

Verilog is a hardware description language (HDL) that is used to model electronic systems and is standardized as IEEE 1364. The design and verification of digital circuits at the register-transfer level of abstraction are where it is most frequently used. In addition, it is applied to the design of genetic circuits as well as the verification of analog and mixed-signal circuits.

In order to create IEEE Standard 1800-2009, the Verilog standard (IEEE 1364-2005) and the SystemVerilog standard were combined in 2009. Since that time, Verilog has been a recognized member of the SystemVerilog language. The most recent iteration is IEEE standard 1800-2017.

//Verilog description//

1 module decoder (in,out);

  2 input [2:0] in;

  3 output [7:0] out;

  4 wire [7:0] out;

  5 assign out  =   (in == 3'b000 ) ?

8'b0000_0001 :    6 (in == 3'b001 ) ?

8'b0000_0010 :    7 (in == 3'b010 ) ?

8'b0000_0100 :    8 (in == 3'b011 ) ?

8'b0000_1000 :    9 (in == 3'b100 ) ?

8'b0001_0000 :   10 (in == 3'b101 ) ?

8'b0010_0000 :   11 (in == 3'b110 ) ?

8'b0100_0000 :   12 (in == 3'b111 ) ?

8'b1000_0000 : 8'h00;  13

         14 endmodule

Learn more about Verilog

https://brainly.com/question/24228768

#SPJ4

which of the following types of networks would be created if a wireless access point, a microwave link, and a satellite link were combined in a mesh?

Answers

PAN WMN is the correct answer. A cloud provider hosts applications and makes them online accessible to customers as part of the software as a service (SaaS) distribution paradigm.

An RFID tag must be communicated with by a scanner using radio waves in order to be used for inventory management. The tag itself has a microprocessor software that enables the reader to read data from the tag as well as write data to it for in-place real-time updating. The Internet, sometimes known as "the Net," is a global system of computer networks. It is a network of networks that allows users at any one computer to obtain information from any other computer with permission (and sometimes talk directly to users at other computers).

Learn more about network here-

https://brainly.com/question/13992507

#SPJ4

Other Questions
according to the 3-x-3 writing process, what should he do before writing the letter? check all that apply. analyze the purpose. visualize the audience. anticipate audience response. check punctuation. proofread the letter. What type of legislation did Nixon's administration introduce? (2-3 sentences) a uniform thin rod of length 0.832 m0.832 m is hung from a horizontal nail passing through a small hole in the rod located 0.084 m0.084 m from the rod's end. when the rod is set swinging about the nail at small amplitude, what is the period Tt of oscillation? a patient is on highly active antiretroviral therapy (haart) for the treatment of hiv. what does the nurse know would be an adequate cd4 count to determine the effectiveness of treatment for a patient per year? the nurse is asking a client with arthritis questions to collect information. which questions asked by the nurse are closed-ended questions? select all that apply. one, some, or all responses may be correct. which member in each pair of liquids has the higher vapor pressure at a given temperature? (a) c2h6 c4h10 (b) ch3ch2f ch3ch2oh (c) nh3 ph3 A 4. 0-kilogram object is accelerated at 3. 0 meters per second^2 north by an unbalanced force. The same unbalanced force acting on a 2. 0-kilogram object will accelerate this object toward the north at. Remy peered over the table at the cake. It looked absolutely delectable. The white frosting was thick and creamy. The beautiful swirls looked like ripples on water and the strawberry decorating the top was plump and ripe. Remy wasnt sure if he would be able to wait until dinner.1. What point-of-view is this story told from?2. What text structure is used in the paragraph?3. What text feature is used in this text?4. From the context clues used in the text, what can you infer is the meaning of the word delectable?A. DisgustingB. DeliciousC. Exquisite 5.What can you infer will happen next? You may circle more than one answer. A. Remy will eat the pie on the table. B. Remy will eat the frosting at the bottom of the cake.C. Remy will wait until dinner to eat the ca the nurse prepares to administer large-volume cleansing enemas to a client scheduled for bowel surgery. for which client should the nurse stop administration of the enemas and notify the primary care provider? Why did President Roosevelt oppose the Neutrality Acts passed in the 1930s? question 39 winding up is the process of collecting, liquidating, and distributing the partnership assets. true false 13) ten years ago, you put $150,000 into an interest-earning account. today it is worth $275,000. what is the effective annual interest earned on the account? An oligopoly knows that its _____ affect(s) its _____ and that the _____ of its rivals will affect it. Select one:a. actions; rivals; reactionsb. price changes ; total revenue in a positive way; reactionsc. actions rarely; rivals; actionsd. price increases; total revenue in the long run only; large but not small price changes Edna does not currently have panic disorder. However, she cannot leave her house and required home sessions when she began therapy. It is likelya. Edna has agoraphobia, does not meet criteria for panic disorder.b. Edna does not have agoraphobia.c. Edna is faking her symptoms.d. that Edna has more severe panic but is able to cope with the symptoms. a nurse is talking with a co-worker who is moving to a new state and needs to find new employment there. what advice by the nurse is best Is 3x 1/2 = 3 true or false? the nurse is assessing a vietnamese child during a home health visit and identifies round swellings on the child's back. the child's mother says she rubbed the edge of a coin on her child's oiled skin. the nurse should recognize that this behavior is prompted by which cultural belief? on january 1, year 1, saturn corporation issues $100,000 of bonds with a stated rate of 8% for $107,020. the bonds pay interest on june 30 and december 31. the market interest rate at the issue date was 6%. the journal entry to record the interest expense on june 30 will include which of the following? Which of the following best describes your answer for question number 1? *O Homozygous dominantO Homozygous recessiveO Heterozygous As a promotion, the first 50 customers who entered a certain store at a mall were asked to choose from one of two discounts. The first discount choice was 20% off all purchases made that day. The second discount choice was 10% off all purchases for the week. Of those who received the discounts, 28 chose the first discount and 22 chose the second discount. One customer will be selected at random from those who received a discount. Let F represent the event that the selected person chose the first discount, and let S represent the event that the selected person chose the second discount.Are F and S mutually exclusive events?AYes, because P(FS)=0.BYes, because P(FS)=0.12.CYes, because P(FS)=1.DNo, because P(FS)=0.ENo, because P(FS)=1.