Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an explanation for the correct answers for items Adriana is creating a point-of-sale (cash register) application for Fourth Coffee. Her responsibility is to create

Write an explanation for the correct answers for items

Adriana is creating a point-of-sale (cash register) application for Fourth Coffee. Her responsibility is to create a password-protected login system to ensure security of the system. She has finished the login window and password check, but she is having trouble implementing it correctly.

Adriana’s project manager wants the system to give the user three attempts to login correctly before locking the system. In Adriana’s most recent version, the system prompts the user for a name and password three times—even if the user correctly logs in on the first try. After the third attempt, the system always locks—even if the input is correct.

1. Adriana is using a loop, which works best when:

a. the number of iterations is known and is unlikely to change during execution

b. the number of iterations is known but is likely to change during execution

c. the number of iterations is unknown

2. What control structure would be best for Adriana’s login system?

a. for loop

b. while loop

c. a recursive method

3. How many times does a do..while loop execute?

a. at least zero times

b. at least one time

c. at least two times

Step by Step Solution

3.33 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

1 For loops work best when a The number of iterations is known and is unlikely to change 2 The best ... 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

Horngrens Accounting

Authors: Tracie L. Miller Nobles, Brenda L. Mattison, Ella Mae Matsumura, Carol A. Meissner, Jo Ann L. Johnston, Peter R. Norwood

10th Canadian edition Volume 1

978-0134213101, 134213106, 133855376, 978-0133855371

More Books

Students also viewed these Programming questions

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago