Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started