Question: # 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
