Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

we are using python language and just covered if,elif,else statements and for loops. i tried to produce if statements for part IV but im not

we are using python language and just covered if,elif,else statements and for loops. i tried to produce if statements for part IV but im not getting the correct return values and im not sure where i'm going wrong

image text in transcribedimage text in transcribed

Part IV: Print Job Cost Calculator (20 points) Write a function print.cost () that takes one argument, task, which is a list of three elements 1. The first element is a string that represents the size of the paper used Paper Size (string) Cost per Sheet ($) Letter' Legal' A4 A5 0.05 0.06 0.055 0.04 2The second element is a string that represents the color of the printing. This cost is added to the cost of the paper itself Printing Type (string) Cost per Sheet ($) Gray Scale Colored' 0.01 0.10 3. The third element is an integer that represents the quantity of paper used for the print job. The function computes and returns the total cost of the current printing job. Note: You may assume that all function arguments will be valid (e.g., no negative values, invalid paper sizes, etc.)

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago