D) Use only one .cpp and provide comments inside the code.

Answers

Answer 1
.cpp is a C++ script file extension, so just use a C++ script and add comments in it

Related Questions

How does 802.11g differ from 802.11b and 802.11a?

Answers

Try this explanation:

802.11a - the 1st generation, frequency - 5 GHz, max. data speed is 54 Mbits/sec.

802.11b - the 2d generation, frequency - 2.4 GHz, max. data speed is 11 MBits/sec.

802.11n - the last generation, frequency are - 2.4 & 5 GHz, max. data speed is 150 MBits/sec. and 600 MBits/sec. Supports 802.11a and 802.11b standarts.

how is hardware different from sofware?

Answers

Answer:

Computer hardware is any physical device used in or with your machine, whereas software is a collection of code installed onto your computer's hard drive. For example, the computer monitor you are using to read this text and the mouse you are using to navigate this web page are computer hardware.

All software utilizes at least one hardware device to operate. For example, a video game, which is software, uses the computer processor (CPU), memory (RAM), hard drive, and video card to run. Word processing software uses the computer processor, memory, and hard drive to create and save documents.

Why using a faster computer doesn’t always solve large data processing problems.

Answers

Answer:

maybe it doesn't have enough space to store data

Write the formal descriptions of the following sets: (a) The set containing the numbers 5, 9, and 27. (b) The set that contains all the natural numbers less than 2. (c) The set containing the empty string. (d) The set containing nothing at all.

Answers

Answer: a) [tex]=\left \{ 5,\,9,\,27 \right \}[/tex]

(b) [tex]\left \{ x\ : X\varepsilon\mathbb{N} \right \text{and}\ x<2\}= \left \{1 \right \}[/tex]

(c) [tex]\left \{\epsilon \right \}[/tex]

(d) [tex]\left \{\right \}=\phi[/tex]

Explanation:

The formal description of the given sets are as follows :-

a) The set containing the numbers 5, 9, and 27.

[tex]=\left \{ 5,\,9,\,27 \right \}[/tex]

(b) The set that contains all the natural numbers less than 2.

[tex]\left \{ x\ : X\varepsilon\mathbb{N} \right \text{and}\ x<2\}= \left \{1 \right \}[/tex]

(c) The set containing the empty string.

We know that in formal description, the empty string is denoted with [tex]\epsilon[/tex].

Thus, the required set : [tex]\left \{\epsilon \right \}[/tex]

(d) The set containing nothing at all.

[tex]\left \{ \right \}=\phi[/tex]

Assuming that your company uses the Class A network 100.0.0.0/8, with what subnet mask would you need to configure all computers on the network to divide this network 11 times to match the comany's 11 departments?

Answers

Answer:

Class A network 100.0.0.0/8, we need to divide it so that it can use 11 department, therefore 2^{4} = 16 maximum subnet. The subnet mask 255.240.0.0/12. The hosts per subnet are 2^20 = 1048574. The first 5 subnet range is attached with this question.

Explanation:

The IP address is 32 bits, The default subnet of class A is 255.0.0.0/8, but in this case we take 4 bits from host and add it to network bits so 8+4 = 12, that's why mask bit is 12.

8 bits   + 8 bits  +  8 bits  + 8 bits

100       .    0       .     0       .      0

we take 4 bits from 2nd octet so that it can use in 11 departments, so the remaining  4 bits + 8 bits + 8 bits = 20 bits

2^{20} = 1048574 hosts in each subnet

2^ {4} = 16 subnet ( 0 to 15 range)

when we subtract 255-15 = 240 so that the subnet mask is 255.240.0.0 / 12

How are CGI programs different from Servlets?

Answers

Both Java servlets and CGI are utilized for generating dynamic web statements that admit a user application, process it on the server side and deliver answers to the user.

Servlets maintain various abilities that are challenging or difficult to achieve with conventional CGI. These abilities incorporate speaking directly to the network server,  sending data within various servlets, assembly tracking and maintaining of premature calculations.

Since servlets are composed in the Java programming dialect and develop a conventional API, so a servlet can be transferred from among web server. On the other hand, CGI programs may be principles subordinate, need to be recompiled or web server dependent.

What is Symmetric and Asymmetric DSL?

Answers

Symmetric DSL. Symmetric Digital Subscriber Line (SDSL) is a kind of one kind of Digital Subscriber Line (DSL) used to provide high-speed Internet connectivity. Symmetric DSL is called “symmetrical” because the upstream and downstream connections have the same bandwidth.

Answer:

Symmetric DSL is called “symmetrical”

Explanation:

Ethernet is a standard for a) LAN b) MAN c) WAN d) All of the above

Answers

Answer:

a) LAN

Explanation:

Ethernet is a standard for a IEEE or LAN.

Answer:all of the above

Explanation:

What is the difference between a service pack and a hotfix?

Answers

Hotfix - update to fix a very specific issue, not always publicly released. ... Service Pack - Large Update that fixes many outstanding issues, normally includes all Patches, Hotfixes, Maintenance releases that predate the service pack.

Answer:

i dont get it

Explanation:

i dont get it

What are the defenses to protect against these attacks?

Answers

McAfee, Norton(totally overprotective tho), if you have a Chromebook Chrome OS(even more protective), Windows Defender on Win 10...

Write a C++ program that prompt the user to enter three points (x1, y1), (x2, y2), (x3,y3) of a triangle and

Answers

Answer:

#include<iostream>

using namespace std;

int main(){

   int x1,x2,x3;

   int y1,y2,y3;

   cout<<"Enter the value of first point(x1,y1): ";

   cin>>x1>>y1;

   cout<<"\nEnter the value of second point(x2,y2): ";

   cin>>x2>>y2;

   cout<<"\nEnter the value of third point(x3,y3): ";

   cin>>x3>>y3;

   

}

Explanation:

first include the library iostream for use the input/output commands

then, write the main function. within the main function declare the variable which store the value of points.

after that, use the 'cout' for output. It has the function which print the value or message on the screen.

and 'cin' is used to store the value in the variable.

So, in the above code cout ask for enter the value of point and after enter value by user, cin store in the variables.

Note: you have to enter two value with space or by enter.

What is the primary means by which attackers infect computers with these attacks? How do these attacks commonly occur?

Answers

Well.. from personal experience...that’s ransomware..... these attacks usually occur when a HackerMan injects a file that contains the payload .... usually system configuration files...DLL’s, EXE, pretty much any file that contains codes that can modify someone’s operating system. This payload then locks your files so that you can only unlock your files using a key that can be purchased online.You enter the key? Your files are unlocked!

how much should an organization consider moving into the cloud before full outsourcing starts making more business sense

Answers

Answer:

47

Explanation:

capital steez

47 hope this helped:))

Q10. The percentile rank allows the researcher to determine:

a. what percentage of individuals in the sample scored above the target individual.

b. the mean for the population based on the mean for the sample.

c. how far a target individual’s score is from the group mean.

d. what percentage of individuals in the sample scored below the target individual.

Answers

I think the answer is a
Final answer:

The correct answer is option (d), which states that the percentile rank indicates what percentage of individuals in the sample scored below the target individual.

Explanation:

The percentile rank is a statistical measure that indicates the value below which a given percentage of observations in a group of observations falls. For example, to find the 90th percentile, you would identify the score k where 90 percent of the scores are the same as or below k, and 10 percent are above it. This means if you are at the 90th percentile in test scores, you scored better than 90 percent of the other test takers.

Interpreting percentiles is essential as it gives us information about the relative standing of an individual within a distribution. It is not a reflection of the actual score but instead a comparison with others' scores. Choice (d) is the correct answer to the question because the percentile rank tells us what percentage of individuals in the sample scored below the target individual.

how are natural numbers, whole numbers, integers, and rational numbers related

Answers

Each can be a classification within another group of numbers.

For example:
All whole numbers can be natural numbers (but not the other way around)
All natural numbers and all whole numbers can be integers (also not the other way around)
All natural numbers, whole number and integers can be rational (not the other way around :):):)):))

Natural numbers: 1, 2, 3, 4...

Whole numbers: 0, 1, 2, 3...

Integers: -2, -1, 0, 1, 2...

Rational number: -2.5, -1.72, 0, 1, 3.77... (any number that can be written down)

Connecting your computers or devices to the ________ immediately exposes them to attack.

A. Ethernet

B. Internet

C. network

D. virtual LAN (VLAN)

Answers

I believe the answer is network.

how is communication within healthcare different than communication within other industries ?

Answers

Answer:

It has to be more specific and easier to understand because of its importance.

Explanation:

Explain why, with fast moving mobiles, speed is more dominant in characterizing the use mobility pattern than direction?

Answers

The answer is 42 that is the answer to life

_____ is a major factor in the widespread use of global information systems

Answers

Answer:

E-business

Explanation:

find the inverse function of f(x)= 1+squareroot of 1+2x

Answers

Answer:

Therefore the inverse function of  [tex]f(x)=1+\sqrt{1+2x}[/tex] is [tex]\frac{x^2-2x}{2}[/tex]

Explanation:

We need to find the inverse of function [tex]f(x)=1+\sqrt{1+2x}[/tex]

Function Inverse definition :

[tex]\mathrm{If\:a\:function\:f\left(x\right)\:is\:mapping\:x\:to\:y,\:then\:the\:inverse\:functionof\:f\left(x\right)\:maps\:y\:back\:to\:x.}[/tex]

[tex]y=1+\sqrt{1+2x}[/tex][tex]\mathrm{Interchange\:the\:variables}\:x\:\mathrm{and}\:y[/tex]

[tex]x=1+\sqrt{1+2y}[/tex]

[tex]\mathrm{Solve}\:x=1+\sqrt{1+2y}\:\mathrm{for}\:y[/tex]

[tex]\mathrm{Subtract\:}1\mathrm{\:from\:both\:sides}[/tex]

[tex]1+\sqrt{1+2y}-1=x-1[/tex]

Simplify

[tex]\sqrt{1+2y}=x-1[/tex]

[tex]\mathrm{Square\:both\:sides}[/tex]

[tex]\left(\sqrt{1+2y}\right)^2=\left(x-1\right)^2[/tex]

[tex]\mathrm{Expand\:}\left(\sqrt{1+2y}\right)^2:\quad 1+2y[/tex]

[tex]\mathrm{Expand\:}\left(x-1\right)^2:\quad x^2-2x+1[/tex]

[tex]1+2y=x^2-2x+1[/tex]

[tex]\mathrm{Subtract\:}1\mathrm{\:from\:both\:sides}[/tex]

[tex]1+2y-1=x^2-2x+1-1[/tex]

[tex]\mathrm{Simplify}[/tex]

[tex]2y=x^2-2x[/tex]

[tex]\mathrm{Divide\:both\:sides\:by\:}2[/tex]

[tex]\frac{2y}{2}=\frac{x^2}{2}-\frac{2x}{2}[/tex]

[tex]\mathrm{Simplify}[/tex]

[tex]y=\frac{x^2-2x}{2}[/tex]

Therefore the inverse function of [tex]f(x)=1+\sqrt{1+2x}[/tex] is [tex]\frac{x^2-2x}{2}[/tex]

ISDN stands for Internet Services Dynamic Network True/False

Answers

The answer is the second option "false." ISDN does not stand for Internet Services Dynamic Network it stands for Integrated Services Digital Network. ISDN is the international communication center for sending data, video, and voice over telephone wires.

Hope this helps.

Final answer:

ISDN stands for Integrated Services Digital Network. It is a set of communication standards that enables the transmission of voice, data, video, and other digital communication services over traditional telephone lines.

Explanation:

ISDN stands for Integrated Services Digital Network. It is a set of communication standards that enables the transmission of voice, data, video, and other digital communication services over traditional telephone lines. ISDN provides faster and more reliable internet connections compared to dial-up or analog connections.

ISDN utilizes digital signals and can carry multiple channels of data simultaneously. It offers a variety of services such as voice calls, video conferences, and data transfers. In contrast, dynamic networks are networks that can adapt and change their configuration dynamically based on various factors such as network traffic or device availability. The term 'Internet Services Dynamic Network' does not accurately represent the acronym 'ISDN.'

how do computers benefit individuals' health care?

Answers

Answer:

By having personal health records available on a computer, more doctors have access to an individual's information. This allows doctors to view all prescriptions that a person is on, which can help protect patients from conflicting medications to be taken at once, and can save time if a patient doesn't have to redo tests and procedures because the doctor doesn't have the records.

A collection of computers and other devices that are connected together to enable users to share hardware, software, and data, as well as to communicate electronically with each other is called ______

Answers

The correct answer is: Computer network

In order to "print" the data in an object, the class should override the _____ method.

String
toString
StringValue
Value

Answers

Answer:

toString is right Answer

Explanation:

If you want to represent any object as a string, toString() method comes into existence.  

The toString() method returns the string representation of the object.

If you print any object, java compiler internally invokes the toString() method on the object. So overriding the toString() method, returns the desired output, it can be the state of an object etc. depends on your implementation.

Which of the following is an encryption tool that allows users to encrypt files and folders by simply right-clicking a given object and setting a few options?
a. PowerShell
b. BitLocker
c. Encrypting File System (EFS)
d. Trusted PlatformModule (TPM)

Answers

the answer to this question is C

Final answer:

The encryption tool that enables right-click encryption of files and folders is the Encrypting File System (EFS). It integrates with the Windows file system to protect sensitive data through encryption.

Explanation:

The encryption tool that allows users to encrypt files and folders by simply right-clicking a given object and setting a few options is the Encrypting File System (EFS). When you use EFS, which is a feature available in some versions of the Windows operating system, you can easily encrypt your files and folders to protect sensitive data.

EFS integrates with the file system to provide this seamless encryption process. Other options like BitLocker are used to encrypt entire drives, and PowerShell is a task automation framework, not specifically an encryption tool.

TPM is a hardware-based security feature to store cryptographic keys and does not directly allow users to encrypt files and folders by right-clicking.

A cookie recipe calls for the following ingredients: • 1.5 cups of sugar • 1 cup of butter • 2.75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write a program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient needed for the specified number of cookies in the following format: You need 5 cups of sugar, 3 cups of butter, and 7 cups of flour.

Answers

The program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient is corresponds to the ingredients mentioned above.

Further explanation

Python is a general-purpose programming language. We want to write a python program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient.

48 cookies = 1.5 cups of sugar + 1 cup of butter + 2.75 cups of flour, so:

def main():

   cookies = float(input("How many cookies would you like to make?\n>"))

   sugar = (1.5 * cookies) / 48.0

   butter = cookies / 48

   flour = (2.75 * cookies) / 48

   print("To make ", cookies, " cookies, you will need:\n", \

         format(sugar, '.2f'), " cups of sugar\n", \

         format(butter, '.2f'), " cups of butter\n", \

         format(flour, '.2f'), " cups of flour", sep='')

   redoQuery()  

def redoQuery():

   yn = input("Would you like to check another batch size? (y/n)\n>")

   if yn == 'y':

       main()

   elif yn =='n':

       exit()

   else:

       print("Please enter only a lowercase \'y\' or lowercase \'n\'," \

             "then press enter")

       redoQuery()

main()

The run program is shown in the attachment below.

Learn more

1. Learn more about python https://brainly.in/question/8049240

 

Answer details

Grade:  9

Subject: Computers and Technology

Chapter:  programming with python

Keywords: python

Which of the following statements is true of offshore outsourcing?a. Improved telecommunication systems have increased its attractiveness.b. The limited availability of the Internet has reduced its effectiveness.c. Reduced bandwidth has increased its efficiency to perform with low latency.d. The increased cost of communication has reduced its popularity.

Answers

Jansjsfajhabsbsbsjs. Hbabajajajajanakslsk. Jshsbsjshsbshdjshjd ds

The correct answer is A. Improved telecommunication systems have increased its attractiveness.

Explanation:

Offshore outsourcing occurs in companies when these transfer or delegate certain roles or responsibilities to other companies abroad. This business strategy is closely related to the use of information and communication technologies or telecommunication systems as it is through these, the main company can conduct its operations in a different region or country.

Due to the development of telecommunications, during the last years outsourcing has become quite popular as nowadays the multiple technologies allow companies to communicate with people all around the world, send documents and papers, create meetings, and other functions that are necessary for companies. Therefore, the statement that is true about offshore outsourcing is "Improved telecommunication systems have increased its attractiveness".

Write a JAVA program to generate the list of prime numbers between 100 and 1000 ?

Answers

First of all, we will need a function that checks if a number is prime or not:

boolean isPrime(int n){

 for(int i=2; i<=math.sqrt(n); i++){

   if(n % i == 0) return false;

 }

 return true;

}

Then, in the main program, we will call this function with all the desired inputs, and we will print the prime numbers:

for(int n=100; n<= 1000; n++){

 if(isPrime(n)) print(n);

}

What is the domain and range of the function f(x) = |x - 2| ??

Answers

Answer:

Domain is R, range is x≥0.

Explanation:

You can plug in any value for x to get an outcome for f, however, the outcome is always ≥0.

98 POINTS HELP ASAP PLEASE!!!!
You have been asked to create a program for an online store that sells their items in bundles of five. Select the appropriate code that would display how many bundles are available for sale.

A.print(5 // totalItems)
B.print(totalItems // 5)
C.print(totalItems(5) )
D.print(5(totalitems) )

Answers

B. Print(totalitems // 5)

Answer:

B. Print Totalltems // 5

Explanation:

Well, if you learn how to create bundles on Amazon, you can eliminate the competition, set your price, and offer customers a product they’ll absolutely love.

Other Questions
Which of these is the BEST meaning for the word glimpse as it is used in the selected sentence? A)a gaze in a given direction B)a brief, incomplete view or look C)a pleasurable and absorbing look Eliminate D)an unhealthy and extended observatio I have good dispositions; my life had been hithertoharmless, and, in some degree, beneficial; but a fatalprejudice clouds (people's) eyes, and where they ought tosee a feeling and kind friend, they behold only a detestablemonster (176-177).Which theme is best conveyed by this quote?A. People who hurt often hurt other people.B. Misery loves company.C. A word spoken in hate can injure more than the sword.D. Outward appearances can be deceiving. How does the fishermans motivation move the plot forward? What units are used for volume?linearcubico perimetersquare -William Shakespeare, Macbeth, Act l, scene viiWhat part does Lady Macbeth play in Macbeth's decision to kill the king?!She calls Macbeth weak and cowardly until he finally agrees to herplan to kill the king.OB. She manipulates Macbeth to kill the king by telling false stories ofDuncan's cruelty.C. She admires Macbeth's strength and power and tells him what agood king he would be.OD. She asks Macbeth to kill the king to make sure that their childrenwill be taken care of. Which place is most likely depicted in Aaron Douglass's painting, Song of theTowers? Q: If the average speed of a species of tortoise is 0.36 km/h, what is that speed in cm/s? Consider the following equation. f(x, y) = sin(2x + 5y), P(5, 2), u = 1 2 3 i j (a) Find the gradient of f. f(x, y) = (b) Evaluate the gradient at the point P. f(5, 2) = (c) Find the rate of change of f at P in the direction of the vector u. Duf(5, 2) = how does water pollution affect climate change? Hemophilia is an X-linked recessive disorder.What is the probability of having hemophilia for the cross that is shown in the Punnett square?O percent25 percent 57. Gabriel randomly surveyed some households in a small communityto determine how many of them support building a newhighway near the community. Here are the results:Number45OpinionSupport the highwayDo not support it57If the community contains a total of 2,120 households, predict howmany of them would support building the highway.18No opinion Outsourcing entails relocating labor operations to other countries.True or false _________________ of licensed teen drivers who use drugs regularly report they drug and drive."Almost 25%Almost 70%Less than 25%Less than half An object of mass 5 kilograms is moving across a surface in a straight line with a speed of 3.5 meters/second. What amount of force would berequired to keep the object in motion if you ignore the surface friction?A.O newtonsB.17.5 newtonsC.3.5 newtonsD.5 newtons Marking Brainliest!DEF undergoes a dilation, with a scale factor of 4, to form D'E'F.Side D'E'is 4 times the length of side DE.What is the area of D'E'F', compared to the area of DEF? Read the following passage from Anne Sexton's poem, "Young" and answer the question.A thousand doors agowhen I was a lonely kidin a big house with fourgarages and it was summeras long as I could remember,I lay on the lawn at night,clover wrinkling over me,the wise stars bedding over me,What can we infer about the speaker from this passage? Select all that apply.that the speaker is an older person looking backthat the speaker is a younger person looking towards the futurethat the speaker didn't have had many friends as a childthat the speaker came from a wealthy family DUI conviction penalties include imprisonment, impounding of you vehicle, ________, and a felony conviction.A. Community service B. Seizure of license plate C. Public Humiliation D. Installation of an interlock device When can a theory be modified if a new type of technology allows for new observations that raise new questions?A-immediately, while the questions about the theory are being askedB-after new hypotheses related to the theory are tested in experimentsC-only after the new observations disprove all parts of the theoryD-while scientists begin to think about how the theory could improve Young's double slit experiment is one of the quintessential experiments in physics. The availability of low cost lasers in recent years allows us to perform the double slit experiment rather easily in class. Your professor shines a green laser (564 nm) on a double slit with a separation of 0.108 mm. The diffraction pattern shines on the classroom wall 4.0 m away. Calculate the fringe separation between the fourth order and central fringe. Sustained current as small as 2.5010^6 A passing through the human heart can be fatal. Suppose a patient is undergoing open-heart surgery, and the patients heart has a constant resistance of 273 . What is the minimum voltage across the heart that could pose a danger to the patient? Steam Workshop Downloader