Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Initialize variablesbasic _ contract = 1 0 . 5 0 friends _ family = 2 . 0 0 voicemail = 3 . 2 0
# Initialize variablesbasiccontract friendsfamily voicemail unlimitedminutes totaladdons # Ask user for inputffinput inputDo you wish to include Friends and Family? ynvminput inputDo you wish to include Voicemail? ynuminput inputDo you wish to include Unlimited Minutes? yn# Process user inputif ffinput y: totaladdons friendsfamilyif vminput y: totaladdons voicemailif uminput y: totaladdons unlimitedminutes# Apply discount if necessaryif totaladdons : totaladdons # Calculate total billtotalbill basiccontract totaladdons# Print total billprintYour total bill is: totalbill Make flowgorithm
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