Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 You are quoting the materials cost for building a wooden fence. You offer two types of boards, which cost different amounts. A board

image text in transcribed

Question 3 You are quoting the materials cost for building a wooden fence. You offer two types of boards, which cost different amounts. A board of type "A" costs 2 dollars, and a board of type "B" costs 3 dollars. You need 7 boards for every 1 meter of fence length, so there are 7.0 board / meter 1 board A=2.00 dollar 1 board B=3.00 dollar DOLLAR_PER_BOARD_A =2.00 DOLLAR_PER_BOARD_B =3.00 BOARDS_PER_METER =7.0 answer = input ("Do you want high quality boards? ") if (answer [0]== ' y ') : dol1ar per board = DOLLAR_PER_BOARD_A else: dol1ar per board = DOLLAR_PER_BOARD_B length meter = float (input ("How many mters of fence do you want? ")) \#TODO: Finish the calculation for fence cost, \#using BOARDS_PER_METER, dollar per board, and length meter fence cost= print (f'The materials for the fence would cost ${ fence_cost:.2f } ')

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

Step: 3

blur-text-image

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions