Write a copy assignment operator for carcounter that assigns objtocopy.carcount to the new objects's carcount, then returns *this. sample output for the given program:cars counted: 12

Answers

Answer 1
Answer: int main() { CarCounter frontParkingLot; CarCounter backParkingLot; frontParkingLot.SetCarCount(12); backParkingLot = frontParkingLot; cout << "Cars counted: " << backParkingLot.GetCarCount(); return 0; }

Related Questions

A(n) _______________ loop usually occurs when the programmer forgets to write code inside the loop that makes the test condition false.

Answers

infinite





,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Final answer:

An infinite loop occurs when a loop's test condition is never made false due to the omission of changing the iteration variable within the loop's body. Effective loop design incorporates iteration variable changes or a break statement to prevent infinite loops.

Explanation:

A infinite loop usually occurs when the programmer forgets to write code inside the loop that makes the test condition false. In programming, particularly when using while-loops, the loop's body should modify the value of the iteration variable so that the looping condition eventually becomes false, allowing the loop to terminate. Without this modification to the iteration variable, such as in a simple loop where the condition is set to True, the loop will execute endlessly, resulting in what is known as an infinite loop.

For effective loop design, it's important to include a means of modifying the iteration variable within the loop's body or to use a break statement to exit from the loop when a certain condition is met. This ensures that the loop doesn't run indefinitely, avoiding potential program hang-ups or crashes. Infinite loops are sometimes deliberately used for situations where the duration of looping is not predetermined, but they require careful handling to ensure they can be exited appropriately.

Internet service providers​ (isp) need to resolve customer problems as quickly as possible. for one​ isp, past data indicates that the likelihood is 0.80 that customer calls regarding internet service interruptions are resolved within one hour. out of the next 10 customer calls about interrupted​ service, what is the probability that exactly 7 will be resolved within one​ hour?

Answers

I think that the likelihood will still be 0.8 as that means that 8 out of 10 calls will be resolved within one hour so the 7 out of 10 falls within that likelihood so therefore the callers can go by that assumption and be fairly confident that they have quite a high likelihood of having their problems resolved within one hour.

To solve this problem, we make use of the binomial probability formula. That is:

P = [n! / (n – r)! r!] p^r * q^(n – r)

where,

n is the total number of customer calls = 10

r is the number of resolved customer calls = 7

p is the probability of resolving in one hour = 0.80

q is 1 – p = 0.20

 

Therefore,

P = [10! / (10 – 7)! 7!] 0.80^7 * 0.20^(10 – 7)

P = 0.2013 = 20.13%

"write a program that reads two floating point numbers and prints their sum difference and product."

Answers

int main() { float a; float b; float sum; float difference; float product; printf("enter 2 numbers"); scanf("%f%f",&a,&b); sum= a + b; difference = a - b product =a*b; printf("\nsum: %f" , sum); printf("\ndifference: %f, difference); printf("\nproduct : %f, product ); }

What type of operating system allows two or more programs or apps to reside in memory at the same time?
a. multiprocessing
b. multiuser
c. preemptive multitasking
d. multitasking?

Answers

What type of operating system allows two or more programs or apps to reside in memory at the same time? Multitasking D: is the correct Answer

What feature could you use to automatically shade cells containing a negative value in red? A. Fill Color B. Orientation C. Conditional Formatting D. Sort & Filter

Answers

You could  use Conditional Formatting to automatically shade cells containing a negative value in red. Correct answer: C

This tool in excel is used for additional formatting options and colors, for exploring and analyzing data, detecting critical issues, and identifying patterns and trends.

________ software is used in a linux environment to mount and write data only to ntfs partitions.​

Answers

Before a user can access a file on a Unix-like machine( or linux), the file system that contains it needs to be mounted with the mount command.mounting NTFS partitions is a bit complicated. This involves installation of addition software such as fuse and ntfs-3g. In both cases you probably need to use package management tool such as yum, apt-get, synaptic etc. and install it from standard distribution repository.

You have a unique id number, which is represented by the variable id, containing a string of numbers. write a program that continuously takes strings to standard input. if the string is not your id number, print "this is not your id number." if it is, print "this is your id number: " followed by the number, and terminate the loop.

Answers

idNumber = "123456"
idNo = input("Enter the unique ID number: ")
while idNumber != idNo:
print("This is not your ID number.")
idNo = input("Enter the unique ID number: ")
print("This is your ID number: ", idNo)

Output:

sh-4.3$ python3 main.py                                                                                                                                                                                                                                                

Enter the unique ID number: 2345                                                                                                                                                                                                                                       

This is not your ID number.                                                                                                                                                                                                                                            

Enter the unique ID number: 4563                                                                                                                                                                                                                                       

This is not your ID number.                                                                                                                                                                                                                                            

Enter the unique ID number: 12345                                                                                                                                                                                                                                      

This is not your ID number.                                                                                                                                                                                                                                            

Enter the unique ID number: 123456                                                                                                                                                                                                                                     

This is your ID number:  123456

To print a unique ID number which is represented by a variable and it contains string of numbers . For this, first declare the unique ID then create a variable that take inputs from the keyboard. After this, create a loop that will match with your unique number (ID). Lastly, display a message if ID is matched then print ‘This is your ID number’ and if it is not matched then print ‘This is not your ID number’.

Further Explanation:

Code:

The complete code in python language for the given problem is shown below:

# Your unique ID number

id = "12345"

# Enter the ID  number

number = input ("Enter an ID: ")

# Loop to match the ID number with input

while id !=number:

# Print the message

print ("This is not your ID number")

number = input ("Enter an ID: ")

print("This is your ID number:", number)

Output:

Run the commands in python, the output will be looking as below:

Enter the unique ID number: 24345

This is not your ID number

Enter the unique ID number: 1345                                                    

This is not your ID number

Enter the unique ID number: 12345  

This is your ID number

Enter the unique ID number: 35645                                                

This is not your ID number

Learn more:

1. A company that allows you to license software monthly to use online is an example of ? brainly.com/question/10410011  

2. Prediction accuracy of a neural network depends on _______________ and ______________. brainly.com/question/10599832  

Answer details:

Grade: College Engineering

Subject: Computer Science and Engineering

Chapter: Python Programming

Keyword:

Python, input, output, programming, statements, if-else, loops, print, scan. while, body, main body, char, int, variables, unique, ID number, match

What is the function of a programming language?
A) It makes it possible for users to easily customize game play to suit their interests
B) It tells computers what to do and allows communication through the Internet
C) It allows programmers from different countries to communicate on the job
D) It creates a standardized way for people in all stages of creation to discuss the game

Answers

Answer: its b

programming language

the language used to build the game that tells computers what to display and allows communication through the Internet

Explanation:

Final answer:

A programming language is a tool that allows programmers to give instructions to computers and enables communication through the Internet. It is used to write software programs and control the behavior of computer systems.

Explanation:

A programming language is a tool that allows programmers to give instructions to computers and enables communication through the Internet. It is used to write software programs and control the behavior of computer systems. For example, programming languages like Python, Java, and C++ are used to create applications, websites, and video games.

The optimum number of members in a small group is _____.

Answers

Answer: five to seven

Explanation: on odyssey the excerpt is: “Usually, the optimum number of members is between five and seven.”

When working in an office program, one of the first things that you need to do is create and save a _____.

Answers

...copy. This ensures that the project is, first and foremost, named, and also makes it easier to save later on (all you would need to do is press Ctrl-S).

You should code width and height dimensions for images because:

Answers

Images are 2 dimensional and need a width and a height to determine the size and resolution of such image

Udp is the only connectionless transport protocol true

Answers

False = SPX is also connectionless and so are many (older protocols) others.

What is most commonly used for the goal of nonrepudiation in cryptography?

a. pki

b. block cipher

c. secret key

d. digital signature?

Answers

i not sure but i think the is b. block cipher

Define a function setheight, with int parameters feetval and inchesval, that returns a struct of type heightftin. the function should assign heightftin's data member feet with feetval and inches with inchesval.

Answers

It is given that the feetVal and inchesVal are parameters of the SetHeight() function. Since the return type of the function is structute, so we need to define a structure.

After that, we need to create a structure variable within the function definition. Now, assign the feet and inches with the feetVal and inchesVal respectively. Finally return the structure variable.

Further explanation:

#include<stdio.h>

//define the structure

typedef struct HeightFtIn_struct {

int feet;

int inches;

} HeightFtIn;

//define the function

HeightFtIn SetHeight(int feetVal, int inchesVal)

{

HeightFtIn Htft; //creating a structure variable of type HeightFtIn

//assign the value of feetVal

Htft.feet = feetVal;  

Htft.inches = inchesVal; //assigning the value of inchesval

//return the structure variable

return Htft;

}

int main(void) {

HeightFtIn studentHeight;

int feet;

 int inches;

printf("Enter the values of feet and the inches: ");

scanf("%d %d", &feet, &inches);

studentHeight = SetHeight(feet, inches);

printf("The student's height is %d feet and %d inches.\n", studentHeight.feet, studentHeight.inches);

return 0;

}

Output:

Enter the values of feet and the inches: 5 9

The student's height is 5 feet and 9 inches.

Learn more:

1. A company that allows you to license software monthly to use online is an example of ? brainly.com/question/10410011  

2. How does coding work on computers?  brainly.com/question/2257971 

Answer details:

Grade: College Engineering

Subject: Computer Science

Chapter: C  Programming

Keyword:

C++, input, output, programming, statements,  loops, if, else, statements, firstname, lastname, base class, derive class, vector, print

PowerPoint presentations make use of pages known as 

Answers

it is well known as slides

the correct answer is slides

which of the following instances best incorporates the use of software on your computer

Answers

The instances that best incorporate the use of software on your computer are using Microsoft Word to create a poster. The correct option is C.

Input, processing, storage, output, and communication devices are the five main hardware components of a computer system. These components include the keyboard, mouse, printer, CPU, and so forth.

A computer case, also known as a computer chassis, is the casing that houses the majority of a personal computer's hardware. A device's component. It assists in bringing information to the computer by allowing the user to use keys like a keyboard to enter data and move through the system.

Which of the following instances best incopporates the use of software on your computer?

A. using your scanner to input information into your computer

B. Using your keyboard to type a letter

C. Using Microsoft Word to create a poster

D. Using a monitor to research famous artists

HELP! Answer to question 2?

Answers

One advantage of Binary Search Algorithm
Compared to Linear search it is much faster because linear search starts its searching right from the first value but binary searches for something by splitting the array in two again and again and again. 

One disadvantage of Binary Search Algorithm:
Have to be sorted, unlike linear search that doesn't have to be. 

What every software engineer should know about software architecture?

Answers

Every software engineer should be aware of not only what a system does but the quality of work that it delivers and if it fits the situations and the expectations. It concerns itself with designing the solutions that address quality attributes or what is nonfunctional requirements.

Answer:

OOP

Explanation:

__________ software helps the computer carry out its basic operating tasks.

Answers

System software is the answer.

A coaxial cable consists of alternating coaxial cylinders of conducting and insulating material. coaxial cabling is the primary type of cabling used by the cable television industry and is also widely used for computer networks such as ethernet, on a

Answers

The complete definition from where the question left it will be:

…On account of its better capability to convey huge quantity of electrical signal with least distortion. Like every other form of cables, however, coaxial cables also have some self-inductance that has unwanted effects, for example generating some distortion and heating etc.

Write the html to create a fragment identifier at the beginning of a web page designated by "top".

Answers

<p name="top"> This could be at the top of the page</p>

This is link could be at the bottom of the page and when clicked on it will take the user to the top of the page.
<a href="#top"> Go to top</a>

To create a fragment identifier at the beginning of a web page designated as "top," you can use an anchor tag with the id attribute set to "top." Here's the HTML code -

<a id="top"></a>

How to use this code

You can place this code at the desired location within the <body> section of your web page.

This creates an anchor point that can be used as a reference for linking or scrolling to the top of the web page using the fragment identifier "#top".

Learn more about html  at:

https://brainly.com/question/4056554

#SPJ2

Which is the correct formula to add the values in cells A1 and B1? A. SUM(A1+B1) B. =SUM(A1+B1) C. =SUMA1+B1 D. A1+B1

Answers

The answer to this question

is B

Out of the choices provided above, it can be concluded to state that the correct formula in Excel for adding the values in cells A1 and B1 is ''=SUM(A1+B1)''. Therefore, the option B holds true.

What is the significance of Excel formulae?

Excel formulae can be referred to or considered as the ones which can be entered into cells on the Excel-Sheets in order to perform different functions and commands. These formulae contain mathematical capacities, and are able to do complex calculations with ease.

Summation is a simple function in Excel, which can be performed using the SUM function. In order to perform this function, the user has to enter the =SUM(A1+B1) in the cell where he wants to derive the value of the summation of the both the cells A1 and B1.

Therefore, the option B holds true and states regarding the significance of Excel formulae.

Learn more about Excel formula here:

https://brainly.com/question/20497277

#SPJ6

While in slide show mode, if you are not careful you can close the application by clicking the x on the menu bar

True or false

Answers

this is def false because it will ask you if you would like to save it first!

Answer:

False!

Explanation:

Write a loop that asks the user "do you want to repeat the program or quit? (r/q)" . the loop should repeat until the user has entered an r or q (either uppercase or lowercase).

Answers

Here is the loop:for (int i = 0; i < S.length(); i++) {    if (S.charAt(i) == 'R' || S.charAt(i) == 'r' || S.charAt(i) == 'Q' || S.charAt(i) == 'q') ;    System.out.println(""do you want to repeat the program or quit? (r/q)"");}
If the user enter any of the characters in the if statement the user will be asked by the question.

Most licensing agencies offer an orientation meeting for applicants who want to obtain licensing for a child care facility or a family day care home. This meeting is designed to help the applicant to A. determine where to open his or her program. B. understand the fundamentals of the ages and states of child development. C. understand all the regulations and requirements for operating the facility. D. locate financial backers for his or her program.

Answers

The correct option is C.
Licensing agencies organised orientation meetings for those newly seeking day care facility license in order to educate  and familiarize them with the requirements that must be met and the laws and regulations that govern operating a day care facility. This orientation meeting usually equipped the participants with the information they need to succeed in the business.
C. Understand all the regulations and requirements for operating the facility.

If a thread is not finished running, perhaps because it had to wait or it was preempted, it is typically restarted on the same processor that previously ran it. what is this known as? cooperative multitasking multitasking processor affinity preemptive multitasking

Answers

If a thread is not finished running, perhaps because it had to wait or it was preempted, it is typically restarted on the same processor that previously ran it.  This is this known as processor affinity. 

Final answer:

Processor affinity refers to the policy of restarting a thread on the same processor it previously ran on. This is different from cooperative multitasking and preemptive multitasking, which are methods for managing multiple tasks.

Explanation:

When a thread is restarted on the same processor that it ran on previously, this concept is known as processor affinity. Processor affinity, also sometimes called core affinity or CPU pinning, is a scheduling policy where a process or a thread is bound to a specific central processing unit (CPU) or a range of CPUs. This can optimize the performance of a process by maintaining data within the CPU cache, reducing performance penalties due to cache reloading.

It is important to distinguish processor affinity from other types of multitasking. Cooperative multitasking is a method where processes voluntarily yield control periodically or when idle to enable multiple applications to be run simultaneously. On the other hand, preemptive multitasking allows the operating system to control the execution of tasks, deciding which task should be executed next and preempting tasks to ensure fair usage of CPU time.

A(n) ____ backup only archives the files that have been modified since the last backup.

Answers

The answer is incremental backup as this is the one responsible of having to provide a backup with files that are modified since the last backup it has received, it is considered to be a backup in which is a type of security copy.

Write a second converttoinches() with two double parameters, numfeet and numinches, that returns the total number of inches. ex: converttoinches(4.0, 6.0) returns 54.0 (from 4.0 * 12 6.0).

Answers

Answer:

Answer is in java language

Explanation:

I am writting the code with comments in lines that starts with "//".

//First write the method converttoinches having two input parameters

// 1st param numfeet

// second param numinches

// public is a access modifier in which this method can be accessed

// from any class

//double is a return type as we have both input param as double so the

// the return value will also be double as well

public double converttoinches(double numfeet, double numinches) {

// In programming languages any numeric value that is in parenthesis

// will execute first so as we want to multiple numfeet with 12 in order to

//get number of inches in feet and then add those values with //numinches

// return will send the result from this function to where its being called.

       return (numfeet * 12) + numinches;

   }

Answer:

public static double convertToInches ( double numFeet, double numInches ){

     return ((numFeet * 12.0) + numInches);

     }

Explanation:

You're creating a second method that has the same name. It's very similar to the one above it (see the picture attached) just changing the parameters and adding on + numInches to the end of the return statement.

Which two jobs have high demand need for practitioners( have a skill shortage)

Answers

Skill shortages exist in a company when there are not enough people with the needed skills to meet the demand of jobs. They are caused by many factors like there are not enough workers to do the work, some do not have the required skills, etc. 

Other than software engineers and developers, the other jobs in the world in need of practitioners are electronics engineers, mechanical engineers and nurses. They are the top 4 most-in demand jobs around the world. 

Tim is trying to explain to his aunt how her computer works, but she does not understand what a CPU does. Which description will most likely help Tim’s aunt understand the CPU’s role?
-The CPU guides the function of the hardware.
-The CPU stores data for the transfer of information.
-The CPU processes commands from software.
-The CPU translates operating system data

Answers

The CPU processes commands from software

Answer: The CPU processes commands from software.

Explanation:  CPU(Central processing unit) is the main unit for processing the commands that are obtained from program of computer. It contains the processing and control unit for performing tasks like arithmetic operations , I/O operations etc.

Thus, Tim should explain about CPU by stating it as the main processor for carrying out commands that are gained from software programs.

Other options are not appropriate as functioning of hardware is done by user as well through external commands, translation of data and data storage is done by other processing unit such as memory(e.g.-RAM).

Other Questions
Astrology is the science of studying the stars. True or false need help please Which reflection rule, if any, can be used to prove that rectangle A(-8, -3), B(-2, -3), C(-2, -6), D(-8, -6) and rectangle A'(8, -3), B'(2, -3), C'(2, -6), D'(8, -6) are congruent?A)(x, y) (-x, y)B)(x, y) (x, -y)C)(x, y) (-x, -y)D)The rectangles are not congruent. Which would likely be the least biased account of the December 7, 1941, attack on Pearl Harbor Find the dimensions of a right circular cylindrical can with both a top and a bottom that holds 5832 cubic cm and is constructed with the least amount of material possible. how does the structure of marlowe's poem develop central idea of the text Ten years from now Sam will be twice as old as she was three years ago.How old is she now? The complete and persistent absence of __________ is used to determine brain death. Determine the vertex point, domain, and range of the following functiony = -|x| + 2 Which policy refers to secretary of state john hay's plan to give all nations equal trading right in china? To create a new blank document, the user should _____. select New from the File tab select Open from the Quick Access toolbar select New from the Home tab select Save on the File tab PLEASE HELP ME WITH THIS! WILL MARK BRILLIANT!!! What year were you born if you graduated high school in 2001? Mike and Kate plan to save money for their wedding over a 20 month period. They will need to save $8,000 to help pay for the wedding. They set aside the same amount each month. After a year they saved $4,000. Mike and Kate know they must adjust their plan in order to meet their goal, so they came up with the following options: Option A: Stay with saving the same amount they've been saving each month but postpone the wedding 2 months. Option B: Increase the amount of money they save each month by $80 from what they've been saving. Which of the following is a true statement? a. Only option A will allow them to meet their goal. b. Only option B will allow them to meet their goal. c. Both options A and B will allow them to meet their goal. d. Neither option A nor option B will allow them to meet their goal. Which of the following best describes the artists use of variety in thepainting?(50 points)the basketthe tablecloththe flowersthe grapes2. In this image, the artist used a variety of which element to create thedrawing?(1 point)linetexturecolorvalue3. Which of the following best describes the variety in this image? (1 point)value and linecolor and shapevalue and shapetexture and value what is the estimate 5% of 59 How did Jem and Dill cause Scout to become closer to Miss Maudie? What message was she trying to convey to Scout about Boo Radley? How does Dante feel about the journey he's about to take with virgil Read the excerpt from Silent Spring.On the farms the hens brooded, but no chicks hatched. The farmers complained that they were unable to raise any pigsthe litters were small and the young survived only a few days. The apple trees were coming into bloom but no bees droned among the blossoms, so there was no pollination and there would be no fruit.What kind of tone do the underlined words create?bewilderedthreateningcourageousinsignificant Reaching goals through self-discipline is an example of the need for self-actualization.True or false?This is for health not English I messed up Music appreciation the romantic era. Romantic composer _________ wrote a requiem requiring 210 singers, a large orchestra, and four brass bands.A.Hector BerliozB.Fanny Mendelssohn HenselC.Johannes BrahmsD.Wolfgang Amadeus Mozart Steam Workshop Downloader