1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Allisa [31]
2 years ago
14

This was the template given for my assignment: class Login:

Computers and Technology
1 answer:
mars1129 [50]2 years ago
6 0

Using the code in python it is possible to use the code given in the statement it is possible to make the change so that it fits with all topics.

<h3>Writing code in python:</h3>

<em>class Login:</em>

<em> def __init__(self):</em>

<em>  self.login_name = 'none'</em>

<em>  self.login_password = 'none'</em>

<em> def check_credentials(self, user_login, user_passwd):</em>

<em>  simlogin = 'Test'</em>

<em>  simpass = 'test1234'</em>

<em>  if user_login == simlogin and user_passwd == simpass:</em>

<em>   print("Successful login!")</em>

<em>   return True</em>

<em>  elif user_login == simlogin and user_passwd != simpass:</em>

<em>   print("Login name is correct, incorrect password!")</em>

<em>   return False</em>

<em>  elif user_login != simlogin and user_passwd == simpass:</em>

<em>   print("Login name incorrect, password accepted!")</em>

<em>   return False</em>

<em>  elif user_login != simlogin and user_passwd != simpass:</em>

<em>   print("Unsuccessful login attempt!")</em>

<em>   return False</em>

<em>if __name__ == "__main__":</em>

<em> ob = Login()</em>

<em> timeout = 5</em>

<em> login = input()</em>

<em> password = input()</em>

<em> valid_login = ob.check_credentials(login, password)</em>

<em> while True:</em>

<em>  if valid_login:</em>

<em>   break</em>

<em>  else:</em>

<em>   timeout = timeout - 1</em>

<em>   if timeout == 0:</em>

<em>    print("5 failed login attempts. No more login attempts.") </em>

<em>    break</em>

<em>   login = input()</em>

<em>   password = input()</em>

<em>   valid_login = ob.check_credentials(login, password)</em>

See more python at brainly.com/question/18502436

#SPJ1

You might be interested in
Soft skills are: A) Personal qualities, habits, attitudes, and social graces that make up a person B) Hereditary C) The ability
Anastasy [175]

A would be your answer

6 0
3 years ago
Read 2 more answers
Convert 3BA.25 (base 14) to base 6 ? Show all arithmetic in decimal
Irina18 [472]

Answer:

(3252.1001)_{6}

Explanation:

  • To convert the base 14 to base 10 :

(3BA.25)_{14}= 3*14^{2} + B*14^{2} + A*14^{0} + 2*14^{-1} + 5*14^{-1}

Then,    = 588+154+10+\frac{2}{14^{1}} + \frac{5}{14^{2}}

Then,    =752 + 0.168

            =(752.168)_{10}

  • To convert base-10, [text](752.168)_{10}[/text] to base 6.

     6 | 752 | 2

     6 | 125 | 2

     6 | 20  | 2

     6 | 3    | 3

        | 0    |

Then, the conversion part 752 which has base-6 = 3252

  • Then, the conversation of the decimal part .168 to base 6

0.168*6=1.008 and the integer part is 1.

0.008*6=0.048 and the integer part is 0.

0.048*6=0.288 and the integer part is 0.

0.288*6=1.728 and the integer part is 1.

Then, the conversion of decimal part is (0.1001)_{6}

Finally, the answer is  (3252.1001)_{6}

6 0
3 years ago
What is FCC Part 15, Subpart C Section 15.203, and how does it affect outdoor bridging with WiFi?
AnnZ [28]

Answer: provided in the explanation section

Explanation:

FCC is the abbreviation for The Federal Communications Commission (United States Federal Communication Commission). It is, as a rule, an administrative area. It is a free Federal administrative office of the United States government dependable straightforwardly to Congress, built up by the Communications Act and made by resolution to manage interstate and worldwide interchanges by radio, TV, wire, satellite, and link. It includes an investigation on pending changes in the remote world.

FCC certainly has consequences for the present status of 5 GHz Bridging Spectrum. As far as possible one of the U-NII groups which can be utilized outside with the 5.725-5.825 band which is perfect fitting open air tasks. The 2.4 GHz ISM band might be utilized outside where the yield power at the purposeful radiator can't surpass 1 watt. In the United States, the FCC manages the frequencies utilized, the yield power levels, and the open air utilization restrictions.

There is an effect of the FCC 5 GHz U-NII report and a request on Wi-Fi Networks. FCC's activities are to change some specialized principles for the 5 GHz U-NII groups. The specialized change that is affirmed is - U-NII 1 band (5.150 - 5.250 GHz) indoor activity limitation being evacuated permitting utilization of the band for open air hotspots, WISPs, and scaffold joins. There will be a development of open hotspots profiting by this change. The FCC considers 11 channels under the Operating Frequencies.

The FCC has characterized UNII-2 and UNII-3 groups, the two of which had four channels. The channels were divided 20 MHz separated with a RF range data transmission of 20 MHz giving non-covering channels utilizing 20 MHz channel width.

The UNII-2 band was assigned additionally for open air tasks and allowed outside recieving wires. The UNII-3 band was proposed for open air connect items and allowed outer radio wires, however the UNII-3 band is likewise utilized for outside 802.11a/n/air conditioning WLANs.

FCC (America) underpins Operating Frequency Range for 802.11b and 802.11g on Center Frequency: 2412, 2417, 2422, 2427, 2432, 2437, 2442, 2447, 2452, 2457, 2462. FCC has delivered an amendment to the guidelines covering the 5 GHz 802.11a channel utilization. This correction has included 11 extra channels, carrying the accessible channel's ability to 23 channels.

As far as possible your complete force yield by utilizing a sliding scale when you set up a significant distance Wi-Fi connect. The scale really begins at 30 dBm of enhancement power utilizing a 6 dBi directional reception apparatus. For each 1 dBm drop in enhancement power, there would be an expansion in the intensity of directional radio wire by 3 dBi. The FCC permits this sliding scale since when you utilize a bigger highlight point radio wire, your shaft example will cover less territory and cause less impedance for other people.

8 0
3 years ago
To exclude members of a group from the basic permissions for a folder, which type of permission would you assign? Deny Allow Mod
oksano4ka [1.4K]

Answer:

Deny

Explanation:

Under the New Technology System, the Deny permission is applied when the administrator wants to overrule the permission given to members of a group. The Allow and Deny options help in regulating access to the components of the system. Only authorized groups are granted access to the files.

Most times, the Deny permission is considered before the Allow permission. If the user is denied access to some files and granted access to some, the deny permission is most times considered first.

4 0
3 years ago
A group of users can perform certain operations on a shared workbook. Which option helps them to update and track changes in the
irina1246 [14]

The “Allow changes by more than one user at the same time” option.


In a group of users, it is very important to create a shared workbook so that several people are able to update information and track changes in the workbook at the same time. To do so, one should click on the review tab of the excel sheet and select share workbook. On the editing tab of the share workbook dialog box, select the Allow changes by more than one user at the same time check box. Go ahead and click the advanced tab and select option you would want to use and then click OK

 






4 0
3 years ago
Other questions:
  • Use a colon before a list and put one space after a colon. True False
    15·2 answers
  • Megara would like to create a web page using web design software, but she does not have any money to spend. What would you sugge
    15·1 answer
  • Five batch jobs. A through E, arrive at a computer center at almost the same time. They hav e estimated running times of 10, 6,
    14·1 answer
  • What feature of virtualization software allows you to revert to a previous point in time in the event you make an unrecoverable
    9·1 answer
  • Use a recursion tree to determine a good asymptotic upper bound on the recurrence T(n) = 4T(n/2 + 2) + n. Use the substitution m
    5·1 answer
  • What are the similarities between data mining and data analytics
    11·1 answer
  • Low-end CRM systems are designed for companies like Boeing because they only have a few, large customers.
    11·1 answer
  • Raul needs to ensure that when users enter an order into the tblOrders, the shipping date is at least two days after
    9·2 answers
  • Write any two web browers​
    10·1 answer
  • A user calls to complain that her computer is behaving erratically. Some days it functions correctly, and other days, it crashes
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!