Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

ISBN: 0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago