1answer.
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
horsena [70]
3 years ago
14

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

Computers and Technology
1 answer:
My name is Ann [436]3 years ago
5 0

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.

You might be interested in
For which is a chart legend used?
ruslelena [56]
All of the time is a type of chart legend using....
7 0
3 years ago
Anyone can give me the definition of specification ?
Damm [24]
- - To state a true meaning. To be true and to be precise. 
3 0
3 years ago
Read 2 more answers
The address of the last cell of a memory RAM is 3FFFFh.a total capacity of the main memory and 4M bits and the data bus can tran
marysya [2.9K]

Hey there!:

Given the address of the last cell of a memory RAM is 3FFFFh then   :

There are 8 bits in a byte  

1024 bytes in a kilobyte  

 so 8*1024= 8192  

 so 8192 bits in a kb  

 32*8192 = 262144  

there are 262144 bits in 32KB .

a) 32 bit address registers must match 2^32 byte = 4 GB of physical memory.

However, with 32 Bit you can also address more than 4 GB, like Physical Address Extension (PAE) does.

The other way is that you can access 4 GB with less than 32 bit address register.

____________________________________________________

b) Main Memory = 4M × 32Kbits, RAM chips = 32K × 4bit.

For this memory we require 4 × 2 = 8 RAM chips.

Each chip requires 18 address bits (ie. 218 = 256K).

And 1M × 8 bits requires 20 address bits (ie. 220 = 1M )

_____________________________________________________

c) The size of the storage cells is known as the word size for the computer.

In some computers, the word size is one byte while in other computers the word size is two, four, or even eight bytes. In our 4M main memory the size of cell is 4*2^20 bytes.

Each storage cell in main memory has a particular address which the computer can use for storing or retrieving data.  

______________________________________________________

d) The size of MBR is the 4M bits of main memory.

_____________________________________________________

Hope this helps!

6 0
3 years ago
Being nice take the points​
MArishka [77]

Answer:

Sure!!! and thank you very much

4 0
3 years ago
Which email etiquette is necessary when composing an email?
krok68 [10]

Answer:

subject, purpose and the recipient details

Explanation:

The email should have a good subject, and that means it should be precise but should convey the purpose and the recipient details. And the detailed report is to be mentioned in the actual body of the email. However, always ensure that the purpose or intent and the recipient details are being mentioned in the subject itself such that the recipient understand in a second the purpose of the email, and also that it meant for him/her.

5 0
4 years ago
Other questions:
  • What is a way to Procter your social security number and other sensitive information from identity theft
    9·1 answer
  • , = , ?<br><br>) ..(++ &lt;= );<br><br>) ..(++ &lt;= );​
    10·1 answer
  • If the pc-doctor software is installed on a computer's hard drive, what two different ways can the program be started?
    9·1 answer
  • Eric is working on a computer that has a device driver error. Eric can find the name of the device driver however the actual dev
    8·1 answer
  • What is a interesting topic that is related in media and culture
    8·2 answers
  • When you start to type =av, what feature displays a list of functions and defined names?
    11·1 answer
  • answer for brainliest Today, trending current events are often present on websites. Which of the following early developments in
    15·1 answer
  • Which tool determines whether or not applications, devices, and computers will work with a new operating system, while maintaini
    13·1 answer
  • Doctrine Creative is a video production company with its own file server within its business office. The company needs to be abl
    8·2 answers
  • What three-key sequence will bring up the task manager or allow a user to log off or restart the computer?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!