Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you work for a financial institution, a bug has been detected in an application. The program should continue if the credit score is above

Suppose you work for a financial institution, a bug has been detected in an application. The program should continue if the credit score is above 700. Specifically, the loop should continue
until a score below 700 is entered. What is wrong with this portion of the code:
continue_1=' y '
while continue_1==' y ':
credit_check = int(input('Enter credit score: '))
if credit_check 700 :
approved = False
continue_1=' n '
A. The control variable is not correctly initialized.
B. The assignment continue_1=' n ' is out of scope. The program will end even if the entered credit score is above 700.
C. There are no problems with this code. The loop executes as intended.
D. A variable cannot be evaluated when it is storing string literals. Therefore, the evaluation will always be false.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

What are the rights and liabilities of a bank auditor?

Answered: 1 week ago