answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mrs_skeptik
12 days ago
8

Your reputation and credibility will be immediately destroyed if your website contains?

Computers and Technology
You might be interested in
What ""old fashioned"" features of checking accounts is p2p replacing
zubka84 [1067]

Answer:

Bank or wire transactions and ATM cash withdrawals

Explanation:

With peer-to-peer options like PayPal and Venmo, there's significantly less need to handle cash, particularly when transferring between individuals.

If only one option is to be chosen, I would prefer "ATM Cash Withdrawals."

3 0
1 month ago
The parent_directory function returns the name of the directory that's located just above the current working directory. Remembe
Amiraneli [1052]

Answer:

Below is the complete code for this question:

import os #importing package

def parent_directory():#defining method parent_directory

   dir = os.getcwd()#storing current working directory in dir

   relative_parent = os.path.join(dir) #from dir, define relative_parent variable using join method

   return os.path.dirname(relative_parent)#return the directory name using return keyword

print(parent_directory())#use print to invoke parent_directory method

Output:

/

Note:

This program executes in an online compiler, hence it returns "/"

Explanation:

The provided Python code imports the "os" package, after which it defines a method called "parent_directory" that uses the variable dir to store the current working directory through the "getcwd" method.

  • Next, the variable "relative_parent" is defined, using the join method to store the directory value and returning its value.
  • Lastly, the print function is called to output the method's result.
6 0
2 months ago
Question _.1 with 1 blankMiguel y Maru están muy cansados. Question 2 with 1 blankFelipe es muy joven. Question 3 with 1 blankJi
maria [1035]
Miguel and Maru are extremely tired. - Felipe is incredibly young. - Jimena is very smart. - Marissa's mother is very happy. - I am super bored.
8 0
1 month ago
You would like to conduct a survey and ask your web page visitors to indicate the computer operating systems that they use. Each
8_murik_8 [964]
A check box, also known as a selection box or tick box, is a small interactive element that allows a user to indicate a yes or no response. It is commonly utilized in **HTML forms**, dialog boxes, and graphical user interfaces. When selected, a check mark appears within the box, indicating a yes response, which disappears upon clicking again, showing a no response.
6 0
1 month ago
Write a copy assignment operator for CarCounter that assigns objToCopy.carCount to the new objects's carCount, then returns *thi
Natasha_Volkova [1026]

Answer:

This is the implementation of the copy assignment operator for CarCounter:

CarCounter& CarCounter::operator=(const CarCounter& objToCopy) {

carCount = objToCopy.carCount;

return *this;  }

The syntax for a copy assignment operator is:

ClassName& ClassName:: operator= ( ClassName& object_name)

In this code snippet, the class name is CarCounter, and the object being copied is objToCopy.

The assignment operator = is invoked to transfer objToCopy.carCount to the carCount of the new instance.

This operator is utilized when an initialized object receives a new value from another active object.

Then return *this returns a reference to the invoking object.

Explanation:

The complete program looks like this:

#include <iostream>  // for input/output functions

using namespace std;   // enables access to objects like cin cout

class CarCounter {  // defining the class

public:  // public member functions of CarCounter

CarCounter();  // constructor for CarCounter

CarCounter& operator=(const CarCounter& objToCopy);  // copy assignment operator for CarCounter

void SetCarCount(const int setVal) {  // method to set the car count value

carCount = setVal;  } // assigns setVal to carCount

int GetCarCount() const {  // method to access carCount

return carCount;  }  

private:  // private members of the class

int carCount;  };    // private data member of CarCounter

CarCounter::CarCounter() {  // constructor

carCount = 0;  // initializes carCount to zero in the constructor

return; }  

// FIXME implement copy assignment operator  

CarCounter& CarCounter::operator=(const CarCounter& objToCopy){

/* this copy assignment operator sets objToCopy.carCount to the new object's carCount, then returns *this */

carCount = objToCopy.carCount;

return *this;}  

int main() {  // start of the main() function

CarCounter frontParkingLot;  // creates CarCounter instance

CarCounter backParkingLot;   // creates another CarCounter instance

frontParkingLot.SetCarCount(12);  // sets the value of carCount in frontParkingLot to 12

backParkingLot = frontParkingLot;  // assigns frontParkingLot's value to backParkingLot

cout << "Cars counted: " << backParkingLot.GetCarCount();  // retrieves and prints the value of carCount using GetCarCount

return 0;  }

The program outputs:

Cars counted = 12

3 0
2 months ago
Other questions:
  •  How does critically analyzing technology add value to interactions with people in personal and professional contexts?
    9·2 answers
  • In this project, you’ll create a security infrastructure design document for a fictional organization. The security services and
    9·1 answer
  • According to the author, there are five hedging strategies organizations can pursue. One of them is: Select one: a. commit with
    5·1 answer
  • Brendan is examining a report using the Design view. Which section in the Design view is going to appear only once on the first
    13·1 answer
  • If Mark is developing a website to be optimized for mobile devices, what would be the top-level domain?
    10·1 answer
  • Write a function called sum_scores. It should take four arguments, where each argument is the team's score for that quarter. It
    6·1 answer
  • Write a program that prompts the user to enter 50 integers and stores them in an array. The program then determines and outputs
    14·1 answer
  • ​<br><br> Access from and output to the register is slow true false​
    5·1 answer
  • An administrator is investigating a failure on a trunk link between a Cisco switch and a switch from another vendor. After a few
    5·1 answer
  • Define a structure type auto_t to represent an automobile. Include components for the make and model (strings), the odometer rea
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!