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
saveliy_v [14]
3 years ago
10

You are trying to log in to your old computer, and can't remember the password. You sit for hours making random guesses... I'm s

ure you thought it was funny back when you came up with that password (chEEzburg3rz). Write a program that tells you whether your guess is correct. If it is correct, it should grant access like this: Enter password: chEEzburg3rz Access granted....
If your guess is incorrect it should deny access like this:
Enter password: lolcatZ
Access denied
Computers and Technology
1 answer:
erma4kov [3.2K]3 years ago
6 0

Answer:

<em>The program written in Python is as follows (See Explanation Section for detailed explanation)</em>

password = "chEEzburg3rz"

userpassword = input("Enter Password: ")

if userpassword == password:

     print("Access granted....")

else:

     print("Access Denied")

Explanation:

The programming language was not stated; However, I answered your question using Python

The line initializes the password to chEEzburg3rz"

password = "chEEzburg3rz"

This line prompts user for input

userpassword = input("Enter Password: ")

This if condition checks if user input corresponds with the initialized password

if userpassword == password:

<em>      print("Access granted....")  </em>If yes, this line is executed

else:

<em>      print("Access Denied")  </em>If otherwise, this line is executed

You might be interested in
Why did Herman Hollerith invent the Tabulating Machine?
Anvisha [2.4K]

Answer:

the machine was developed to help process data for the 1890 U.S. Census.

Explanation:

U.U

8 0
3 years ago
This isn't school wise but like.. I can't log into IMessage so I decided to try and log into FaceTime but thats not working. Cau
Butoxors [25]
Restart the device that may help
4 0
3 years ago
A date consists of a month, day, and year. Consider the class Date of such dates. Suppose that Date represents the month, day, a
Dominik [7]

Answer:

#include <iostream>

#include <cmath>

using namespace std;

class Date

{

public:

Date ();

Date ( int mn, int day, int yr); // constructor

void display(); // function to display date

int GetMonth();

void SetMonth(int mn);

~Date();

private:

int month, day, year;

};

// constructor definition

Date::Date ()

{

month = day = year = 1;

}

Date::Date (int mn, int dy, int yr)

{

static int length[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

month = mn;

day = dy;

year = yr;

}

void Date::display()

{

static string name[] = {"nothing", "January", "February", "March", "April",

"May", "June", "July", "August", "September", "October",

"November", "December" };

cout << '\n' << name[month] << ' ' << day << "," << year << '\n';

}

Date::~Date()

{

cout << "Thank You for using DateLine Services and have a nice date\n";

}

int Date::GetMonth()

{

return month;

}

// Precondition: 1 <= mn <= 12

void Date::SetMonth(int mn)

{

month = mn;

}

int main()

{

Date mydate(1, 2, 1993);

Date date2(4,12,1994);

Date date3;

mydate.display();

date2.display();

date3.display();

}

Explanation:

4 0
3 years ago
What will the computer do in response to a line of code reading # name = input("What is your name?")
lorasvet [3.4K]

Answer:

it would show What is your name? on the screen and you would be able to input your name

Explanation:

4 0
3 years ago
What is the value of 25 x 103 = ________?
ira [324]

Answer:

2575

heres coorect

6 0
3 years ago
Read 2 more answers
Other questions:
  • Technician A says that if the coefficient of friction is too low, the brakes will grab.
    12·1 answer
  • Does anyone have game design in connections
    13·1 answer
  • Once I have entered text into a presentation, how do I modify the font style of the text? Select the text and use options availa
    9·2 answers
  • Write an expression that prints 'You must be rich!' if the variables young and famous are both True. Sample output with inputs:
    9·1 answer
  • An IT suspects that an unauthorized device is connected to a wireless network. This is a result of pastry sharing on a device br
    13·1 answer
  • A studio camera is generally small and lightweight enough to be taken out into the
    11·1 answer
  • Can you move it like this? I can shake it like that
    6·1 answer
  • Question 1 (1 point)
    5·2 answers
  • A major concern in the home is the __________ of young children. (6 Letters)
    10·2 answers
  • How does a fully integrated Data and Analytics Platform enable organizations to convert data into consumable information and ins
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!