Write a program in (C or C++ or Java or python) to capture the center.docx

D

Write a program in (C or C++ or Java or python) to capture the center of Hexagon? Note:- Parallel processing, Subject. For example, how parallel program work please refer this website for help? http://gribblelab.org/CBootcamp/A2_Parallel_Programming_in_C.html Solution Answer # Program to find the area of hexagon using Python language from math import sqrt def hexagon(): print(\"Enter the length of its side for find the area of hexagon\") side = float(input(\" Ebter the side length \" )) hexgon_area = (3 / 2 * sqrt(3) * side * side) print( \" area hexagon Width \" ) print( \" side =\",side) print( \"area\", hexgon_area) hexagon() .

Write a program in (C or C++ or Java or python) to capture the center of Hexagon?
Note:- Parallel processing, Subject.
For example, how parallel program work please refer this website for help?
http://gribblelab.org/CBootcamp/A2_Parallel_Programming_in_C.html
Solution
Answer
# Program to find the area of hexagon using Python language
from math import sqrt
def hexagon():
print("Enter the length of its side for find the area of hexagon")
side = float(input(" Ebter the side length " ))
hexgon_area = (3 / 2 * sqrt(3) * side * side)
print( " area hexagon Width " )
print( " side =",side)
print( "area", hexgon_area)
hexagon()
Write a program in (C or C++ or Java or python) to capture the center.docx

More Related Content

More from drosa1(20)

Recently uploaded(20)

2022 CAPE Merit List 2023 2022 CAPE Merit List 2023
2022 CAPE Merit List 2023
Caribbean Examinations Council3K views
Sociology KS5Sociology KS5
Sociology KS5
WestHatch50 views
GSoC 2024GSoC 2024
GSoC 2024
DeveloperStudentClub1049 views
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptxGopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Debapriya Chakraborty221 views
Nico Baumbach IMR Media ComponentNico Baumbach IMR Media Component
Nico Baumbach IMR Media Component
InMediaRes1186 views
Psychology KS4Psychology KS4
Psychology KS4
WestHatch52 views
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}
DR .PALLAVI PATHANIA156 views
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch50 views
Universe revised.pdfUniverse revised.pdf
Universe revised.pdf
DrHafizKosar84 views
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
Tariq KHAN90 views
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar56 views
Material del tarjetero LEES Travesías.docxMaterial del tarjetero LEES Travesías.docx
Material del tarjetero LEES Travesías.docx
Norberto Millán Muñoz57 views
NS3 Unit 2 Life processes of animals.pptxNS3 Unit 2 Life processes of animals.pptx
NS3 Unit 2 Life processes of animals.pptx
manuelaromero201389 views
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1449 views
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
Tariq KHAN172 views

Write a program in (C or C++ or Java or python) to capture the center.docx

  • 1. Write a program in (C or C++ or Java or python) to capture the center of Hexagon? Note:- Parallel processing, Subject. For example, how parallel program work please refer this website for help? http://gribblelab.org/CBootcamp/A2_Parallel_Programming_in_C.html Solution Answer # Program to find the area of hexagon using Python language from math import sqrt def hexagon(): print("Enter the length of its side for find the area of hexagon") side = float(input(" Ebter the side length " )) hexgon_area = (3 / 2 * sqrt(3) * side * side) print( " area hexagon Width " ) print( " side =",side) print( "area", hexgon_area) hexagon()