Given a variable s that contains a non-empty string, write some statements that use a while loop to assign the number of lower-case vowels ("a","e","i","o","u") in the string to a variable vowel_count.

Answers

Answer 1

Answer:

Following is the program in the python language

s="Hellooo" #string initialization

k=0 # variable declaration

vowel_count=0 #variable declaration

while k<len(s): #iterating the loop

   c1=s[k] #store in the c1 variable  

   if c1=='a' or c1=='e' or c1=='i' or c1=='o' or c1=='u': #check the condition

       vowel_count= vowel_count +1; # increment the variable vowel_count  

   k = k+1

print(vowel_count) #display

Output:

4

Explanation:

Following is the description of program

Create the string "s" and store some characters on them.Declared the variable "k" and initialized 0 on them .Declared the variable "vowel-count" and initialized 0 on them .Iterating the while loop ,inside that loop we shifted the string "s" into the " c1" variable and checking the condition in the if block by using or operator if the condition is true then it increment the "vowel_count"  variable by 1 .Finally outside the loop we print the value of "vowel_count".

Related Questions

any element that has a starting tag and does not have a closing tag is called a ?
pls be quick guys​

Answers

Answer:

Any element that has a starting tag and doesn't have a closing tag is called a empty element.

:)

Observe the things at Home in which you are using binary
conditions (ON/OFF) and Draw these things (any five).​

Answers

Explanation:

All five things i can come up with her

1. Doors (we either open or close them)

2. Tap (we either open or close the valve)

3.  Electric stove/cooker

4. The lid of containers

5. Shoes/ foot wears(we put them ON or OFF)

)You have been asked to do voice-overs and ""wild lines"" for a film. What is your position on the film crew? Boom operator Sound board operator Production sound mixer Sound designer

Answers

Answer:

Sound designer.

Explanation:

A boom operator is responsible for positioning of the microphone.

A sound board operator is responsible for playing pre-recorded sound effects.

A production sound mixer records all sounds on the set.

A sound designer creates and edits new sounds.

In conclusion, it must be a sound designer as this best fits the role.

When Adobe Photoshop was released for the first time? A: 1984 B: 1990 C: 1991 D: 1992

Answers

Answer:

B

Explanation:

TLS does not require mutual authentication. Only server must authenticate its public key to the client. Client is authenticated by the application via a password. The most common way for public key authentication would be a. a photo ID. b. a password. c. a certificate. d. biometrics.

Answers

Answer:

c. a certificate.

Explanation:

Public key infrastructure authentication is intended to make transactions occurring through the internet as secure as possible. Public keys are usually assigned to entities like business firms or individuals, and digital certificates are given to them as proof that they have been authenticated.

A certificate authority has the role of signing, storing, and issuing digital certificates. A software or humans could be charged with the responsibility of actually ensuring a key to user binding if all conditions are satisfied.

When introducing new devices to the network, the organization's security policy requires that devices be monitored to establish normal traffic patterns for the device. Which of the following is generated from initial monitoring?
A. SLA
​B. Baseline
​C. Forensic log
D. Vulnerability assessment

Answers

Answer:

The answer is "Option B".

Explanation:

The Baseline measurement is an essential characteristic of effective coal company monitoring programs to assess the degree of mining effects and keep on improving effect monitoring the system will continue to be modified via periodical analyses, and the wrong choices can be defined as follows:

In choice A, it is wrong because it used in 3D printing technology. In choice C, it is used to analyze the log entities, that's why it is wrong. In choice D, it is used to analyze the security weaknesses, that's why it's wrong.

Explain what a honeypot is. In your explanation, give at least one advantage and one disadvantage of deploying a honeypot on a corporate network.

Answers

Answer:

A honeypot is a computer network set up to act as a decoy to track, deflect, or research trying to obtain unwanted access to the information system.

Explanation:

A honeypot is a device or device network designed to imitate possible cyber-attack targets. It can be utilized to detect or deflect assaults from a legitimate military target. It may also be used to collect knowledge on how cybercrime works.

Advantage:-

Data Value:- One of the challenges faced by the research community is to obtain meaning from big data. Companies hold large quantities of data daily including firewall logs, device logs, and warnings for vulnerability scanning. Resources:- The problem facing most protection systems is resource shortages or even the depletion of resources. Power saturation is when a protection asset can no longer work since it is overloaded by its assets. Simplicity :- I find simplicity to be the biggest single strength of honeypots. No flashy techniques are to be created, no stamp computer systems to be managed, no rule units to be misconfigured.

Disadvantage:-  

That honeypot doesn't replace any safety mechanisms; they just operate with your overall security infrastructure and improve it.

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10(), displayNumberPlus100(), and displayNumberPlus1000(). Create each method to perform the task its name implies. Save the application as ArithmeticMethods.java.

Answers

Answer:

public class ArithmeticMethods

{

public static void main(String[] args) {

    int number1 = 7;

    int number2 = 28;

 displayNumberPlus10(number1);

 displayNumberPlus10(number2);

 displayNumberPlus100(number1);

 displayNumberPlus100(number2);

 displayNumberPlus1000(number1);

 displayNumberPlus1000(number2);

}

public static void displayNumberPlus10(int number){

    System.out.println(number + 10);

}

public static void displayNumberPlus100(int number){

    System.out.println(number + 100);

}

public static void displayNumberPlus1000(int number){

    System.out.println(number + 1000);

}

}

Explanation:

Inside the main:

Initialize two integers, number1 and number2

Call the methods with each integer

Create a method called displayNumberPlus10() that displays the sum of the given number and 10

Create a method called displayNumberPlus100() that displays the sum of the given number and 100

Create a method called displayNumberPlus1000() that displays the sum of the given number and 1000

It's not possible to die in an alcohol-related collision if you're not in an automobile.
A. True
B. False

Answers

Answer:

B. False

Explanation:

Consumption of alcohol is not a good practice and is generally not allowed at the time of driving an automobile and is considered to be an offense as it may be injurious to health and property. As too much alcohol can create possible chances of collusions and even if the person is not in an automobile can result in a collision if tries to cross the road. Like head injuries or leg injuries can occur.

A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated.

(1) Output the user's input. Enter integer: 4 You entered: 4

(2) Extend to output the input squared and cubed. Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64!!

(3) Extend to get a second user input into userNum2. Output sum and product. Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64!! Enter another integer: 5 4+5 is 9 4*5 is 20.

Answers

Answer:

This program is written using Java programming language.

No comments were used; however, see explanation section for line by line explanation

import java.util.*;

public class Nums {

   public static void main(String args[]) {

     Scanner input = new Scanner(System.in);

     System.out.println("1.");

     int userNum;

     System.out.print("Enter Integer: ");

     userNum = input.nextInt();

     System.out.println("You entered: "+userNum);

     

     System.out.println("2.");

     System.out.print("Enter Integer: ");

     userNum = input.nextInt();

     System.out.println("You entered: "+userNum);

     System.out.println(userNum+" squared is "+(userNum * userNum));

     System.out.println("And "+userNum+" cubed is "+(userNum * userNum * userNum)+"!!");

     

     System.out.println("3.");

     System.out.print("Enter Another integer: ");

     int userNum2 = input.nextInt();

     System.out.println(userNum+" + "+userNum2+" is "+(userNum + userNum2));

     System.out.println(userNum+" * "+userNum2+" is "+(userNum * userNum2));

     

   }

}

Explanation:

This enables the program accept inputs

     Scanner input = new Scanner(System.in);

This signifies the beginning of number 1

     System.out.println("1.");

Variable userNum is declared as type integer

     int userNum;

The line prompts the user for input

     System.out.print("Enter Integer: ");

The line accepts the input

     userNum = input.nextInt();

This line displays user input

     System.out.println("You entered: "+userNum);

     

This signifies the beginning of number 2

     System.out.println("2.");

This line prompts the user for input

     System.out.print("Enter Integer: ");

This line accepts input

     userNum = input.nextInt();

This line prints user input (as required in number 2)

     System.out.println("You entered: "+userNum);

This line calculates and prints the square of user input

     System.out.println(userNum+" squared is "+(userNum * userNum));

This line calculates and prints the cube of user input

     System.out.println("And "+userNum+" cubed is "+(userNum * userNum * userNum)+"!!");

     

This signifies the beginning of number 3

     System.out.println("3.");

This line prompts the user for another integer value

     System.out.print("Enter Another integer: ");

This line accepts the input from the user

     int userNum2 = input.nextInt();

This line adds the two inputs by the user and displays the result

     System.out.println(userNum+" + "+userNum2+" is "+(userNum + userNum2));

This line multiplies the two inputs by the user and displays the result

     System.out.println(userNum+" * "+userNum2+" is "+(userNum * userNum2));

What happens if you attempt an operation that uses the input stream and the operation fails but the stream is OK

Answers

Answer:

The fail bit of the stream object will be set.

Explanation:

The Input Stream is been used to effectively and efficiently read data from a source .

Therefore in a situation in which an individual or a person attempt an operation that uses the input stream and the operation fails but the stream is OK this means that the fail bit of the stream object will be set . FAILBIT is generally set in a situation where the error that occured involves the loss of integrity of the stream in which it is more likely to persist even if various operation is been carried out or attempted on the stream which is why FAIL BIT can always be checked independently by calling the member function bad.

Lastly FAILBIT is as well set because of a read or write operation that fails.

Choose all of the correct answers for each of the following:
[1] The number of superkeys of a relation R(A, B, C, D) with keys {A} and {B, C} is
1-2..
2- 10..
3- 12..
4- All of the above..
5- None of the above..
[2] The relations of two subentities of the same entity set have
1- The same keys..
2- The same attributes..
3- The same functional dependencies..
4- The same natural joins with their super entity set..
5- All of the above..
6- None of the above..
[3] A relation R
1- Is in BCNF if R is in 3NF..
2- Is in 3NF if R is in BCNF..
3- May be in BCNF but not in 3NF..
4- May be in 3NF but not in BCNF..
5- May be neither in BCNF nor in 3NF..
6- All of the above..
7- None of the above..
[4] The natural join of relations R and S may be expressed as
1- (oc(R x S))..
2- 0ca_ (R x S))..
3- Neither "1" nor "2"..
4- Either "1" or "2"..
[5] A tuple constraint that references an attribute R.A to attribute S.B is checked
1- When changes in R are made..
2- When changes in R.A are made..
3- When changes in S are made..
4- When changes in S.B are made..
5- Any of the above..
6- None of the above..

Answers

Answer:

[1] = 10

[2] = The same natural joins with their super entity set

[3] = Is in 3NF if R is in BCNF

[4] = Neither "1" or "2"

[5] = When changes in R.A are made

Explanation:

[1] The number of super keys of a relation R(A, B, C, D) with keys {A} and {B, C} is 10.  The super keys of the given relations are {A}; {A, B}; {A,C}; {A,D}; {A,B,C}; {A,B,D}; {A,C,D}; {A,B,C,D}; {B,C}; {B,C,D}.

[2] key is used to uniquely identify entity from entity set. So key for every entity is unique. Subentities can have different attributes. Also functional dependencies can be different but natural join with their super subsets will be same.

[3] For a relation R to be in BCNF it must be in 3NF but If a relation R is in 3NF it is not necessary that it will be in BCNF.

[4] The natural join of relations R and S is expressed by R ✕ S.

[5] If tuple constraint references an attribute R.A to S.B then every time a change is done in R.A the tuple constraint is checked.

A vowel word is a word that contains every vowel. Some examples of vowel words are sequoia, facetious, and dialogue. Determine if a word input by the user is a vowel word.

Answers

Answer:

vowels = ("a", "e", "i", "o", "u")

word = input("Enter a word: ")

is_all = True

for c in vowels:

   if c not in word:

       is_all = False

if is_all == True:

   print(word + " is a vowel word.")

else:

   print(word + " is not a vowel word.")

Explanation:

Initialize a tuple, vowels, containing every vowel

Ask the user to enter a word

Initially, set the is_all as True. This will be used to check, if every vowel is in word or not.

Create a for loop that iterates through the vowels. Inside the loop, check if each vowel is in the word or not. If one of the vowel is not in the vowels, set the is_all as False.

When the loop is done, check the is_all. If it is True, the word is a vowel word. Otherwise, it is not a vowel word.

An F-1 ____________ may be authorized by the DSO to participate in a curricular practical training program that is an__________ part of an established curriculum. Curricular practical training is defined to be alternative work/study, internship, cooperative education, or any other type of required internship or practicum that is offered by sponsoring employers through cooperative _____________ with the school. Students who have received one year or more of full time curricular practical training are ineligible for post-completion academic training. Exceptions to the one academic year requirement are provided for students enrolled in _____________ studies that require immediate participation in curricular practical training. A request for authorization for curricular practical training must be made to the DSO. A student may begin curricular practical training only after receiving his or her Form I-20 with the __________ endorsement.

Answers

Answer:

1. Student.

2. Integral.

3. Agreements.

4. Graduate program.

5. DSO.

Explanation:

An F-1 student may be authorized by the DSO to participate in a curricular practical training program that is an integral part of an established curriculum. Curricular practical training is defined to be alternative work/study, internship, cooperative education, or any other type of required internship or practicum that is offered by sponsoring employers through cooperative agreement with the school. Students who have received one year or more of full time curricular practical training are ineligible for post-completion academic training. Exceptions to the one academic year requirement are provided for students enrolled in graduate program studies that require immediate participation in curricular practical training. A request for authorization for curricular practical training must be made to the DSO. A student may begin curricular practical training only after receiving his or her Form I-20 with the DSO endorsement.

Please note, DSO is an acronym for Designated School Official and they are employed to officially represent colleges or universities in the United States of America. They are saddled with the responsibility of dealing with F-1 matters (a visa category for foreign students seeking admission into schools such as universities or colleges in the United States of America).

The purpose of validating the results of the program is Group of answer choices To create a model of the program To determine if the program solves the original problem To correct syntax errors To correct runtime errors

Answers

Answer:

To determine if the program solves the original problem

Explanation:

Required

Essence of validating a program

From list of given options, only the above option best describes the given illustration.

When a program is validated, it means that the results of the program are tested to meet the requirements of the user;

For a program to be validated, it means it has passed the stage of error checking and correction; whether syntax or run time errors;

However, when modifications are made, the program will need to be re-validated to ensure that it comports with its requirements.

Instead of typing an individual name into a letter that you plan to reuse with multiple people, you should use a _______ to automate the process.
A. mail merge
B. data source
C. mailing list
D. form letter
ONLY ANSWER IF YOU'RE 100% SURE.

Answers

Answer:

A. Mail Merge

Explanation:

I had this question last year

reate a class called Plane, to implement the functionality of the Airline Reservation System. Write an application that uses the Plane class and test its functionality. Write a method called CheckIn() as part of the Plane class to handle the check in process Prompts the user to enter 1 to select First Class Seat (Choice: 1) Prompts the user to enter 2 to select Economy Seat (Choice: 2) Assume there are only 5-seats for each First Class and Economy When all the seats are taken, display no more seats available for you selection Otherwise it displays the seat that was selected. Repeat until seats are filled in both sections Selections can be made from each class at any time.

Answers

43 if you forgot the 43

Calculator Create a program that calculates three options for an appropriate tip to leave after a meal at a restaurant.

Specifications:

a. The program should calculate and display the cost of tipping at 15%, 20%, or 25%.
b. Assume the user will enter valid data.
c. The program should round results to a maximum of two decimal places.

Answers

Answer:

I am writing a Python program:

print("Tip Calculator \n")

bill = float(input("Cost of meal: "))

tip15pc = bill * 0.15

tip20pc = bill * 0.20

tip25pc = bill * 0.25

print("\n15%")

print("Tip amount: %.2f"% (tip15pc))

print("Total amount: %.2f \n" % (bill + tip15pc))

print("20%")

print("Tip amount: %.2f"% (tip20pc))

print("Total amount: %.2f \n" % (bill + tip20pc))

print("25%")

print("Tip amount: %.2f"% (tip25pc))

print("Total amount: %.2f" % (bill + tip25pc))

Explanation:

The program first prints the message: Tip Calculator

bill = float(input("Cost of meal: ")) This statement prompts the user to enter the amount of the bill of meal. The input value is taken as decimal/floating point number from user.

tip15pc = bill * 0.15  This statement calculates the cost of tipping at 15%

tip20pc = bill * 0.20 This statement calculates the cost of tipping at 20%

tip25pc = bill * 0.25 This statement calculates the cost of tipping at 25%

print("\n15%")  This statement prints the message 15%

print("Tip amount: %.2f"% (tip15pc))  this statement displays the amount of tip at 15% and the value is displayed up to 2 decimal places as specified by %.2f

print("Total amount: %.2f \n" % (bill + tip15pc))  This statement prints the total amount by adding the cost of mean with the 15% tip amount.

The program further computes the the amount of tip at 20% and 25%. The resultant values are displayed up to 2 decimal places as specified by %.2f Then the program prints the total amount by adding the cost of mean with the 20%  and 25% tip amounts just as computed for the 15% tip.

The screenshot of the program as well as its output is attached.

Patrick Stafford's article argues that the growth of mobile phone usage "has given developers the ability to great robust and engaged communities" that help a game's chance of success.
a. true
b. false

Answers

Answer:

The statement is False.

Explanation:

In his article published on the 31st Aug 2010, Patrick suggests that a 100% penetration rate for any market is now possible due to the growth of the use of mobile phones.

The strategy of accessing the market using mobile ads, according to Patrick, is called Mobile Marketing.

In his article, Patrick provides statistics which help buttress his position that a good number of mobile phone users are ready to respond positively to mobile ads.

While it is implied that this concept has increased the chances of mobile games as a product being successful, nowhere in the article did Patric mention "games".

Cheers!

Assume that a program consists of integer and floating-point instructions. 60% of the total execution time is spent on floating point instructions and the remaining 40% is on integer instructions. How much faster should we run the floating-point instructions to execute entire program 1.25 times faster

Answers

Answer:

the floating-point instructions  should be run 1.5 times faster in order to execute entire program 1.25 times faster

Explanation:

Given that:

a program consists of integer and floating-point instructions. 60% of the total execution time is spent on floating point instructions and the remaining 40% is on integer instructions.

Let the integer be the total execution time = V

The  floating-point instructions = 60%

The integer instruction = 40%

The time spent on the floating-point instruction = 60/100 × V

= 0.6 V

The time spent on t he integer instruction = 40/100 × V

= 0.4 V

However; How much faster should we run the floating-point instructions to execute entire program 1.25 times faster

If we are to execute the entire program 1,25 times faster;

The new execution time = V/1.25

Assuming the new time spent on floating-point instruction = W

W + 0.4 V = V/1.25

W = V/1.25 - 0.4 V

W = (V - 0.5V)/1.25

W = 0.4V

the new time spent on floating-point instruction = W = 0.4 V

The speed required to make the floating -point instruction to run faster = 0.6V/.4 V

= 1.5

Hence,  the floating-point instructions  should be run 1.5 times faster in order to execute entire program 1.25 times faster

Which operating system problem might cause the desktop background to change
unexpectedly? Choose the answer.
A boot failure
B startup loop
C malware D incompatibility

Answers

It should be noted that the operating system problem that might cause the desktop background to change is D incompatibility.

What is operating system problem?

The operating system problem serves as those error that can affect the operation of the operating system in computer.

This System errors are caused by malfunctioning hardware components as well as corrupted operating system modules and one of this is compatibility.

Learn more about operating system problem at;

https://brainly.com/question/17506968

How does computer mouse impact the world, society and health?

Answers

Explanation:

Without it, we may have endured convoluted keyboard commands for years, greatly hindering the process of bringing the PC into homes everywhere. The mouse revolutionized computer interfaces, simplified an otherwise scary machine, and helped connect the world.

The key schedule results in generating multiple keys from the one secret key. These multiple keys are used:

a. in multiple sessions of communications one after the other. For example, if someone has 12 keys, they can use it for twelve video calls one after the other.
b. such that one of them is picked up at random at a time.
c. some as private keys, some as public keys.
d. for different rounds of encryption for the same plaintext to strengthen the cipher.

Answers

Answer:

Option(d) is the correct answer to the given question .

Explanation:

There are various type of algorithm is used for the purpose of the key scheduling such as AES .in the AES algorithm we used same key for encryption and decryption of text .The  main objective of the AES algorithm it is used by Various round of the similar plain text encryption to reinforce the cipher text.

The Option (a) is wrong because In the key scheduling the creating keys are not being used one after just another in the various communication cycles.The Option (b) is wrong because In the key scheduling  we do not used the  the random key for the encryption process .The Option (c) is wrong because we will never arbitrarily subdivided into groups of public and private key.

Define a function begins_with_line that consumes a string and returns a boolean indicating whether the string begins with a dash ('-') or a underscore '_'. For example, the string "-Yes" would return True but the string "Nope" would return False. Note: Your function will be unit tested against multiple strings. It is not enough to get the right output for your own test cases, you will need to be able to handle any kind of non-empty string. Note: You are not allowed to use an if statement.

Answers

Answer:

The program written in python is as follows:

def begins_with_line(userinut):

     while userinut[0] == '-' or userinut[0] == '_':

           print(bool(True))

           break;

     else:

           print(bool(not True))

userinput = input("Enter a string: ")

begins_with_line(userinput)

Explanation:

The program makes use of no comments; However, the line by line explanation is as follows

This line defines the function begins_with_line with parameter userinut

def begins_with_line(userinut):

The following italicized lines checks if the first character of user input is dash (-) or underscore ( _)

     while userinut[0] == '-' or userinut[0] == '_':

           print(bool(True))  ->The function returns True

           break;

However, the following italicized lines is executed if the first character of user input is neither dash (-) nor underscore ( _)

     else:

           print(bool(not True))  -> This returns false

The main starts here

The first line prompts user for input

userinput = input("Enter a string: ")

The next line calls the defined function

begins_with_line(userinput)

NB: The program does not make use of if statement

Write a program that inputs a sentence from the user (assume no punctuation), then determines and displays the unique words in alphabetical order. Treat uppercase and lowercase letters the same.

Answers

Answer:

Following are the code to this question:

val={} #defining dictionary variable val

def unique_word(i):#defining a method unique_word    

   if i in val: #defining if condition to add value in dictonary          

       val[i] += 1#add values  

   else: #defining else block to update values        

       val.update({i: 1})#updating dictionary

s =input('Enter string value: ') #defining s variable for input string value

w=s.split()#split string value and sorte in w variable

w.sort() #sorting the value  

for i in w: #defining loop for pass value in method unique_word

   unique_word(i)#assign value and calling the unique_word method

for j in val:# defining for loop to print dictionary value  

   if val[j] == 1: #defining if block to check value is unique  

       print(j) #print value

Output:

Enter string value: my name is dataman

dataman

name

is

my  

Explanation:

In the above python code, a dictionary variable "val" is declared, which is used in the method "unique_word" that uses if block to count unique word and in the else block it update its value. In the next step, s variable is declared, that the user input method to store the value and another variable "w" is defined that split and sort the string value. In the last step, two for loop is declared in which the first loop passes the string value and calls the method "unique_word", and in the second loop if block is defined that check unique value and prints its value.

CHALLENGE ACTIVITY 2.15.1: Reading and outputting strings. Write a program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. End with newline. Example output if the input is: Maya Jones Jones, Maya.

Answers

Answer:

Following are the program in Java language

import java.util.*; // import package

public class Main  // main function

{

public static void main(String[] args)  // main class

{

    String l_name,f_name; // variable declaration

    Scanner sc6=new Scanner(System.in); // scanner class

   f_name= sc6.next(); // Read input

 l_name=sc6.next(); // Read input

 System.out.print(l_name); // display last name

  System.out.print(","); // display comma

   System.out.println(f_name); // display first name

}

}

Output:

Maya Jones

Jones, Maya

Explanation:

Following are the description of program

Declared a variable  'l_name","f_name" as the string type .Create the instance of scanner class i.e "sc6".Read the user input by using the instance "sc6" of the scanner class in the variable "l_name" and "f_name ".Finally by system.print() method we will display the value according to the format in the given question .

The CPU control unit is responsible for A. obtaining instructions B. interpreting instructions C. all logic functions D. both A and B

Answers

Answer:

D. Both A and B

Explanation:

Because it controls the input and output of data, check the signals have been delivered successfully, and make sure that data goes to the correct place at the correct time.

Eight-queen's problem Consider the classic puzzle of placing eight queens on an 8 x 8 chessboard so that no two queens are in the same row or in the same column or on the same diagonal. How many different positions are there so that
no two queens are on the same square?
no two queens are in the same row?
no two queens are in the same row or in the same column?
Also, estimate how long it would take to find all the solutions to the problem by exhaustive search based on each of these approaches on a computer capable of checking 10 billion positions per second.

Answers

Answer:

12 solutions16,777,21640320 ways

Explanation:

A) No two queens on the same square

Placing eight queens on an 8 * 8 chessboard has a total of 92 Separate   solutions but unique 12 solutions

The total no of possible solutions using the computational method is

= 64! / (56! * 8! ) ~ 4:4 * 109

but since there are 12 unique solution out of the 92 therefore

B) No two queens are in the same row

= 8^8 = 16,777,216

C) No two queens are in the same row or in the same column

= 8! = 40320 ways

It will approximately take less than a second for a computer with the capability of checking 10 billion positions per second to find all the solutions

On a system with paging, a process cannot access memory that it does not own. Why? How could the operating system allow access to other memory?

Answers

Answer:

Because the page is not in its page tableThe operating system could allow access to other memory by allowing entries for non-process memory to be added to the process page table

Explanation:

On a system with paging, a process cannot access memory that it does not own because the page is not in its page table also the operating system controls the contents of the table,therefore it limits a process of accessing to only the physical pages allocated to the process.

The operating system could allow access to other memory by allowing entries for non-process memory to be added to the process page table.that way two processes that needs to exchange  data can efficiently do that . i.e creating a very efficient inter-process communication

intext:"The browser feature which enables tabs to work independently from one another so if one crashes, the others may continue to work is known as"

Answers

Is it Tab Isolation?
Other Questions
what does varying locally mean? The connection between producers and consumers is that onlya: heterotrophs can perform photosynthesis to produce energy for all lifeb: heterotrophs can perform cellular respiration producing oxygen for all organismsc: producers use cellular respiration to produce energy for all lifed: autotrophs can use sun energy to produce energy for all organisms For each of the sequence below identify whether there is a common ratio. If there is identity what it is. If there is not a common ratio type none. In what way were civil liberties in the United States affected by the First World War? Consider the system of four linear inequalities. The lines corresponding to these inequalities are shown in the graph below, along with the lettered regions they define. Which lettered region defines the solution to the system of inequalities? Simplify the given expression. 2x^2-2/x/2(x^2+9)/16x^2-29x if x+y=12 and xy=32,then find X and yanswer with explaination What is the slope of this line? 2 POINTSRead the following excerpt from Heart of Darkness.Paths, paths, everywhere; a stamped-in network of pathsspreading over the empty land, through the long grass,through burnt grass, through thickets, down and up chillyravines, up and down stony hills ablaze with heat.Which of the following emotions does the connotation of the word emptyevoke in the passage?A. PeaceB. FreedomC. VulnerabilityD. Loneliness The perimeter of an equilateral triangle must be at most 57 feet. Create an inequality to findwhat the length of the sides should be. Solve the inequality by showing all of your work. How much credit should Cortez be given conquering the Acetzs In parallelogram ABCD, points E and F are the midpoints of side AB and BC, respectively. A F meets DE at G and BD at H. What is the area of quadrilateral BHGE if the area of ABCD is 60? Are farmers able to produce more food today, or were they able to produce more in the past? do inuits believe that three souls depart from a person at death? one.souls journey along the unspoken path and determines if you are able to reconnect with ancestors or return to earth as a spirit. True or false. If the herbivore population in an ecosystem increased, what would most likely happen to the size of the carnivore population? It would decrease. It would increase. It would die off. It would remain the same. What two different approaches did the Knights of Labor and the American Federation of Labor take in building a union organization? (2 points) How many 3-digit numbers can be formed if repetition isallowed? The weights of college football players are normally distributed with a mean of 200 pounds and a standard deviation of 50 pounds. If a college football player is randomly selected, find the probability that he weighs between 170 and 220 pounds. Round to four decimal places. Which ending to the scenario is an example of Tron using a refusal strategy? Tron looks away and quietly says, "I have never noticed that about her before." Tron looks toward Shazia and loudly says, " Yeah, she sure sounds like a real idiot!" Tron looks Nanette in the eyes and clearly states, "Shazia is my friend and what you said is hurtful." Tron looks at Nanette and sarcastically says, "I think she sounds just like you when she talks." Holiday lights are often connected in series and use special lamps that short out when the potential difference across a lamp increases to the line voltage. Generate an explanation why and explain why these light sets might blow their fuses after many bulbs have failed.