Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve the given question using nested braanches and multiple alternative if, else, elif by python ( spyder). clearly!! use this type of format example print

solve the given question using nested braanches and multiple alternative
if, else, elif by python ( spyder).
clearly!!
use this type of format
example
print ("%-20s%-20.3f%-20d"%("",value,value)) image text in transcribed
Exercise 1: Table 1 shows the cost of picture framing service for three types of frame material: plastic, wood and metal rame ost 50 Baiza per inch 100 Baiza per inc 200 Baiza per inch astic metal Table 1: Picture frame material cost Write a Python program that reads picture length and width and the frame material and computes and prints the amount due. The amount due -the frame length cost per inch depending on the material. The frame length picture length +picture width+frame width x 4. Use a constant frame width of 1 inch. The program should display the message "Invalid material type" for unsupported material type and "invalid length or width" for negative length and/or width values. Enter the length and the width of the picture: Select frame type: (P)lastic costs 50 Baiza per inch (W) ood costs 100 Baiza per inch (M) etal costs 200 Baiza per inch Enter the frame type (P, Wor M): m *Bill Info** Material: Metal Size: 8.0x 5.0 Amount due: OMR3.400 ruin xerc

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

Students also viewed these Databases questions