Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Initialize variablesbasic _ contract = 1 0 . 5 0 friends _ family = 2 . 0 0 voicemail = 3 . 2 0

# Initialize variablesbasic_contract =10.50friends_family =2.00voicemail =3.20unlimited_minutes =5.70total_add_ons =0# Ask user for inputff_input = input("Do you wish to include Friends and Family? (y/n)")vm_input = input("Do you wish to include Voicemail? (y/n)")um_input = input("Do you wish to include Unlimited Minutes? (y/n)")# Process user inputif ff_input =='y': total_add_ons += friends_familyif vm_input =='y': total_add_ons += voicemailif um_input =='y': total_add_ons += unlimited_minutes# Apply discount if necessaryif total_add_ons >1: total_add_ons *=0.90# Calculate total billtotal_bill = basic_contract + total_add_ons# Print total billprint("Your total bill is: ", total_bill) Make flowgorithm

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

A Complete Guide To Data Science Essentials

Authors: Miguel

1st Edition

9358684992, 978-9358684995

More Books

Students also viewed these Databases questions

Question

What is success in delivering benefi ts to the organization?

Answered: 1 week ago

Question

Are there any questions that you want to ask?

Answered: 1 week ago