ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 11 May 2017 My Price 8.00

Adriana is creating a point-of-sale

Write an explanation for the correct answers for items 1 - 3.

SCENARIO: 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 fi rst try. After the third attempt, the system always locks—even if the input is correct.

 

1. Adriana is using a for 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

Answers

(11)
Status NEW Posted 11 May 2017 04:05 AM My Price 8.00

-----------

Not Rated(0)