SlideShare a Scribd company logo
Write a program that asks a user for two points that are whole numbers as input (assume the user
inputs the correct data, in other words, you do not have to validate this input). Store the first point
in the variables X1 and Y1. Store the second point in X2 and Y2. Create two user-defined
functions. One function should return the midpoint of the line. The second function should return
the slope of the line. Display the returned values to the monitor appropriately labeled midpoint and
slope.

More Related Content

More from spshotham

Let A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdfLet A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdf
spshotham
 
Morrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdfMorrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdf
spshotham
 
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdfCopenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
spshotham
 
Inmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdfInmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdf
spshotham
 
Feet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdfFeet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdf
spshotham
 
Assignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdfAssignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdf
spshotham
 
2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf
spshotham
 
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdfAequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
spshotham
 
9 Argument que las personas intentan satisfacer sus neces.pdf
9  Argument que las personas intentan satisfacer sus neces.pdf9  Argument que las personas intentan satisfacer sus neces.pdf
9 Argument que las personas intentan satisfacer sus neces.pdf
spshotham
 
3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf
spshotham
 
b You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdfb You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdf
spshotham
 
The Operating System data is a dataset from a Intro to D.pdf
 The Operating System data is a dataset from a Intro to D.pdf The Operating System data is a dataset from a Intro to D.pdf
The Operating System data is a dataset from a Intro to D.pdf
spshotham
 
1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf
1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf
1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf
spshotham
 
1817 LAB Playlist output linked list Given main compl.pdf
1817 LAB Playlist output linked list Given main compl.pdf1817 LAB Playlist output linked list Given main compl.pdf
1817 LAB Playlist output linked list Given main compl.pdf
spshotham
 

More from spshotham (14)

Let A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdfLet A and B be two events defined on a sample space S of an .pdf
Let A and B be two events defined on a sample space S of an .pdf
 
Morrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdfMorrison Corporation had the following common stock record d.pdf
Morrison Corporation had the following common stock record d.pdf
 
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdfCopenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
Copenhagen Covered B Heidi Hi Jensen a foreign exchange.pdf
 
Inmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdfInmediatamente antes del proceso de liquidacin los socios .pdf
Inmediatamente antes del proceso de liquidacin los socios .pdf
 
Feet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdfFeet and Meters Converter Create a program that uses a separ.pdf
Feet and Meters Converter Create a program that uses a separ.pdf
 
Assignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdfAssignment Primary endosymbiosis is known to be important in.pdf
Assignment Primary endosymbiosis is known to be important in.pdf
 
2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf2 Suppose XBinomial104 and YBinomial204 respective.pdf
2 Suppose XBinomial104 and YBinomial204 respective.pdf
 
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdfAequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
AequiredPrecart fouthal cmines for 2021 to recind the fr.pdf
 
9 Argument que las personas intentan satisfacer sus neces.pdf
9  Argument que las personas intentan satisfacer sus neces.pdf9  Argument que las personas intentan satisfacer sus neces.pdf
9 Argument que las personas intentan satisfacer sus neces.pdf
 
3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf3 10 points Given a binary search tree T with a root node.pdf
3 10 points Given a binary search tree T with a root node.pdf
 
b You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdfb You are given three events CD and E with probabilities P.pdf
b You are given three events CD and E with probabilities P.pdf
 
The Operating System data is a dataset from a Intro to D.pdf
 The Operating System data is a dataset from a Intro to D.pdf The Operating System data is a dataset from a Intro to D.pdf
The Operating System data is a dataset from a Intro to D.pdf
 
1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf
1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf
1Google grntl reklamlar iin aadaki hedefleme yntemle.pdf
 
1817 LAB Playlist output linked list Given main compl.pdf
1817 LAB Playlist output linked list Given main compl.pdf1817 LAB Playlist output linked list Given main compl.pdf
1817 LAB Playlist output linked list Given main compl.pdf
 

Recently uploaded

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 

Write a program that asks a user for two points that are who.pdf

  • 1. Write a program that asks a user for two points that are whole numbers as input (assume the user inputs the correct data, in other words, you do not have to validate this input). Store the first point in the variables X1 and Y1. Store the second point in X2 and Y2. Create two user-defined functions. One function should return the midpoint of the line. The second function should return the slope of the line. Display the returned values to the monitor appropriately labeled midpoint and slope.