Answered step by step
Verified Expert Solution
Question
1 Approved Answer
lab 11 Sclection Statements 2 Ward illicin&Clifton Cixon Hibbert File Home Insert Design Layout Rererences Mailings Review view dd-ins Help Tell me what you want
lab 11 Sclection Statements 2 Ward illicin&Clifton Cixon Hibbert File Home Insert Design Layout Rererences Mailings Review view dd-ins Help Tell me what you want to do Share PastCopy Rplacr Select Fomat Painter B IU - ciptorr Ety es Editing Selection Stateiments Activity 1: Let's retu to the prograu sigaupy at we practieed in the revious lab. Supposc we want to find oit if a nmbis positive, negative, aid zer. We camodify the code we did previausly by aclding an another if..se statement inside the else statement ashown below, which is a nested if...else statement. Please modity your copy of sign.py in this way, and do some experiments to convince yourself that it works. (Again, you must be eareful to ilde the colon after else.) number -ioat(input Enter a number: ") privtC"That umber is positive.") it number0: priutThat aumber is ncgative.") else: erintThe nuber is zero. Now let's write a program tocalulate a cstomer's manthly Internet bill by using nested conditional. Suppose inleel serviee pover h hree disel subsriptio packaes for ils custoue: Package A: $2.00 per our plus SS per h base lee. Package :$1.per haaur phs for $10 per manth hase fee Packaz C: S30 pe ul uld apvided. It should ask the user to enter the letter of the package the cstoer has purchased (A, B, or C) and the number of haurs that ere used. It should then display the total charge copy and paste your code h e Page 1 ofb 1320 wr B +100 146 AM O Type here to search ^4x 11/9/20
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