Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*Code in java* You are given an input (n) which represents the amount of lines you are given, your job is to figure out what

*Code in java*

image text in transcribedimage text in transcribed

You are given an input (n) which represents the amount of lines you are given, your job is to figure out what is the maximum amount of perpendicular bisectors you can make using these lines. Note: A perpendicular bisector is one that forms a 90 degree angle n will always be greater than or equal to Examples with 3 and 4 lines From solution import perpendicular import codewars_test as test atest. describe( "Perpendicular Zines") def perpendicular_tests( ) : atest. describe( "Sample tests") def sample_tests(): atest.it(" n=) def test_zero(): test.assert_equals(perpendicular (),) atest.it(" n=1) def test_one(): test.assert_equals(perpendicular (1), ) atest.it(" n=2 ") def test_two(): test.assert_equals (perpendicular (2),1 ) atest.it(" n=3 ") def test_three(): test.assert_equals (perpendicular (3), 2) atest.it(" n=4 ") def test_four(): test.assert_equals(perpendicular (4),4 ) atest.it( "n=5) def test_five(): test.assert_equals(perpendicular (5),6) atest.it(" n=6) def test_six(): test.assert_equals (perpendicular (6),9) (atest.it(" n=7 ") def test_seven(): test.assert_equals(perpendicular(7), 12) (dtest.it( " n=8 ") def test_eight(): test.assert_equals (perpendicular (8),16 ) atest.it(" n=9 ") def test_nine(): test.assert_equals (perpendicular (9),20 ) dtest.it(" n=51) def test_big(): test.assert_equals (perpendicular(51), 650)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

=+1. What are the core best practices for social care?

Answered: 1 week ago

Question

Could you answer this using C# please, thank you!

Answered: 1 week ago