Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python please. Exercises: 1. Write a function imageCost() that takes user input and calculates the total cost for printing photos. Your function should prompt

in python please.image text in transcribed

Exercises: 1. Write a function imageCost() that takes user input and calculates the total cost for printing photos. Your function should prompt for a name and a quantity. The quantity given is the number of photos a user wants to print. For this problem, we will assume printing 1 photo costs $0.50 (50 cents). Your function should calculate the total cost to print all photos and return a message. The following shows how the imageCost() function would be used and what it should display for several test cases. Test all examples. For full points, your output should match the output in the test cases below Python 3.6.3 Shell >>>imageCostO Name: Brenda Quantity: 1 Brenda, the cost for 1 photo(s) is $0.5' >>>imageCostO Name: Brenda Quantity: 0 Brenda, the cost for 0 photo(s) is $0.0' >>>imageCostO Name: Mushi Quantity: 55 Mushi, the cost for 55 photo(s) is $27.5" Ln: 85 Col: 4

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

1. Describe a comprehensive approach to retaining employees.pg 87

Answered: 1 week ago