In this code, there's a Person class that has an attribute name, which gets set when constructing the object. Fill in the blanks so that 1) when an instance of the class is created, the attribute gets set correctly, and 2) when the greeting() method is called, the greeting states the assigned name. mtino 1-class Person: 2 - def __init__(self, name): self.name = def greeting(self): # Should return "hi, my name is " followed by the name of the Person. return Run 8 # Create a new instance with a name of your choice 9 some_person = 10 # Call the greeting method 11 print (some_person. ) 12 Press ESC to exit the code block at any time

Answers

Answer 1

Answer:

Explanation:

The following code is written in Python. It creates a Person class and creates the constructor which takes in the name of the person for that instance, as well as a greeting method which outputs the desired "Hi, my name is" string with the name of that person. The output of the code can be seen in the attached picture below. I have created a person object called John and called the greeting method so that you can see the output.

class Person:

   name = ''

   def __init__(self, name):

       self.name = name

   def greeting(self):

       print('Hi, my name is ' + self.name)

In This Code, There's A Person Class That Has An Attribute Name, Which Gets Set When Constructing The
Answer 2

The code containing the Person class definition and the greeting is found in the attached image

The Person class has a single instance field name that stores the name of the person.

The instance initializer, __init__, accepts an argument, name, and saves the value in the name attribute of the Person class.

The Person class also has a greeting method that is called by the main code segment. The main code segment creates a Person object, and calls it in the print function to display the greeting with the person's name.

Learn more about classes in Python here https://brainly.com/question/21065208

In This Code, There's A Person Class That Has An Attribute Name, Which Gets Set When Constructing The

Related Questions

state the function of a URL in a website​

Answers

Answer:

It's purpose is to access a webpage.

Explanation:

A URL contains detailed information on the webpage such as, the domain name, protocol, and path. This information directs the browser to the desired page.

General purpose application include all the following except

Answers

Answer: Web authoring

Explanation:

Here's the complete question:

General-purpose applications include all of the following except:

Select one:

a. web authoring

b. word processors

c. spreadsheets

d. database management systems

General purpose application refers to the application which can be used for different tasks. Examples of General purpose application are Spreadsheet, Word processors, Presentation software, Database management system etc.

The general purpose applications are quite different from the specialized application which focuses on a particular discipline. Therefore, the option that isn't a general purpose application is the web authoring.

General-purpose applications include all of the following except: web authoring. therefore option A is correct.

General-purpose applications are versatile software programs that can perform various tasks across different domains.

Word processors, spreadsheets, and database management systems are examples of general-purpose applications.

Word processors allow for creating and editing documents, spreadsheets help with organizing and analyzing data, and database management systems handle storing and managing data.

However, web authoring is not a general-purpose application. It is a specialized application focused on creating and designing websites. While it may have some general functionality, its primary purpose is specific to web development.

Therefore, the correct answer is "a. web authoring" as it is not considered a general-purpose application.

Know more about web authoring:

https://brainly.com/question/33531237

#SPJ6

Your question is incomplete, but most probably your full question was,

General-purpose applications include all of the following except:

Select one:

a. web authoring

b. word processors

c. spreadsheets

d. database management systems

Alani downloads a game called Kandy Krush from the app store. The app prompts her to enter her Social Security number (SSN) before playing. Alani asks her friend for advice. Which advice should her friend give

Answers

Answer:

"The game shouldn't need your SSN to be playable; don't enter it."

Explanation:

The game shouldn't need your SSN to be playable; don't enter it."

What is SSN?

A numerical identification code known as a Social Security number (SSN) is given to residents and citizens of the United States in order to track income and calculate benefits.

As a component of The New Deal, the SSN was established in 1936 to offer benefits for retirement and disability. The SSN was first created to track earnings and offer benefits. Today, it is also utilized for other things including tracking credit reports and identifying people for tax purposes.

In the US, people are required to provide their SSN in order to open bank accounts, apply for government benefits, get credit, make large purchases, and more.

Therefore, The game shouldn't need your SSN to be playable; don't enter it."

To learn more about SSN, refer to the link:

https://brainly.com/question/2040269?

#SPJ5

Advancements in technology often make computer
hardware and software more convenient to use as
well as able to fit a variety of budgets. As
technology advances, it usually gets
smaller and less expensive.
larger and more expensive.

Answers

Answer: smaller and less expensive.

Explanation:

As technology advances, the architects of the devices that we use are getting more efficient in the production of said devices such that they are using better materials and techniques in production.

This has led to a situation where devices are increasingly getting smaller in size and cheaper to afford as well. For instance, compare the computers of today to those of the 90's. We have laptops now which are really slim and cost a fraction of what the bulky computers of those days cost.

Consider the following statements, taken from three different Jack programs. In each one of these programs, the identifier foo represents a different thing: let x = 5 + foo - a // program 1. Here foo represents a simple variable. let y = foo[12] - 3 // program 2. Here foo represents an array. let z = 2 * foo.val() // program 3. Here foo represents an object. Suppose that we are parsing any one of these statements (we don’t know which), and that the current token is foo. What kind of parser do we need to determine if we have a simple variable, an array reference or a method call?

Answers

Answer:

instanceOf

Explanation:

The parser that would be best suited for this scenario would be the instanceOf keyword, which is part of the javaParser class. This keyword allows you to check if a variable is a simple variable, an array reference or a method call through an IF statement. If it is equal to the compared type it will return a boolean value of True, otherwise it will return False. This keyword is used in Java and Javascript to check the type of the variables in scenarios such as this one.

The process of making changes to an information system to evolve its functionality, to accommodate changing business needs, or to migrate it to a different operating environment is known as _____________ maintenance.

Answers

Answer:

Corrective

Explanation:

An information system interacts with the overall system by receiving data in its raw forms and information in a usable format.

Information system can be defined as a set of components or computer systems, which is used to collect, store, and process data, as well as dissemination of information, knowledge, and distribution of digital products.

Generally, it is an integral part of human life because individuals, organizations, and institutions rely on information systems in order to perform their duties, functions or tasks and to manage their operations effectively. For example, all organizations make use of information systems for supply chain management, process financial accounts, manage their workforce, and as a marketing channels to reach their customers or potential customers.

Additionally, an information system comprises of five (5) main components;

1. Hardware.

2. Software.

3. Database.

4. Human resources.

5. Telecommunications.

Corrective maintenance can be defined as the process of making significant changes to an information system in order to evolve or transform its functionality, to accommodate and tolerate continuously changing business needs, or to migrate it to a different (new) operating environment.

This ultimately implies that, a corrective maintenance is performed so as to rectify (repair) faulty equipments or systems and to restore an underperforming resource to an operational or optimum status.

SummaryIn this lab, you complete a partially written C++ program that includes a function named multiplyNumbers() that multiplies two int values to find their product.Three ints should be passed to the multiplyNumbers() function, the two numbers to be multiplied (num1 and num2) should be passed by value, and another int (product) to hold the product of the two numbers should be passed by reference, enabling the multiplyNumbers() function to change its value.The source code file provided for this lab includes the necessary variable declarations and input and output statements. Comments are included in the file to help you write the remainder of the program.Instructions:Open the source code file named MultiplyTwo.cpp using the code editor.Write the multiplyNumbers() function, the function declaration, and the function call as indicated by the comments.Execute the program by clicking "Run Code."Rewrite the multiplyNumbers() function to pass the two numbers (num1 and num2) by value and to pass product by address.Execute the program. It should generate the same output.// MultiplyTwo.cpp - This program calculates the product of two numbers.// It demonstrates pass by reference and then pass by address.// Input: None// Output: The product of two numbers#include using namespace std;// Write function declaration hereint main(){int num1 = 10;int num2 = 20;int product = 0;// Print value of product before function callcout << "Value of product is: " << product << endl;// Call multiplyNumbers using pass by reference for product// Print value of calculated productcout << num1 << " * " << num2 << " is " << product << endl;return 0;} // End of main function// Write multiplyNumbers function here; use pass by reference for result of multiplication. Then use pass by address.

Answers

Answer:

Declare the method prototype using:

void multiplyNumbers(int x, int y,int &product);

Call the function using:

multiplyNumbers(num1, num2,product);

Lastly, the method is as follows:

void multiplyNumbers (int x, int y,int &product) {

  product = x * y;

  return; }

Explanation:

Declare the method prototype using

void multiplyNumbers(int x, int y,int &product);

Call the function using

multiplyNumbers(num1, num2,product);

The method is as follows; the & written in front of product implies that product is passed by reference

void multiplyNumbers (int x, int y,int &product) {

This calculate the product

  product = x * y;

This returns nothing

  return; }

See attachment for complete program

According to the Gabriela Colman talk, one of the main hackers in Anonymous was a(n) ____________________ agent.

Answers

Answer: FBI agent

Explanation:

According to Gabriela Colman talk, 4chan was the imageboard that Anonymous was organized on. According to Gabriela Colman, Anonymous had many faces.

According to the Gabriela Colman talk, one of the main hackers in Anonymous was also a FBI agent.

A generic information systems planning methodology that identifies and defines IS development projects based upon solving operational business problems or taking advantage of some business opportunities defines:______.a. democratic planning.b. bottom-up planning.c. top-down planning.d. foundation planning.

Answers

Answer:

Option b (bottom-up planning ) is the correct approach.

Explanation:

This kind of planning gives clients additional emphasis to their program since a greater amount of individuals are participating, that every single person has its unique knowledge, which is termed as Bottom-up planning.it is always a positive thing promoting morality since it promotes the engagement of employees towards company strategy.

All other three alternatives aren't connected to the given query. So the above would be the correct solution.


Digital collaboration tools can ensure that clients are able to record their
requests or issues. This would be particularly important to people working in
which field?
A. Science and engineering
B. Customer service
C. Human resources
D. Internet and media

Answers

Answer:

Option B, Customer service

Explanation:

People working in customer service industry  continuously record their conversation with the customer for future references. These recordings are used to tally order placed, issue raised or help seeked so that maximum customer satisfaction can be ensured.

Hence, option B is correct

What is blockchain in detail?

Answers

Question

What is blockchain?

Answer

Blockchain is a system of recording information in a way that makes it difficult or impossible to change, hack, or cheat the system. It is essentially a digital ledger of transactions that is duplicated and distributed across the entire network of computer systems.

❄❄❄❄❄❄❄

hope this helps you !!

enjoy your day

◕ ◡ ◕

Describe FIVE distinct features of multi-threaded programming. Your answer should be language independent. g

Answers

Answer:

1) Execution time speed

2) Responsiveness

3) use of multi-processor architecture

4) sharing of resources

5) use of resources

Explanation:

The Distinct features are

1) Execution time speed : The time of execution in a multithreaded programming is lesser than a Non multithreaded programming which means the execution speed is faster

2) Responsiveness : Multithreaded programming languages are more responsive because every thread in the language is independent of others hence they can respond/generate responses based on its execution

3) Multithreaded programming makes use of multi-processor architecture given that each response from the threads are simultaneous

4) Ease in sharing of resources by the multiple threads found in the programming

5) Light weight of threads makes the need for resources by the threads in the programming language to be lesser when compared to other programming languages

1) SuperFetch is a memory-management technique that a) determines the type of RAM your system requires. b) makes the boot-up time for the system very quick. c) preloads the applications you use most into system memory. d) defragments the hard drive to increase performance.

Answers

Answer:

c

Explanation:

It preloads the apps and softwares that you use most into thr memory so that they can boot up faster.But it consumes more ram.

what would be the result of running these two lines of code


Ski

Surf

Jog

Hike

Answers

Answer:

Jog

Explanation:

The variable options is a list containing 5 string values

options = ["ski", "surf", "jog", "bike", "hike"]

Indexing in python starts from 0 ; hence the index values of the list values are :

0 - ski

1 - surf

2 - jog

3 - bike

4 - hike

The statement ;

print(options[2]) means print the string at index 2 in the list named options

The string at index 2 is jog ;

Hence, the string jog is printed.

A network engineer is troubleshooting a newly deployed wireless network that is using the latest 802.11 standards. When users access high bandwidth services such as streaming video, the wireless network performance is poor. To improve performance the network engineer decides to configure a 5 Ghz frequency band SSID and train users to use that SSID for streaming media services. Why might this solution improve the wireless network performance for that type of service

Answers

Answer:

it will make the wireless network faster and it is a performance network i am pretty sure.

Explanation:

write a program to input a character (ch)convert the character into its opposite case. print the entered character in the new character the program should reject if the elector entered is not an alphabet A to z or a to z your program should continue as long as the user wants.
[tex]write \: in \: java [/tex]

Answers

Answer:

import java.util.Scanner;  

import java.lang.*;

class Main {

 public static void main(String[] args) {

   boolean exit = false;

   Scanner reader = new Scanner(System.in);

   while(!exit) {

     char c = '?';

     while( !Character.isLetter(c)) {

       System.out.print("Enter a letter or * to exit: ");

       c = reader.next().charAt(0);

       if (c == '*') {

         exit = true;

         break;

       }

       if (!Character.isLetter(c)) {

         System.out.printf("Error: %c is not a letter!\n", c);

       }

     }

     if (Character.isLowerCase(c)) {

       System.out.printf("%c in uppercase is %c\n", c, Character.toUpperCase(c));

     } else if (Character.isUpperCase(c)) {

       System.out.printf("%c in lowercase is %c\n", c, Character.toLowerCase(c));

     }

   }

   reader.close();

 }

}

Explanation:

I decided to use the asterisk (*) as exit character.

What are the characteristic features of TFTP?

Answers

Answer:

TFTP Server is used for simple file transfer

Explanation:

Example

boot-loading remote devices

what are the process of boots up a computer?​

Answers

Answer:

The process of boot-up a computer are: Power On, POST, Load BIOS, Operating system load, and transfer of control to the OS.

Answer:

» Switch on the power from the power source.

» The power supply sends electric signals to the motherboard.

» The BIOS performs the POST ( Power On Self Test)

» The CMOS chip loads configurations in the RAM

» The kernel of the operating system loads files in the hard disk.

» The operating system loads the welcome screen, where the computer varifies the user to see if he or she is a legitimate user through a password.

» Load the desktop.

Write an algorithm to sum to values

Answers

Answer:

There is no need to make an algorithm for this simple problem. Just add the two numbers by storing in two different variables as follows:

Let a,b be two numbers.

c=a+b;

print(c);

But, if you want to find the sum of more numbers, you can use any loop like for, while or do-while as follows:

Let a be the variable where the input numbers are stored.

while(f==1)

{

printf(“Enter number”);

scanf(“Take number into the variable a”);

sum=sum+a;

printf(“Do you want to enter more numbers? 1 for yes, 0 for no”);

scanf(“Take the input into the variable f”);

}

print(Sum)

Explanation:

hi there answer is given mar me as brainliest

Array unsortedArr contains an unsorted list of integers.
Array sortedArr contains a sorted list of integers.

Which of the following operations are NOT more efficient for sortedArr than unsortedArr? Assume the most efficient algorithms are used.

I. Searching for a given element
II. Finding the minimum
III. Inserting an element

a. Ill only
b. Il only
c. I only
d. I and II
e. I and III

Answers

Answer:

a. Ill only

Explanation:

This is because, for option III, in inserting an element, one only need the array key for the position in which to insert the element and this is irrespective of whether the array is sorted or not.

Whereas, options I and II are easier done in a sorted array than in an unsorted array.

Write a function that accepts a positive random number as a parameter and returns the sum of the random number's digits. Write a program that generates random numbers until the sum of the random number's digits divides the random number without remainder. assembly language

Answers

Answer:

Explanation:

The following Python program has a function called addDigits which takes a number as a parameter and returns the sum of the digits. Then the program creates a loop that keeps creating random numbers between 222 and 1000 and divides it by the value returned from the function addDigits. If the remainder is 0 is prints out a statement and breaks the loop, ending the program. The picture below shows the output of the program.

import random

def addDigits(num):

   sum = 0

   for x in str(num):

       sum += int(x)

   return sum

sum = addDigits(random.randint(222, 1000))

while True:

   myRandomNum = random.randint(2, 99)

   if (sum % myRandomNum) == 0:

       print("No remainder between: " + str(sum) + " and " + str(myRandomNum))

       break

Which model represents any process in general?
O A.
universal
OB.
transactional
O C.
linear
OD.
flowchart
OE.
interactive

Answers

Answer: A. universal

Explanation: correct on Plato

Demonstrate the register addressing mode for the following instructions. Also what addressing mode belongs to these instructions?

1. MOV CX, [BX+DI]
2. MOV AX, ARRAY[CX]
3. MOV BX, [CX+DI+6]

Answers

Answer:

Demonstrate the register addressing mode for the following instructions. Also what addressing mode belongs to these instructions?

1. MOV CX, [BX+DI]

2. MOV AX, ARRAY[CX]

3. MOV BX, [CX+DI+6]

A shop will give discount of 10% if the cost of purchased quantity is more than 1000. Ask user for quantity suppose, one unit will cost 100. Judge and print total cost for user. Plz give answer in C++.

Answers

Answer:

The program in C++ is as follows:

#include <iostream>

using namespace std;

int main(){

   int qty;

   float discount = 0;

   cout<<"Quantity: ";

   cin>>qty;

   int cost = qty * 100;

[tex]i f (cost > 1000)[/tex] {        [tex]discount=cost * 0.10[/tex];        }

   cout<<"Cost: "<<cost - discount;

   return 0;

}

Explanation:

This declares the quantity as integer

   int qty;

This declares and initializes discount to 0

   float discount = 0;

This prompts the user for quantity

   cout<<"Quantity: ";

This gets input for quantity

   cin>>qty;

This calculates the cost

   int cost = qty * 100;

If cost is above 1000, a discount of 10% is calculated

[tex]i f (cost > 1000)[/tex] {        [tex]discount=cost * 0.10[/tex];        }

This prints the cost

   cout<<"Cost: "<<cost - discount;

Write an application that determines whether the first two files are located in the same folder as the third one. The program should prompt the user to provide 3 filepaths. If the files are in the same folder display All files are in the same folder, otherwise display Files are not in the same folder.

Answers

Answer:

The program in Python is as follows:

fname1 = input("Filepath 1: ").lower()

fname2 = input("Filepath 2: ").lower()

fname3 = input("Filepath 3: ").lower()

f1dir = ""; f2dir = ""; f3dir = ""

fnamesplit = fname1.split("/")

for i in range(len(fnamesplit)-1):

   f1dir+=fnamesplit[i]+"/"

fnamesplit = fname2.split("/")

for i in range(len(fnamesplit)-1):

   f2dir+=fnamesplit[i]+"/"

fnamesplit = fname3.split("/")

for i in range(len(fnamesplit)-1):

   f3dir+=fnamesplit[i]+"/"

if f1dir == f2dir == f3dir:

   print("Files are in the same folder")

else:

   print("Files are in the different folder")

Explanation:

The next three lines get the file path of the three files

fname1 = input("Filepath 1: ").lower()

fname2 = input("Filepath 2: ").lower()

fname3 = input("Filepath 3: ").lower()

This initializes the directory of the three files to an empty string

f1dir = ""; f2dir = ""; f3dir = ""

This splits file name 1 by "/"

fnamesplit = fname1.split("/")

This iteration gets the directory of file 1 (leaving out the file name)

for i in range(len(fnamesplit)-1):

   f1dir+=fnamesplit[i]+"/"

This splits file name 2 by "/"

fnamesplit = fname2.split("/")

This iteration gets the directory of file 2 (leaving out the file name)

for i in range(len(fnamesplit)-1):

   f2dir+=fnamesplit[i]+"/"

This splits file name 3 by "/"

fnamesplit = fname3.split("/")

This iteration gets the directory of file 3 (leaving out the file name)

for i in range(len(fnamesplit)-1):

   f3dir+=fnamesplit[i]+"/"

This checks if the file directories hold the same value

This is executed, if yes

if f1dir == f2dir == f3dir:

   print("Files are in the same folder")

This is executed, if otherwise

else:

   print("Files are in the different folder")

The term ________ refers to the use of a single unifying device that handles media, Internet, entertainment, and phone needs. Group of answer choices

Answers

The term [tex]\sf\purple{digital \:convergence}[/tex] refers to the use of a single unifying device that handles media, internet, entertainment, and phone needs.

[tex]\large\mathfrak{{\pmb{\underline{\red{Happy\:learning }}{\orange{.}}}}}[/tex]

Where do I look for a deep learning mentor who can assist me in my career?​

Answers

The answer:

You have to pay for it man!

Explanation:

You can find a lot of services from Fiverr and Upwork etc. But that would need to pay a lot for it.

a) Which two technologies you would suggest to making tolling process fast?

Answers

Phone and computer yea yea lil baby

write down the multiples of three from 474 to 483​

Answers

Answer:

474, 477, 480, 483

hope this helps

have a good day :)

Explanation:

In the header element, insert a navigation list containing an unordered list with the items: Home, Race Info, and FAQ. Link the items to the dr _index.html, dr_info.html, and dr_ faq.html files respectively.
Home
Race info
FAQ

Answers

Answer:

Explanation:

The following is a barebones HTML document that contains the Unordered List inside the header tag as requested. The list items are also wrapped around links so that they link to the requested pages and take you there when they are clicked. These html files need to be in the same folder as this code in order for it to take you to those pages. The code can be seen below.

<!DOCTYPE html>

<html>

<head>

<ul>

   <li><a href="dr _index.html">Home</a></li>

   <li><a href="dr_info.html">Race Info</a></li>

   <li><a href="dr_ faq.html">FAQ</a></li>

</ul>

</head>

<body>

</body>

</html>

Other Questions
HELP!The piston of an internal combustion enginecompresses 218 mL of gas. The final pressureis 15 times greater than the initial pressure.What is the final volume of the gas, assumingconstant temperature?Answer in units of mL. Plz help me well mark brainliest if correct (6x2 -5x + 10) - (2x2 -x +13) What is the difference between autofocus and autocomplete explain two ways in which responsible citizens could bring about awareness on the negative impact of gender based violence on the victims Which statement below is true about the main idea?A) The main idea is what the paragraph is about.B) The main idea is always the last sentence of a paragraph.C) The main idea is a detail in the paragraph.D) The main idea is the authors opinion decimal multiplication:3.7x1.6 Describe the transformation of f(x) to g(x).A. f(x) is shifted down units to g(x).B. f(x) is shifted up units to g(x).C. (x) is shifted up 2 units to g(x).D. f(x) is shifted down 2 units to g(x). Solve for the given variable.88+46=6c + 4 What was the Mayflower Compact, and the House of Burgesses? Why were these significant to American History? Reflecting the gender stereotypes of his age group, 4-year-old Youssef is likely to say that:__________A) it is OK for boys to dress up in skirts or jewelry. B) girls cannot be doctors or police officers.C) girls can grow up to be anything they want to be.D) it is OK if boys want to play with dolls. leo le debe 15.00 pesos. Si su madre le da 60.00 pesos de paga y se gasta 20.00 con sus amigos cuanto dinero le queda?tendr pendiente alguna deuda? "This book is a warning to the living that atrocities like the Holocaust can happen and will happen again if we are not vigilant" is an example of which of the following: What is this one pls pls pls Someone please help! Find the value of x. Please help!!!! Help plz..And No links!! I repeat No links!! Simplify the expression. Write your answer in positive exponent form: (9^3) ^3 What are Isabelle from step sisters Character traits, qualities, likes, dislikes Please help. It would mean a lot to me if you guys answered this!