D.) Write down the error message and research the cause based on the message.
Answer:
The capacity of the drive in Gigabytes equals 1.0737 Gbs
Explanation:
Given there are 1024 tracks per surface.
Number of surfaces = 8
Hence number of tracks in 8 surfaces equals
tracks
Now it is given that there are 256 sectors per track thus the number of sectors in 8192 tracks equals
sectors
Now it is given that there are 512 bytes per sector thus the number of bytes in 2097152 equals
bytes
Converting to gigabytes the capacity of the drive in gigabytes equals 1.0737Gbs
Answer:
userpassword = {"123456",
"password",
"123456789",
"12345678",
"12345",
"111111",
"1234567",
"sunshine",
"qwerty",
"abc123"}
#We define the function that prompts the user for a password
def user_passinput():
password = input("Choose enter a password: ")
return password
#Function that checks the password
def check_password():
count = 0
check_pass = user_passinput()
if check_pass in userpassword:
print("Yay!! you entered the correct password")
elif count <10:
count = count+1
print("Please try again")
user_passinput()
else:
print ("Maximum tries exceeded")
check_password()
Explanation:
Using Python for this code, in the first line of the code, we list the dictionary of 10 most common passwords searched on the web. In line 12, we define the function that will demand the user to enter a password and return the value the user entered. Line 16 defines the function that checks if the password is common and prints to the screen either "Yay!! you entered the correct password", "Please try again" or "Maximum tries exceeded" depending on the condition that is satisfied. The last line of the code calls the check_password() function, which actually initiates the designed program.
Answer:
- #include <iostream>
- using namespace std;
- class myinteger {
-
- private:
- int value;
-
- public:
- myinteger(int x){
- value = x;
- }
-
- int getValue(){
- return value;
- }
-
- };
- int main()
- {
- myinteger obj(4);
- cout<< obj.getValue();
- return 0;
- }
Explanation:
Firstly, we use class keyword to create a class named myinteger (Line 5). Define a private scope data field named value in integer type (Line 7 - 8).
Next, we proceed to define a constructor (Line 11 - 13) and a getter method for value (Line 15 -17) in public scope. The constructor will accept one input x and set it to data field, x. The getter method will return the data field x whenever it is called.
We test our class by creating an object from the class (Line 23) by passing a number of 4 as argument. And when we use the object to call the getValue method, 4 will be printed as output.
The organization must develop it specifically for the business in order to get the functionality required is True.
a) true
<u>Explanation:</u>
In software development industry it called as EAS. Where organizations required complete one solution and made most customizable with less cost effective.
Moreover to implement the same organizations has to spend less money for software development and hardware appliances. An organization has clear documented which specific their business requirements and their business future expansion.
Basically in organization from low grade employee to higher employee and meeting is arranged and understand system requirements and compiled as document which is circulated to higher official in organization for their final approval.