Trace through what values are stored in each variable as the code executes and what values will be displayed. Assume the user enters Nassau, 10 in that order. county = input ('Enter the county you live in: ') credits = int (input ('Enter the number of credits you are taking: ')) if county -- 'Nassau' and credits >= 12: tuition = 2000 elif county == 'Suffolk': tuition = 3990 elif credits >= 10: tuition - credits * 160 else: tuition = credits * 30 print (tuition) |county credits tuition output
Trace through what values are stored in each variable as the code executes and what values will be displayed. Assume the user enters Nassau, 10 in that order. county = input ('Enter the county you live in: ') credits = int (input ('Enter the number of credits you are taking: ')) if county -- 'Nassau' and credits >= 12: tuition = 2000 elif county == 'Suffolk': tuition = 3990 elif credits >= 10: tuition - credits * 160 else: tuition = credits * 30 print (tuition) |county credits tuition output
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 10PE
Related questions
Question
I need the answer as soon as possible
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning