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
RoseWind [281]
3 years ago
9

g Create a program that prompts a user to enter a login name and password. The correct login name is Admin, and the correct pass

word is PASS. If both login name and password are correct, display Correct Loginto the console window. If the login name or password is wrong, display what is wrong to the console window. For example, wrong username, wrong password, or both. program in C
Computers and Technology
1 answer:
frutty [35]3 years ago
7 0

Answer:

Answered below.

Explanation:

//Program in Python

login_name = "Admin"

password = "PASS"

display = " "

user_login_name = input ("Enter username: ")

user_password = input("Enter your Password: ")

if user_login_name == login_name and user_password == password:

display = "Correct Login"

elif user_login_name != login_name:

display = "wrong username"

elif user_password != password:

display = "wrong password"

print(display)

You might be interested in
What number will be output by the console.log command on line 5?
anzhelika [568]

Answer:

E

Explanation:

If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.

7 0
3 years ago
Read 2 more answers
Select the correct answer.
Setler79 [48]
C because it’s the smartest thing to do and let the other people get used to each other
6 0
3 years ago
Read 2 more answers
In which of the following mouse operations do you move the mouse until the pointer is positioned on the item of choice?
wolverine [178]
It's a. You have to move to the item thus pointing ;D
8 0
3 years ago
After a CPU decodes an instruction, what is the next step in the execution cycle?
Nat2105 [25]

Answer: E) The CPU executes the instruction by performing ALU operations.

Explanation: The execution cycle is of three stages namely; fetch, decode and execute. These are the functions that the CPU carries out from the time of boot-up up until it's shut down.

At the fetch stage, the computer retrieves program instructions from its memory register, at the decode stage; the decoders interprets the instructions from the instructions register and then the next stage will be the executions, at this stage; the interpreted instructions are then passed to relevant function units of the CPU to carry out the required instructions.

E.g mathematical and logic functions are passed on the ARITHMETIC AND LOGIC UNIT(ALU) to perform.

8 0
3 years ago
What is SoC? how is it different from CPU?
slamgirl [31]

Answer:

SoC usually contains a GPU

Explanation:

Where as a CPU cannot function without dozens of other chips

6 0
3 years ago
Other questions:
  • Point mode allows you to select cells for use in a formula by using your finger or the pointer
    7·1 answer
  • Which of the following can be sources of sediment? A. fragments of other rocks B. chemicals and minerals dissolved in water C. s
    11·1 answer
  • _____ are unique identifiers of computer or network addresses on the internet.
    6·2 answers
  • This measures how close a biometric reading is to a prerecorded template
    11·1 answer
  • Average of Grades - Write a program that stores the following values in five different variables: 98, 87, 84, 100, 94. The progr
    8·1 answer
  • At the frequency of 2.4 GHz what is the free-space path loss in dB.
    9·1 answer
  • ? I don’t understand
    8·2 answers
  • What do astronomers call a system that is composed of more than two stars?
    9·2 answers
  • Algoritmos para llevar a cabo una actividad
    15·1 answer
  • What are the two main types of citing information?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!