Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please white a Python code to calculate only one bagels price in the following question. No functions, no loop, no list, no string. Assume that

Please white a Python code to calculate only one bagels price in the following question. No functions, no loop, no list, no string.

Assume that you own a small deli that sells bagels. There are three kinds of bagels: plain bagel, whole-wheat bagel, and raisin bagel. And there are two toppings: lox and cream cheese. You charge $1.50 for plain bagel, $1.80 for whole-wheat bagel, and $2.10 for a raisin bagel. In addition, you add $0.60 if customers want lox on the bagel and $0.80 for cream cheese (the topping can be none, one topping, or both).

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