a is malicious code that attaches itself to a host program and is activated when the program is ran.

Answers

Answer 1

This type of code is dangerous because it can be used to access, modify, or delete sensitive information, or to install malware or other malicious files on the affected computer.

What is malware?

Malware is a type of malicious software designed to gain access to or damage computer systems without the user's knowledge or permission. It can be used to steal private information, disrupt network operations, or even destroy hardware or software. Malware can be spread through email attachments, downloads, removable storage devices, and even websites. It is important to ensure the security of your system by regularly running anti-virus software and being vigilant about what links you click and files you download.

Malware such as viruses, worms, trojans, and other malicious programs can cause damage to systems and networks.

To learn more about malware
https://brainly.com/question/399317
#SPJ4


Related Questions

the probability model shows the proportion of students at a school who passed the exams for the listed subjects. a 2-column table with 4 rows. column 1 is labeled subject with entries a p stats, a p language, a p computer science, a p european history. column 2 is labeled probability with entries 0.62, 0.58, 0.31, 0.65. which statement is true about the model provided? the probability model is valid because the sum of the probabilities is 1. the probability model is not valid because the sum of the probabilities is not 1. the probability model is valid because all of the probabilities are between 0 and 1. the probability model is not valid because not all of the probabilities are between 0 and 1.

Answers

Answer:b

Explanation:

cause b is the answer

Which of the following statements correctly describes the relation between an object and the instance variable it stores? (Select multiple)
A) Each new object has its own distinctive set of instance variables
B) Each object has a copy of the instance variables of its class
C) the instance variable of each object are seperate from the variables of other objects
D) The instance variables of each object are stored together with the variables of other objects

Answers

The following statements correctly describes the relation between an object and the instance variable it stores are Each new object has its own distinctive set of instance variables

Each object has a copy of the instance variables of its class the instance variable of each object are separate from the variables of other objects

Option A, B , C are correct.

How do variables work?

Variables do not always have a "quantitative" or numerical meaning. New York or Sydney are examples of text values in the variable city. If it is necessary, we can assign quantitative values in addition to or in addition to the text values; however, we need not assign numbers for something to be a variable. Understanding that variables are not limited to things that can be measured in the traditional sense is also essential.

For example, in a lot of social research and program evaluation, we think that the treatment or program is made up of one or more variables (the "cause" can be a variable). The amount of "time on task," "classroom settings," "student-teacher ratios," and other aspects of an educational program can vary. Therefore, the program itself may be regarded as a variable (which may include a number of sub variables).

Learn more about instance variables:

brainly.com/question/13014011

#SPJ4

____is the ability to log and trace any performed action over a secured network, preventing a participant from denying it performed an action.

Answers

Non-repudiation  is the ability to log and trace any performed action over a secured network, preventing a participant from denying it performed an action.

What is Non-repudiation?  

A situation known as non-repudiation occurs when the person who made a statement cannot successfully contest their own creation or the legality of a related contract. When the validity of a signature is in dispute, the phrase is frequently used in a legal context. Such a situation constitutes a "repudiation" of authenticity.

Mallory, for instance, pays $100 for a cell phone with a paper check that she signs in a pen. Later, she discovers that she cannot afford it and claims that the check is a fake. Mallory's bank must honour the check because the signature makes it clear that no one else could have signed it.

Learn more about  Non-repudiation

https://brainly.com/question/30176388

#SPJ4

Suppose you have an LFSR with 6 state bits. The first 12 bits of output produced by this LFSR are 110001101100 80818283848586878889910811 The first bit produced is the leftmost bit and the bit most recently produced is the rightmost bit. a) What is the initial state of the LFSR? Please enter your answer as unspaced binary digits (e.g. 010101 to represent $5 = 0,84 = 1,83 = 0,82 = 1, 81 = 0, 80 = 1). 100011 b) What are the tap bits of the LFSR? Please enter your answer as unspaced binary digits (e.g. 010101 to represent ps = 0, P4 = 1, P3 = 0, P2 = 1, P1 = 0, Po = 1).

Answers

Python program that, given the output values of the xor circuit of the LFSR algorithm, determines the initial estate (seed) and the taps. An image of the answer is attached.

What is LFSR?

Linear feedback shift register it is an algorithm that consists of repositioning the elements of an array, list or string. In the case of a list of bits, each iteration of the LFSR moves each element to the left, replacing the first with a value that is placed at the end, and is calculated using an xor circuit. Here is an example

Python code

def xorCrto(x, y):

   return bool((x and not y) or (not x and y))

def lfsr(seed, tap_position):

   tp = str()

   tp = []

   x = 0

   xor = 0

   first_twelve_digits = str()

   taps = ""

   while True:

       print ("")

       print ("Tap position(",x+1,")= ", tap_position)

       print ("Leftmost bit(",x+1,")=", seed[0])

  #xor circuit call function

       xor1 = xorCrto(tap_position,int(seed[0]))

       if xor1 == True:

           xor = 0

       else:

           xor = 1

       print ("Xor output(",x+1,")=", xor, " (put to rightmost bit position)")

       first_twelve_digits = first_twelve_digits + str(xor)

       taps = taps + str(tap_position)

       seed=  seed[1:]+str(xor)

       print ("State(", x+1, ")=", seed)

       x = x + 1

   #changing the tap position to find the correct result

       if x == 7: tap_position = 0

       if x == 10: tap_position = 1

       if x == 11: tap_position = 0

      #The program stops when the xor circuit produces 12 digits

       if x == 12:

    #Output

           print ("")

           print ("First 12 outputs of xor circuit (all bits that were put to the rightmost position) = ",first_twelve_digits)

           for d in taps:

               if d not in tp:

                   tp.append(d)

           print ("Taps = ",tp)

           break

#Initial State (seed)

seed = '110001'

#taps position

tap_position = (1)

#LFSR with 6 state bits

print ("Initial state = ", seed)        

print ("Tap position = ", tap_position)

lfsr(seed, tap_position)

To learn more about LFSR in python see: https://brainly.com/question/19091159

#SPJ4

the university keeps track of each student's name, student number, social security number, current address and phone, permanent address and phone, birthdate, sex, class (freshman, sophomore, ..., graduate), major department, minor department (if any), and degree program (b.a., b.s., ..., ph.d.). some user applications need to refer to the city, state, and zip of the student's permanent address, and to the student's last name. both social security number and student number have unique values for each student. each department is described by a name, department code, office number, office phone, and college. both name and code have unique values for each department.

Answers

The university keeps track of student and department information such as name, code, address, phone, birthdate, and degree program. It also stores city, state, zip, and last name of permanent address. Both social security and student numbers are unique.

What is entity-relationship theory?

Entity-relationship theory is used to model the relationships between entities in a database.

An entity is something that exists, such as a student or a department. A relationship is an association between two or more entities.

The theory used in this question is entity-relationship theory.

1. Identify the entities: First, identify the entities in the question, such as student, department, and address.

2. Define the relationships between the entities: Next, define the relationships between the entities, such as the relationship between a student and a department or the relationship between a student and an address.

3. Determine the attributes of each entity: Then, determine the attributes of each entity, such as student name, student number, and social security number for the student entity, or department name and code for the department entity.

4. Create an entity-relationship diagram: Finally, create an entity-relationship diagram to visually represent the relationships between the entities. This diagram should include the entities, their attributes, and the relationships between them.

To learn more about entity-relationship theory refer :

https://brainly.com/question/28232864

#SPJ4

Given :an int variable k,an int array currentMembers that has been declared and initialized ,an int variable nMembers that contains the number of elements in the array ,an int variable memberID that has been initialized , anda bool variable isAMember,Write code that assigns true to isAMember if the value of memberID can be found in currentMembers, and that assigns false to isAMember otherwise.Use only k, currentMembers, nMembers, and isAMember.isAMember=false;for (k=0; k

Answers

The code below assigns true to isAMember if the value of memberID can be found in currentMembers, and assigns false to isAMember otherwise.

The value of memberIDThe code uses a loop to iterate through the array of currentMembers and checks whether the value of memberID is equal to any of the elements in the array. If a match is found, isAMember is set to true, otherwise it is set to false.

for (k = 0; k < nMembers; k++) {

   if (currentMembers[k] == memberID) {

       isAMember = true;

       break;

   }

}

if (k == nMembers) {

   isAMember = false;

}

The given int variable k, int array currentMembers, int variable nMembers, int variable memberID, and bool variable isAMember can be used to assign true to isAMember if the value of memberID can be found in currentMembers. To do this, first the isAMember variable is assigned false.Then, a for loop is used to iterate over the array currentMembers. For each element in the array, if the element is equal to the value of memberID, the isAMember variable will be assigned true, and the loop will be terminated.If the loop completes without finding an element equal to memberID, isAMember will remain false. After the loop completes, the value of isAMember will indicate if the value of memberID was found in currentMembers.

To learn more about the value of memberID refer to:

https://brainly.com/question/15392924

#SPJ4

This information provides a narrative name of the services provided. This information should be presented in a clear concise manner. When possible, the narratives from the HCPCS/CPT book should be utilized.
A. general ledger key
B. charge code
C. item description
D. revenue code

Answers

A. General Ledger Key: An accounting mechanism for keeping records.

B. Charge Code: A code that is used to specify what goods and services.

C. Item Description: A thorough explanation of a good or service.

D. Revenue Code: A password used to specify how much money was made.

Just what is code?

Any collection of code written in a human-readable programming language, often as plain text, with or without comments, is referred to in computing as source code, or just code. Programmers describe the activities to be carried out by a computer in large part by writing source code, so the source code of a software is specifically created to make their work easier. An assembly or compiler frequently converts the source code into executable binary machine code.

To know more about code
https://brainly.com/question/17204194
#SPJ4

you are tasked with configuring a wireless soho router for a customer. which of the following settings will be the most secure with the least effort and cost to the customer?

Answers

The most secure and least effort and cost :WPA2-PSK and AES - Out of all the options mentioned, WPA2-PSK is the most secure without a server for authentication. TKIP is less secure than AES.

A broadband router designed and marketed for small workplaces and home offices is known as a SOHO router. These companies need a local area network (LAN), which means their network hardware is set up for that use, because the internet handles the majority of their burden.A SOHO network can include both wireless and wired PCs.

These networks may also incorporate printers and occasionally voice over IP (VoIP) and fax over IP technology because they are designed for commercial use.Years ago, home networks switched to Wi-Fi-only settings, while SOHO routers still support conventional Ethernet. The Asus BRT-AC828 (8 ports), the Netgear Orbi Pro, and the Ubiquiti EdgeRouter are typical examples of Ethernet SOHO routers that are frequently used (4 port).

To learn more about " WPA2-PSK" Click on below link brainly.com/question/10674980

#SPJ4

using up and down arrows, show how the following changes affect the partial pressures of each gas at equalibrium

Answers

Increasing temperature changes affect the partial pressures of each gas at equalibrium.

What is equalibrium?
Equilibrium
is a state of balance between two opposing forces or influences. It is a state of stability in which the variables involved remain constant over a period of time. It is often used in the context of economics, referring to a situation where market supply and demand are balanced and in the absence of external influences, the prices and quantities of goods and services remain stable. In physics, it is a state of a system in which all active forces cancel each other out and the system is in a stable position. In chemistry, equilibrium refers to a state where the forward and reverse reactions occur at the same rate, resulting in no net change. In biology, it is the balance between different organisms in a habitat.

Up arrow for all gases. Increasing temperature increases the partial pressure of each gas in a reaction at equilibrium.

To learn more about equalibrium
https://brainly.com/question/7243533

#SPJ4

in cell f12 enter a formula using a counting function to count numbers in the ordered column

Answers

Click the more functions icon under the function Library group on the formulas tab. Choose COUNT from the list under statistical by pointing to it. To pick cells F2 through F11, click and drag.

How may a formula be entered into a counting function?

The COUNT function is typically utilized to count the number of Excel cells or a number array. Example: You can type the following formula to count the numbers from A1 to A20: =COUNT(A1:A20).

In Excel, how can I count columns?

Click the column header only. The number of rows will be displayed in the status bar in the Excel window's lower right corner. the row selector at the left end of the row this time, then repeat the process to count the columns.

To know more about function visit:-

https://brainly.com/question/28358915

#SPJ4

he joint communications system includes rapid information sharing around the globe, which permits simultaneous, interactive planning. This contributes to (The Role of the Communication System, Page 4): [objective14] [Remediation Accessed :N]

Answers

Rapid information exchange around the world is included in the joint communications system. Planning can be done simultaneously and in real time with strategic agility.

What are C2's guiding principles?

Decentralized, adaptable, and dynamic describe C2. c. Mission directives and plans are succinct, and it is up to subordinate commanders' discretion and initiative to carry them out. The commander in charge of MAGTF activities decides which tasks require personal oversight while following instructions and what order they should be completed in.

What do joint communications systems of the JP 6.0 series serve?

It offers core guidelines and concepts for organizing, carrying out, and evaluating communications system support for joint operations.

To know more about information visit:-

https://brainly.com/question/13870219

#SPJ4

Display the Notes pane and add the note Give specific release date for each product to Slide 2. When you are finished switch to Notes Page view.

Answers

On the Design tab, click. Select the Background Format button. Click Fill Pattern. In the fifth row, select the sixth option. Select the Blue, Accent 1 option by clicking the Foreground button arrow.

In PowerPoint, how do I display the notes pane?

Click Normal under the View menu. Choose the slide's thumbnail to begin adding remarks. Your slide will show up below the notes pane.

What does PowerPoint's slide pane do?

The slide thumbnail pane is located on the left edge of the PowerPoint window when in Normal (editing) view. You can quickly transition from one slide to another or between the slide.

To know more about Design visit:-

https://brainly.com/question/14035075

#SPJ4

hi is it possible to copy a section from one webpage to another on the same account? i have a working copy that i test out changes for before putting it on the live site and i would prefer not to recreate all the steps on the live site.

Answers

Yes, it is possible to copy a section from one webpage to another on the same account.

How to copy a section from one webpage to another?

One way to do this is to access the HTML code of the webpage you want to copy the section from and then paste it into the HTML code of the webpage you want to copy it to.

This can be done by using a web development tool such as the browser's developer tools. Another way to do this is to use a content management system that allows you to copy and paste sections or templates across pages.

To learn more about Webpage, visit: https://brainly.com/question/28431103

#SPJ4

Which of the following statement(s) would successfully delete all of the employees with the title IT Staff from the employee table?
A. DELETE FROM employee;
B. DELETE FROM employee
WHERE title = IT Staff;
C. DELETE FROM employee
WHERE title = 'IT Staff';
D. DELETE FROM employee
WHERE employee_id = 'IT Staff';

Answers

DELETE FROM employee WHERE title = 'IT Staff';  statement(s) would successfully delete all of the employees with the title IT Staff from the employee table.

Option C is correct.

What is a worker's table?

Every employee is identified by an employee number and basic personnel data are listed in the employee table.

What exactly are DB employee details?

A digital record of both current and former employees is known as an employee database. Contact information, job titles, payroll data, and other employment-related data are examples. The database can be used to manage other human resources functions, identify potential training requirements, and track employee performance.

What's the significance of employee data?

Managers gain a lot from accurate employee data because it gives them an objective view of an employee's work history. Managers are able to carry out their administrative responsibilities more effectively when the information regarding an employee's time spent at the company is regularly updated and evaluated.

Learn more about employee table:

brainly.com/question/29508002

#SPJ4

4. A shop is having a five-day sale. on Monday, the price will drop by previous day's price. For example price of a product is $20, then the Monday would be $18 (that's 10% original price), and on Tuesday it (that's 10% less than Monday's p Develop a solution that will calcul item for each of the five days, giv price. Test the solution for an item points) Your solution should include: -PAC -Algorithm You will need a "for loop" that iterates each iteration, the item price will be u the sale amount.​

Answers

To iterate through a sequence, use a for loop. This functions more like an iterator method seen in other object-oriented programming languages than it does like the for keyword found in other programming languages.

What is the for loop in Python?

To iterate through a sequence, use a for loop.

This functions more like an iterator method seen in other object-oriented programming languages than it does like the for keyword found in other programming languages.

Every item in a list, tuple, set, etc. can have a different set of statements run once using the for loop.

Example

Print the following for every fruit in a list of fruits:

For x in fruits, print fruits = ["apple," "banana," and "cherry"]

A pre-set indexing variable is not necessary for the for loop.

Via a String, a Loop

Since strings contain a series of characters, they too are iterable objects:

Example

"Banana" is formed by a looping series of its letters:

"banana" for x: print.

To Learn more About for loop refer To:

https://brainly.com/question/19706610

#SPJ1

In HTML, these do not display on their own lines in browsers.
A. block elements
B. inline elements
C. both a and b
D. none of the above

Answers

These elements are located in the middle of the periodic table, where electrons fill them one at a time.

The periodic table is a diagram that shows the known chemical elements in ascending atomic number order from top to bottom and left to right. There are now 118 recognized elements. These components are divided into 4 distinct "blocks." Alkali (group 1) and alkaline earth metals (group 2) are the first two groups on the left of the periodic table that make up the s-block. Here, the s-orbitals are successively filled. Groups 13–18 (excluding helium) are part of the p-block. These elements can be found on the right side of the periodic table, where their p-orbitals are sequentially filled with electrons. Groups 3–12, also referred to as the transition metal series, make up a block. These elements are located in the middle of the periodic table, where electrons fill them one at a time.

Learn more about Blocks here:

https://brainly.com/question/3984165

#SPJ4

How to fix the profiles of members who are outside your network have limited visibility. to access more member profiles, continue to grow your network?

Answers

It usually says to connect to people closer to this person so that you can connect with them when you try to click on their profile.

This indicates that they are farther away than third connections. Toggle your profile picture. Select Settings, Visibility, then Edit Your Public Profile from the menu. Toggle Your profile's public visibility to Off to make it invisible to the public. To make certain options invisible, toggle them to Off so they aren't displayed in your public profile. A condensed version of your LinkedIn profile is visible on your public profile. You can establish restrictions on how much of your profile information can be displayed by modifying the public profile settings.

Learn more about connections here-

https://brainly.com/question/14327370

#SPJ4

draw a diagram of fetch /decode/execute/interupt

Answers

Answer:

Explanation: Here you go

Kimberly is trying to understand which of her devices and apps can collect information about her location.
Which of the following statements is true?
a. The search engine could show an advertisement next to the search results for "Terra Mystica", a strategy board game.
b. None of the above
c. Disabling third-party d. cookies in browser

Answers

None of the statements claims concerning Kimberly attempt to identify which of her gadgets and applications are capable of tracking her position.

What geographical information can the app store?

While the user has their phone with them, the app can record every area they visit. Concerns concerning the security of smart home goods (such smart home assistants or smart thermostats) have grown in popularity in recent years.

What information about a user's surfing habits may the analytics website store?

They have the ability to keep track of all the websites a person has visited that include their cookie. The search engine may offer articles from the news sources a better rating if the search results include news articles.

To know more about statements visit:-

https://brainly.com/question/18591190

#SPJ4

utilities allow parents to set a variety of limits on their
children's internet usage.
Defragmentation
Firewall
Encryption
Parental control

Answers

Utilities allows parents to set a variety of limit on their children's internet usage.

These utilities are known as parental controls. These are the features that help in monitoring of persons activity on he net. Also then restricting the persons activity.

These programs or software block and filter the harmful sites. Put a time limit on the usage of internet. Recording and reviewing of the child internet history.

It is done to protect the child from the harmful impact of the internet. Like adult content, dark web, harmful person etc. Thus parental control is used.

To know more about the topic please click here.

https://brainly.com/question/27524451

when one computer or piece of software makes a request for information to another computer or piece of software, and the second sends back to the first either the requested information or a message saying the information is not available, we have an illustration of in action.

Answers

This is an example of a client-server architecture. In this architecture, the first computer or software is known as the client, and the second computer or software is known as the server.

What is computer?
Computer is an electronic device that processes data according to a set of instructions and performs calculations, logical operations and other operations to produce useful output. It is used to store, retrieve, manipulate and communicate data. It is used in a wide range of applications, such as controlling industrial machinery, processing financial data and simulating scientific experiments. It has revolutionized the way we work and live by making information readily available and enabling faster decision making. Computer also offers many advantages such as faster communication, easier data processing and increased productivity. It has become an integral part of modern life and is used by businesses, government and individuals in almost every field.

To learn more about computer
https://brainly.com/question/23275071

#SPJ4

A computer or other digital equipment receives instructions from software, which is a set of programs or instructions. It is a group of lines of code assembled into an executable program or application using a particular programming language.

System software and application software are the two primary divisions of software. The system software includes the operating system, device drivers, and other tools required for the computer to operate properly. On the other hand, application software consists of programs created to carry out certain activities or functions, such as word processing, database management, or graphic design.

Software is continuously evolving and improving as technology improves, and it is necessary for computers and other digital devices to accomplish important functions. The software comes in a wide variety of forms, from open-source programs that are freely accessible to proprietary software owned and managed by a particular business or person.

to learn more about software from given link https://brainly.com/question/1022352

#SPJ4

You are given an array arr] of size n. You have to convert the array into a non-decreasing array. You can only remove numbers from the ends of the array. Which of the sets of operations will result in arr being sorted?arr[7]−{4,3,3,8,4,5,2}O Remove 4,3,3,8 from the beginning of the array. O Remove 8,4,5,2 from the end of the array. O Remove 4 from the beginning of the array and 4,5,2 from the end of the array. O None of the above

Answers

To convert the array into a non-decreasing array, Remove 4 from the beginning of the array and 4,5,2 from the end of the array.

What is an array?

An array is a collection of connected data elements that are kept close to one another in memory. It is the most fundamental data structure because the only way to access each data element directly is by using its index number.

For example, it's not necessary to define unique variables for every subject. if we want to keep track of a student's grades in five different subjects. Instead, we can create an array to keep the data elements close to one another in memory.

A student's grades in five different subjects are indicated by an array mark, with the grades for each subject being listed at a particular location in the array.

Learn more about data elements

https://brainly.com/question/18761322

#SPJ4

if you were to notice a containment hierarchy with the root jframe on the one hand, or japplet, on the other hand, which of the following would help you distinguish between the two?

Answers

The main difference between a JFrame and a JApplet is that a JFrame is a top-level window with a title and a border, while a JApplet is a special type of Java program that runs within a web browser.

What is web browser?

A web browser is a software application used to access the World Wide Web. It allows users to view webpages, images, video, and other digital media on the internet. Web browsers also allow users to interact with websites through the use of forms, scripts, and other web technologies.

A JFrame is typically used for applications, while a JApplet is used for applets that are accessed from a web page. Furthermore, JFrame has several components such as a menu bar, content pane, and layered pane, while a JApplet does not.

To learn more about web browser
https://brainly.com/question/22650550
#SPJ4

Which of the following is the last connection made when jump-starting a vehicle with jumper cables

Answers

The statement above about how jumpstarting is done by connecting a battery to another battery via jumper/booster cables.

Why is this statement true?

As we know that when a car is in need of a jump-start, it means that the battery of the car is weak or discharged.

The proper charge has been supplied by the battery has been needed to the ignite the engine so the proper battery will then need to be connected. This can be done by use of jumper or booster cables. Once the engine starts, it has been can then charge the weak/ discharged battery.

Thus,The statement above about how jumpstarting is done by connecting a battery to another battery via jumper/booster cables.

Learn more about engine on:

https://brainly.com/question/14094488

#SPJ1

One way to avoid sending an unprofessional email to an instructor is to use ______.
A. emoticons
B. proper grammar
C. colorful fonts
D. slang

Answers

Answer:

B proper grammar

Explanation:

Using proper grammar makes an email more professional

write a void method named mymethod which prints im a void method! (without the quotes). your method should be declared public and static. you can call your method in the programs main method so you can test whether it works, but you must remove or comment out the main method before checking your code for a score.

Answers

public static void mymethod() {

   System.out.println("I'm a void method!");

}

Here is an example of how you could call the method in the main method to test it:

Copy code

public static void main(String[] args) {

   mymethod();

}

Please make sure to remove or comment out the main method before checking your code for a score.

A style that is based more on elaborate toprock, downrock, and/or freezes.
a.
power
b.
Blow-up
c.
Flavor
d.
Abstract

Answers

Answer:

c. Flavor

Explanation:



In the context of dance, "Flavor" is a style that is based more on elaborate toprock, downrock, and/or freezes. It is characterized by fancy footwork and a lot of movement, and is often seen as a more playful or artistic style of dance.

Power is a style that is characterized by its strength and athleticism, which often involves acrobatic and gymnastic movements.

Blow-up is a term used in breaking (breakdancing) to describe a moment when a dancer performs an impressive move or series of moves that often leaves the crowd amazed.

Abstract is a term used to describe a style of dance or choreography that is experimental and may not conform to traditional forms or techniques. It is often characterized by non-narrative movement and a focus on the exploration of movement for its own sake.

JavaDefine a class named Money whose objects represent amounts of U.S. money. The class should have two instance variables of type int for the dollars and cents in the amount of money. Include a constructor with two parameters of type int for the dollars and cents, one with one constructor of type int for an amount of dollars with zero cents and a no-argument constructor. Include the methods add and minus for addition and subtraction of amounts of money. These methods should be static methods, should each have two parameters of type Money, and return a value of type Money. Include a reasonable set of accessor and mutator methodsas well as the methods equals and toString. Write a test program for your class.Sample OutputEnter·dollar:101Enter·cents:01$101.01Enter·dollar:99Enter·cents:99$99.99addition:$201.00subtraction:$1.02Sample OutputEnter·dollar:5Enter·cents:50$5.50Enter·dollar:8Enter·cents:40$8.40addition:$13.90subtraction:$2.90Sample OutputEnter·dollar:3Enter·cents:10$3.10Enter·dollar:2Enter·cents:99$2.99addition:$6.09subtraction:$0.11

Answers

A class in object-oriented programming is a template that defines the method s and variables in a certain type of object.

What is a class and object?

A class is a blueprint that specifies certain characteristics and actions. An instance of a class with certain attributes and behaviours is known as an object. Memory is not allotted to a class when it is defined. Memory is allotted to an item when it is formed. While objects are tangible things, classes are logical things.

A set of attributes and operations that apply to all objects of a particular type are defined. A class might be an automobile, for instance, with a colour field, four tyre fields, and a drive method. A truck is another closely related class that has some fields in common with cars but is not a perfect match. a group of learners who get together frequently to study the same subject.

To learn more about Class refer to :

https://brainly.com/question/28379867

#SPJ4

a video-streaming service maintains a database of information about its customers and the videos they have watched. the program below analyzes the data in the database and compares the number of viewers of science fiction videos to the number of viewers of videos of other genres. it uses the procedure analysis, open parenthesis, category, close parenthesis , which returns the number of unique users who viewed videos of a given category in the past year. the analysis procedure takes approximately 1 hour to return a result, regardless of the number of videos of the given genre. all other operations happen nearly instantaneously. the program consists of 9 lines. begin program line 1: one word sci fi fans, left arrow, analysis, open parenthesis, open quotation, science fiction, close quotation, close parenthesis line 2: one word genre list, left arrow, open bracket, open quotation, comedy, close quotation, open quotation, drama, close quotation, open quotation, mystery, close quotation, open quotation, romance, close quotation, close bracket line 3: for each genre in, one word genre list line 4: open brace line 5: if, open parenthesis, analysis, open parenthesis, genre, close parenthesis, greater than ampersand, one word sci fi fans, close parenthesis line 6: open brace line 7: display, open parenthesis, genre, close parenthesis line 8: close brace line 9: close brace end program. which of the following best approximates the amount of time it takes the program to execute? a. 1 hour b. 2 hours

Answers

2 hours is approximate amount of time, it will takes the program to execute. Thus, option B is correct.

What is Execute?

Execute is an action that instructs a computer to perform a specific task. It is the last step in the process of running a program, where the program is loaded into the computer’s memory and then executed to perform the desired task. The execution process involves the following steps: loading the program into memory, preparing the program for execution, executing the program, and finally cleaning up after the program has finished. In other words, execute is the process of interpreting a program’s instructions and converting them into actions that the computer can understand and carry out.

To know more about Execute

https://brainly.com/question/30141972

#SPJ4

Given a list of integers, count how many distinct numbers it has. This task can be solved in a single line. ( Python please.)


Example 1:

input: [1, 2, 3, 2, 1]


output: 3

Answers

Answer:

The solution in python to count the number of distinct integers in a list is using the set() function and the len() function.

Example:

input_list = [1, 2, 3, 2, 1]

output = len(set(input_list))

print(output) # 3

Explanation:

The set() function will remove any duplicates from the list, and the len() function will return the number of elements in the set, which will be the number of distinct integers in the input list.

Other Questions
Find a vector (u ) with magnitude 4 in the opposite direction as v =2,3 Give EXACT answer. You do NOT have to simplify your radicals!u = What reasons does the speaker provide to support his viewpoint or claim? If you would like to answer the other questions you may. Also it is about Patrick Henry "" Give Me Liberty Or Give Me Death"" speech What is Mr Shiftlet's full name?. What was Mrs Wright's name before her marriage?. how does seperation of church and government have the most impact on the modern world In the context of the text, how doe fear drive action? How doe popular opinion hape political policie? Do you think it i acceptable for the government to upend the right of citizen when in a tate of panic or emergency? Why or why not? Jenny and Joe are heterozygous for green eyes which is recessive. They have 5 children. What is the chance that all their children have green eyes? 4) Mr. Arian opened Arian's Carpet Cleaners on March 1, 2021 During March, the following transactions were completed Mar 1: Invested Br. 35,000 cash in a share of a business Mar. 1 Purchased used Truck (equipment) for Br. 6.000, paying, Br. 2,000 cash and the remaining balance on account Mar. 1 Purchased cleaning supplies for Br. 1.500 on account. Mar. St Paid i. 1.200 cash on one year insurance policy effective March Mar. 14. Billed customers Br. 4,800 for cleaning services. Mar. 18 Paid Br. 1.500 cash on amount owed on Truck and Br. 500 on amount owed on cleaning supplies. Mar 20: Paid Br. 7,000 cash for employee salaries, Mar. 21 Collected Br. 3,800 cash from customers billed on Mar. 28: Billed customers Dr. 2,500 for cleaning services, Mar 31: Paid advertising expenses of Br. 2000, Mar. 31: paid a dividend of Br. 3000, Requirements; 1) Journalize the March transactions. 2) Prepare necessary Ledger Accounts, 3) Prepare a Trial Balance at March 31 4) Journalize the following adjustments and prepare an adjusted Trial Balance: 1. 11. Earned but unbilled revenue at March 31 was Br. 1000. Depreciation on equipment for the month was Br. 200. One-twelfth of the insurance expired, An inventory count shows Br. 400 of cleaning supplies on hand Accrued but unpaid employee salaries were Br. 700. iv, V. 5) Prepare the worksheet 6) Prepare an income statement, a statement of owner's equity, and a statement of financial position. 7) Maintain the necessary closing entry. A trapezium ABCD is inscribed into a semi-circle of radius l so that the base AD of the trapezium is diameter and the vertices B and C lie on the circumference. Then the value of base angle (in degree) of the trapezium ABCD which has the greatest perimeter, is Answer for 41 points determine (a) the rectangular components of the three forces; and (b) the magnitude and direction of their resultant. locations that draw in guests for the natural areas around it and are comprised of multiple hospitality businesses are referred to as: The ratio of consonants to vowels in a word is 7:5.Are there more vowels or consonants in the word? Read the following quote on Japanee-American after the bombing of Pearl Harbor. Write one or two word to decribe what the quote i explaining a a rationale for Japanee Internment However, you may want to answer questions about your parents if:you are a health profession student (such as a medical or nursing student), oryour school requires parental information from all students. Tibet next incarnation Were you surprised by your results? Why or why not. Explain.I am a little surprised about my score being high so please say something along the lines of " I was a little surprised because my stress level is higher than i though" a client has a tentative diagnosis of primary biliary cirrhosis. which skin change would the nurse expect to observe when performing a physical assessment? What are the risk factors of these diseases?. Why did the narrator put money in the sadaqa