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

Answers

Answer 1

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.


Related Questions

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".

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)

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

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.

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:

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:

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

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);

}

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.

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.

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

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.

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...

Discus the pros and cons of Internal cloud service and External cloud service for both Infrastructure as a service and Application as a service.

Answers

Answer:

Internal Cloud:

An Internal Cloud is also known as a Corporate Cloud. It's a cloud computing service model that is implemented within an organization's dedicated resources and infrastructure. It also apply virtualization mechanism, shared storage and network resources to facilitate full control of an organization's cloud environment.

External Cloud:

An external cloud is a cloud solution that exists outside of an organization's physical boundaries. It allows companies to rent software and delivered security over the web, integrated to the back-end system. The services delivering through cloud solution will match that to a private cloud, but all the physical resources are external to the organization.

The Pros and Cons of the cloud services:

On the up side:

1: Fast start-up:

Cloud computing allows you to test your business plan very quickly for little money. It has changed the game of entrepreneurs. On the launch day, you have the confidence that you scale the world.

2: Business agility:

Cloud computing changes the whole world pattern of agility at a much lower cost.

3: Faster product development:

It reduced the moving applications and data time (one cloud to another) drop from weeks to minutes.

On the down side:

1: Bandwidth could bust your budget:

The network cost would be so large that you might buy the cloud storage rather than paying someone else for it.

2: Limited control and flexibility:

Since the remote software is being used, it usually lacks the features of an application running locally.

3: Increased Vulnerability:

As we know that the cloud based solutions are exposed on the public internet and are a more vulnerable target for malicious users and hackers. Nothing on the internet is completely secure and even the biggest players suffers from serious attacks and security breaches.

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:

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.

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

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.

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]

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 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

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.'

rocessor A has a CPI 1.2 and a clock rate of 1 GHz. Processor B has a CPI of 2.0 and a clock rate of 2 GHz. Processor C has a dock rate of 2.5 GHz (400 ps/cycle) and a CPI of 2.6. All three processors implement the same instruction set. Determine the time per instruction for each processor and write it in the correct spot. Which processor is faster? How many times faster is it than the slowest processor?

Answers

Explanation & answer:

To understand technical questions, it is necessary to understand all technical terms used.

Here,

CPI = cycles per instruction

clock rate = number of cycles the processor generates.

                   1 GHz = 1,000,000,000 cycles per second

                             = 1 nanosecond / cycle.

Processor A

CPI = 1.2 cycles per instruction

Frequency 1 GHz.

time per instruction,

Ta = (1.2 cycles/instr. )/ 1 GHz

= (1.2 cycles / instr. ) / (1 cycle / nanosecond)

= 1.2 nanoseconds / instruction

Processor B

CPI = 2.0 cycles per instruction

Frequency 2 GHz.

time per instruction,

Tb = (2.0 cycles/instr. )/ 2 GHz

= (2 cycles / instr. ) / (2 cycles / nanosecond)

= 1.0 nanosecond / instruction

Processor C

CPI = 2.6 cycles per instruction

Frequency 2.5 GHz.

time per instruction,

Tc = (2.6 cycles/instr. )/ 2.5 GHz

= (2.6 cycles / instr. ) / (2.5 cycles / nanosecond)

= 1.1 nanoseconds / instruction

The fastest is Tb = 1.0 nanosecond/instruction

The slowest is Ta = 1.2 nanoseconds/instruction

The ratio fastest/slowest = 1.2/1.0 = 1.2 times as fast

Note: cycles per instructions (CPI) are always in whole number cycles. CPI for different instructions may vary according to complexity of instruction.  Decimal CPI usually indicates the value is a weighted mean of the set of instructions.

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:))

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

Answers

Answer:

E-business

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

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]

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.

Other Questions
Read the sentence.The advertisement suggests that other brands of microwaves are not as fast or cost effective.Which is the most accurate and precise replacement for the underlined word?A.) LargeB.) Useful C.) AdvancedD.) Efficient which of the following is the best approximation to a solution of the equation e^x=4x+1 Name three actions you can perform on an inserted image. Use the following equation to help you answer the question. The peak intensity of radiation from a star named Sigma is 2 x 10 6 nm. What is the average surface temperature of Sigma rounded to the nearest whole number Read the excerpt from Speech at American University by John F. Kennedy.Read the paragraph from John F. Kennedys Inaugural Address.Let both sides unite to heed, in all corners of the earth, the command of Isaiah to undo the heavy burdens, and [to] let the oppressed go free.This paragraph is an example of __________.Which option most accurately completes this sentence?Kennedys Inaugural Addressallusionanaphorahyperbolesimile Most of the volume of an atom is occupied by the What happens when a scientific theory is shown to be an accurate description of a phenomenon? Which of the following is the major contributing factor in all landslides?stream erosionprecipitationearthquakesgravitysedimentary layers oriented parallel to the slope Omar is painting a 24-square-foot wall. The wall is divided into squares that each measure 1 /4 square foot. How many squares is the wall divided into? 18. A 6.7 kg object moves with a velocity of 8 m/s. What's its kinetic energy? A. 26.8 J B. 167.5 J C. 53.6 J D. 214.4 J Learning a second language can actually increase one's knowledge and ability in their first language. We are given three coins: one has heads in both faces, the second has tails in both faces, and the third has a head in one face and a tail in the other. We choose a coin at random, toss it, and it comes heads. What is the probability that the opposite face is tails? An air conditioning unit promises to have a cooling capacity of 6,000 British thermal units (Btu). The unit has a maximum variance of y Btu. If x is the air conditioning units actual capacity, which graph could be used to determine variance levels that would cause a unit to be rejected because of its cooling capacity? Will mark brainliest HELP ME PLEASE MATH Which graph represents the following system of inequalities? How is irony expressed in the story one thousand dollars? Driving during restricted hours is considered a moving violation and is worth __________ points on your license. simplify the expression below. 4^5 x 4^3 For what purposes did Thomas Jefferson send Lewis and Clark to explore the Louisiana Territory? What did he want them to accomplish? Identify the slope and y-intercept of the line: PLEASE HELP ME IT WOULD ME SO MUCH THANK YOU!!!!! y = ()x - 2