View the step-by-step solution to:

What are the answer of these questions?

What are the answer of these questions?


1.  Write a program that prints the following output to the console (write your response so that the list could scale to a large number of lines if needed)

 

#

##

###

####

###

##

#

 

 

2.  We have a website that allows 3 kinds of users.

 

a. Users

b. Admins

c. Partners

 

Usernames for those 3 test roles are found in a text file. Assume that we don't need passwords to get in to this website.

 

User: user1

Admin:admin1

Partner:partner1

 

The URL for the login: www.example.com/login/{username}

 

Write a script or pseudo code to automate this scenario.

 

 

3.  Write a query or set of queries to satisfy the request below. You do not need to create the tables, but you will need to make some assumptions about their design to fulfill the request. You can assume that subsets of data that apply to multiple rows of a table are in separate tables.

 

3 tables

Company

Department

Employee

 

A company can have multiple departments, and each department can have multiple employees. An employee always has a company.

 

Create a list of all the companies. In the list, include all their departments and all their employees. Some companies do not have any departments, but make sure you include those companies and their employees in the list.

4.  Provide a sample of code to test a web form that is asking the user to input the answer to a security question. The form has a text box and a button. Handle the case where the answer is correct or incorrect.

 

 

 

 

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question