The pseudo-class selectors for links let you use CSS to change the formatting for all but one of the following. Which one is it?
a.
a link that has the focus or is being hovered over
b.
a link that is inactive
c.
a link that hasn’t been visited
d.
a link that has been visited

Answers

Answer 1
B. A link that is inactive

Related Questions

Use the Law of Sines to solve the triangle. Round your answers to two decimal places.
A = 99.7°, C = 20.4º, a = 27.4​

Answers

Answer: 37.1

Explanation: The Law of sines states that there is a proportionality between a side of triangle and its correspondent angle, i.e.:

[tex]\frac{a}{sinA} = \frac{b}{sinB} = \frac{c}{sinC}[/tex]

where:

a, b and c are sides

A, B and C are angles

In the question, there is a triangle with 27.4 as a measure of side a, angles A and C. So, it wants the side c:

[tex]\frac{a}{sinA} = \frac{c}{sinC}[/tex]

[tex]\frac{27.4}{sin(99.7)} = \frac{c}{sin(20.4)}[/tex]

c = [tex]\frac{27.4.sin(20.4)}{sin(99.7)}[/tex]

c = 37.1

The side c is 37.1

When composing an email message:a.ideas should be organized inductively when the message contains good news or routine information.b.just be direct, since such communications are routine.c.present the information in the order it is likely needed or will be best received.d.avoid repeating information that is in the subject line in the opening sentence.

Answers

Question:

When composing an email message:

A) ideas should be organized inductively when the message contains good news or routine information.

B) just be direct, since such communications are routine.

C) present the information in the order it is likely needed or will be best received.

D) avoid repeating information that is in the subject line in the opening sentence.

Answer:

The correct answer is C)

When writing emails, it helps to put ones self in the shoes of the recipient. This helps us to present our thoughts in the way that the recipient will best receive them.

In addition to the above, one must ensure that they go directly to the point, use a courteous tone, and ensure that the message is free from typographical errors whenever he or she is writing an email.

Cheers!

Create a public non-final class named Partitioner. Implement a public static method int partition(int[] values) that returns the input array of ints partitioned using the last array value as the pivot. All values smaller than the pivot should precede it in the array, and all values larger than or equal to should follow it. Your function should return the position of the pivot value. If the array is null or empty you should return 0.

Answers

Answer:

See Explaination

Explanation:

public class Partitioner {

public static int partition(int[] values){

if(values==null || values.length==0)return 0;

// storing the pivot value

int pivot = values[values.length-1];

//sorting the array

for(int i=0;i<values.length-1;i++){

int m_index = i;

for (int j=i+1;j<values.length;j++)

if(values[j]<values[m_index])

m_index = j;

int tmp = values[m_index];

values[m_index] = values[i];

values[i] = tmp;

}

int i = 0;

// first finding the index of pivot

// value in sorted order and recording index in i

while (i<values.length){

if(pivot==values[i]){

if(i==values.length-1)break;

int j=0;

// finding the location for inserting the

while (j<values.length){

if(pivot<=values[j]){

// inserting the values

values[i] = values[j];

values[j] = pivot;

break;

}

j++;

}

break;

}

i++;

}

return i;

}

// main method for testing can be removable

public static void main(String[] args) {

int a[] = {4,1,6,2};

System.out.println(partition(a));

}// end of main

}

Create a function average_temp(s) that accepts a file name s that contains temperature readings. Each line in the file contains a date followed by 24 hourly temperature readings in a comma-separated-value format, like this example:

2/3/2016,18,17,17,18,20,22,25,30,32,32,32,33,31,28,26,26,25,22,20,20,19,18,18,18

For each line in the file, the function should print out a line containing two items: the date, then comma, then the average temperature on that date, e.g.

3/5/2018, 58.24

3/6/2018, 60.11

3/7/2018, 57.55

Answers

Answer:

def average_temp(s): f = open("s.txt","r") for line in f: myList = line.split(",") print(myList[0],end=",") t=0 for i in range(1,25,1): t += int(myList[i]) t /= 24 print(t) f.close()

def average_temp(s):

f = open("s.txt","r")

for line in f:

myList = line.split(",")

print(myList[0],end=",")

t=0

for i in range(1,25,1):

t += int(myList[i])

t /= 24

print(t)

f.close()

Explanation:

I used Python for the solution.

Bob and Alice have agreed that Bob would answer Alice's invitation using ElGamal with the following parameters: ( prime p = 29, e1= 3, d = 5 and the random r = 7 ) find first the set of public and private keys. Bob replies in pairs of C1,C2 as follows: (12, 27), (12, 19), (12, 13), (12, 22), (12, 0), (12, 2), (12, 25), (12, 19), (12, 1), (12, 22), (12, 3), (12, 23), (12, 1), (12, 4). Please decipher the response that Bob sent to Alice.

Answers

Answer:

540, 380,260,440, 0, 40, 500, 380, 20, 440, 60, 460, 20 and 80.

Explanation:

So, we are given the following parameters or data or information which is going to assist us in solving the question above, they are;

(1). "prime p = 29, e1= 3, d = 5 and the random r = 7"

(2). C1C2 reply; "(12, 27), (12, 19), (12, 13), (12, 22), (12, 0), (12, 2), (12, 25), (12, 19), (12, 1), (12, 22), (12, 3), (12, 23), (12, 1), (12, 4)".

So, let us delve into the solution to the question;

Step one: determine the primitive modulo 29.

These are; 2, 3, 8, 10, 11, 14, 15, 18, 19, 21, 26, 27.

Step two: Compute V = k ^c mod p.

Say k = 2.

Then;

V = 2^7 mod 29 = 128 mod 29.

V = 12.

Step three: determine the Public key.

Thus, (p,g,y) = (29,2,12)

Private key = c = 7.

Step four: decipher.

Thus for each code pair we will decided it by using the formula below;

(1). (12,27).

W = j × b^(p - 1 - c) mod p.

W= 27 × 12^(29 -1 -7) mod 29. = 540

(2). (12, 19).

19 × 12^(29 - 1 - 7) mod 29.

( 12^(29 - 1 - 7) mod 29 = 20).

= 19 × 20 = 380.

(3).(12, 13) = 13× 20 = 260.

(4). (12, 22) = 22 × 20 = 440

(5). (12, 0) = 0 × 20 = 0.

(6). (12, 2) = 2× 20= 40.

(7). (12, 25) = 25 × 20 = 500.

(8). (12, 19) = 19 × 20 = 380.

(9).(12, 1) = 1 × 20 = 20.

(10). (12, 22) = 22 × 20 = 440.

(11). (12, 3) = 3× 20 = 60.

(13). (12, 23) = 23 × 20 = 460.

(14). (12, 1) =1 × 20 = 20.

(15). (12, 4) = 4 × 20 = 80.

Answer:

Answer:

540, 380,260,440, 0, 40, 500, 380, 20, 440, 60, 460, 20 and 80.

Explanation:

So, we are given the following parameters or data or information which is going to assist us in solving the question above, they are;

(1). "prime p = 29, e1= 3, d = 5 and the random r = 7"

(2). C1C2 reply; "(12, 27), (12, 19), (12, 13), (12, 22), (12, 0), (12, 2), (12, 25), (12, 19), (12, 1), (12, 22), (12, 3), (12, 23), (12, 1), (12, 4)".

So, let us delve into the solution to the question;

Step one: determine the primitive modulo 29.

These are; 2, 3, 8, 10, 11, 14, 15, 18, 19, 21, 26, 27.

Step two: Compute V = k ^c mod p.

Say k = 2.

Then;

V = 2^7 mod 29 = 128 mod 29.

V = 12.

Step three: determine the Public key.

Thus, (p,g,y) = (29,2,12)

Private key = c = 7.

Step four: decipher.

Thus for each code pair we will decided it by using the formula below;

(1). (12,27).

W = j × b^(p - 1 - c) mod p.

W= 27 × 12^(29 -1 -7) mod 29. = 540

(2). (12, 19).

19 × 12^(29 - 1 - 7) mod 29.

( 12^(29 - 1 - 7) mod 29 = 20).

= 19 × 20 = 380.

(3).(12, 13) = 13× 20 = 260.

(4). (12, 22) = 22 × 20 = 440

(5). (12, 0) = 0 × 20 = 0.

(6). (12, 2) = 2× 20= 40.

(7). (12, 25) = 25 × 20 = 500.

(8). (12, 19) = 19 × 20 = 380.

(9).(12, 1) = 1 × 20 = 20.

(10). (12, 22) = 22 × 20 = 440.

(11). (12, 3) = 3× 20 = 60.

(13). (12, 23) = 23 × 20 = 460.

(14). (12, 1) =1 × 20 = 20.

(15). (12, 4) = 4 × 20 = 80.

Explanation:

A user in the accounting department reports he or she cannot access the invoices that the sales department has placed on the shared drive. This points toward a possible problem with which component of the computer’s operating system? Networking Time-sharing Interrupts Device Driver

Answers

Answer:

Networking.

Explanation:

An operating system which was developed in the 1950s, is a software which acts as an intermediary between the computer hardware and end users.

The functions of an Operating System are; Memory, Device, Process, File, Secondary-Storage and Input/Output management.

The networking component of the computer's operating system ensures that a group of processors don't share memory, clock and hardware devices, instead the processors communicate with each other through the network.

Basically, the network Operating System (OS) runs on a server and provides the capability to serve to manage groups, user, application or program, data, security and any other networking functions.

Hence, the accountant couldn't access the invoices that the sales department placed on the shared drive because of a networking component problem of the computer’s operating system.

Create a structure with variables for a character, a string, an integer, and a floating point number. [Note: Use Typedef way of creating the structure]. The structure string variable is a "char* stringp". In other words, the structure will have a pointer to a string. Do not initialize the structure at definition time.

Answers

Answer:

See explaination

Explanation:

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

//we are creataing a structure and naming it 'datatype' using typedef

typedef struct structure

{

int n;

char ch;

char *stringp;

float f;

} datatype;

void main()

{

//declaring 5 'datatype' type pointers using array

datatype *dataArray[5];

int i;

char str[500];

//dynamically allocating the structure pointers

for(i = 0; i < 5; i++)

dataArray[i] = (datatype *)malloc(sizeof(datatype));

//loop for data input

for(i = 0; i < 5; i++)

{

printf("\nEnter Data for structure %d:\n", i + 1);

printf("Enter an integer: ");

scanf("%d", &dataArray[i]->n);

printf("Enter a single character: ");

//we need fflush to clear the input stream in order to be able

// to take new values

fflush(stdin);

//notice the blankspace before %c, this makes scanf ignore the preceding '\n' character

scanf(" %c", &dataArray[i]->ch);

//we need fflush to clear the input stream in order to be able

// to take new values

fflush(stdin);

printf("Enter a string: ");

gets(str);

//dynamically allocating the size of stringp to fit the input string

//perfectly

dataArray[i]->stringp = (char *)malloc(sizeof(char) * (strlen(str) + 1));

strcpy(dataArray[i]->stringp, str);

printf("Enter a float: ");

scanf("%f", &dataArray[i]->f);

}

//output loop 1

for(i = 0; i < 5; i++)

{

printf("\n\nStructure %d", i + 1);

printf("\nStructure %d pointer: %p", i + 1, dataArray[i]);

printf("\nCharacter: %c", dataArray[i]->ch);

printf("\nInteger: %d", dataArray[i]->n);

printf("\nString: %s", dataArray[i]->stringp);

printf("\nFloating Point: %.1f", dataArray[i]->f);

}

//freeing the 5 pointers of memory

for(i = 0; i < 5; i++) free(dataArray[i]);

//output loop 2

printf("\n\nAfter free the malloc - the pointer are: ");

for(i = 0; i < 5; i++)

printf("\nStructure %d pointer: %p", i + 1, dataArray[i]);

}

The electric company gives a discount on electricity based upon usage. The normal rate is $.60 per Kilowatt Hour (KWH). If the number of KWH is above 1,000, then the rate is $.45 per KWH. Write a program (L4_Ex1.cpp) that prompts the user for the number of Kilowatt Hours used and then calculates and prints the total electric bill. Please put comment lines, same as in Lab3, at the beginning of your program. According to your program in Lab 4.1, how much will it cost for: 900 KWH? 1,754 KWH? 10,000 KWH?

Answers

Answer:

The cpp program for the given scenario is shown below.

#include <stdio.h>

#include <iostream>

using namespace std;

int main()

{

   //variables to hold both the given values

   double normal_rate = 0.60;

   double rate_1000 = 0.45;

   //variable to to hold user input

   double kwh;

   //variable to hold computed value

   double bill;

   std::cout << "Enter the number of kilowatt hours used: ";

   cin>>kwh;

   std::cout<<std::endl<<"===== ELECTRIC BILL ====="<< std::endl;

   //bill computed and displayed to the user

   if(kwh<1000)

   {

       bill = kwh*normal_rate;

       std::cout<< "Total kilowatt hours used: "<<kwh<< std::endl;

       std::cout<< "Rate for the given usage: $"<<normal_rate<< std::endl;

       std::cout<< "Total bill: $" <<bill<< std::endl;

   }

   else  

   {

       bill = kwh*rate_1000;

       std::cout<< "Total kilowatt hours used: "<<kwh<< std::endl;

       std::cout<< "Rate for the given usage: $"<<rate_1000<< std::endl;

       std::cout<< "Total bill: $" <<bill<< std::endl;

   }

   std::cout<<std::endl<< "===== BILL FOR GIVEN VALUES ====="<< std::endl;

   //computing bill for given values of kilowatt hours

   double bill_900 = 900*normal_rate;

   std::cout << "Total bill for 900 kilowatt hours: $"<< bill_900<< std::endl;

   double bill_1754 = 1754*rate_1000;

   std::cout << "Total bill for 1754 kilowatt hours: $"<< bill_1754<< std::endl;

   double bill_10000 = 10000*rate_1000;

   std::cout << "Total bill for 10000 kilowatt hours: $"<< bill_10000<< std::endl;

   return 0;

}

OUTPUT

Enter the number of kilowatt hours used: 555

===== ELECTRIC BILL =====

Total kilowatt hours used: 555

Rate for the given usage: $0.6

Total bill: $333

===== BILL FOR GIVEN VALUES =====

Total bill for 900 kilowatt hours: $540

Total bill for 1754 kilowatt hours: $789.3

Total bill for 10000 kilowatt hours: $4500

Explanation:

1. The program takes input from the user for kilowatt hours used.

2. The bill is computed based on the user input.

3. The bill is displayed with three components, kilowatt hours used, rate and the total bill.

4. The bill for the three given values of kilowatt hours is computed and displayed.

Create a public non-final class named Larger parameterized by a type T that implements Comparable. (Please use T or the test suite will fail.) You should provide a single instance method named larger that accepts an array of the parameterized type as the first argument and a single value of the parameterized type as the second argument. larger should return true if the second argument is larger than or equal to every value of the array and false otherwise. If either the array or the value are null you should throw an IllegalArgumentException. As an ungraded bonus challenge, see if you can make the compiler warning about unchecked operations go away…​ (Note that normally we would write this as a class method. Java does support type parameters for static methods, but we aren’t going to cover that in class. So we’ll use an instance method here instead.) Note also that this homework is not due until Friday but was accidentally released Thursday. It does rely on material we will cover Friday. Feel free to wait to complete it then.

Answers

Answer:

see explaination

Explanation:

class Larger<T extends Comparable<T>> {

public boolean larger(T[] arr, T item) {

if (arr == null || item == null)

throw new IllegalArgumentException();

for (int i = 0; i < arr.length; i++) {

if (item.compareTo(arr[i]) < 0) {

return false;

}

}

return true;

}

}

Extra Credit Programming Assignment(7points)Due May 1, midnightWrite a JavaFX application that presents 20 circles, each with a random radius and location. If a circle does not overlap any other circle, fill in the circle with black. Fill in overlapping circles with a translucent blue. Use an array to store the circle objects,and check each new circle to see if it overlaps any previous created circle. Two circles overlap is the distance between their center points is less than the sum of their radii

Answers

Answer:

See Explaination

Explanation:

// CircleOverlap.java

import java.util.Random;

import javafx.application.Application;

import static javafx.application.Application.launch;

import javafx.scene.Scene;

import javafx.scene.layout.Pane;

import javafx.scene.paint.Color;

import javafx.scene.paint.Paint;

import javafx.scene.shape.Circle;

import javafx.stage.Stage;

public class CircleOverlap extends Application {

atOverride //Replace the at with at symbol

public void start(Stage primaryStage) {

//creating a Random number generator object

Random random = new Random();

//setting window size

int windowWidth = 500;

int windowHeight = 500;

//initializing array of circles

Circle array[] = new Circle[20];

//looping for 20 times

for (int i = 0; i < array.length; i++) {

//generating a value between 10 and 50 for radius

int radius = random.nextInt(41) + 10;

//generating a random x,y coordinates, ensuring that the circle fits

//within the window

int centerX = random.nextInt(windowWidth - 2 * radius) + radius;

int centerY = random.nextInt(windowHeight - 2 * radius) + radius;

//creating Circle object

Circle circle = new Circle();

circle.setCenterX(centerX);

circle.setCenterY(centerY);

circle.setRadius(radius);

//adding to array

array[i] = circle;

//flag to check if circle is overlapping any previous circle

boolean isOverlapping = false;

//looping through the previous circles to see if they are overlapping

for (int j = 0; j < i; j++) {

//finding x, y and radius of current circle under check

double x2 = array[j].getCenterX();

double dx = x2 - centerX;

double y2 = array[j].getCenterY();

double dy = y2 - centerY;

double r2 = array[j].getRadius();

//finding distance between this circle and the circle under check

double distance = Math.sqrt((dx * dx) + (dy * dy));

//checking if distance<radius1+radius2

if (distance <= (radius + r2)) {

//overlapping, setting transclucent blue color

Paint c = new Color(0, 0, 1.0, 0.3);

array[i].setFill(c);

isOverlapping = true;

//also changing the color of other circle

array[j].setFill(c);

}

}

if (!isOverlapping) {

//not overlapping, setting black color

array[i].setFill(Color.BLACK);

}

}

//creating a pane and adding all circles

Pane root = new Pane();

root.getChildren().addAll(array);

Scene scene = new Scene(root, windowWidth, windowHeight);

primaryStage.setScene(scene);

primaryStage.setTitle("");

primaryStage.show();

}

public static void main(String[] args) {

launch(args);

}

}

Which of the following is a possible disadvantage of recursion? Question 10 options: Recursive solutions can be less efficient than their iterative counterparts Recursive solutions tend to be longer than their iterative counterparts Recursive solutions are more likely to go into infinite loops than their iterative counterparts Recursive solutions tend to have more local variables than their iterative counterparts

Answers

Answer:

Recursive solutions can be less efficient than their iterative counterparts

Explanation:

Recursion can be defined or described as a method of solving a problem where the solution depends on solutions to smaller instances of the same problem.

It entails using iteration to ensure that smaller parts of a solution are satisfied towards solving thw overall problem.

Ita major disadvantage seems to be that it seem to be less efficient than their iterative counterparts. This is as a result of concentrating on trying to solve a smaller instances.

Other Questions
Which of these correctly edits the sentence for punctuation mistakes? What is a food that provides energy to perform activitie in a food chain a circle with radius 5 has a sector with a central angle of 9/10pi radians what is the area of the sector Solve x :[tex]{(3 {x}^{2} - 8x + 5)}^{x + 1} = 1[/tex] Which piece of legislation passed by President Rooseveltwas designed to regulate banking and investment and protectconsumers?A. the Glass-Steagall ActOB. the Interstate Commerce ActOC. the Federal Emergency Relief ActD. the Civilian Conservation Corps Suppose a scientist identified two yeast mutants, called huh1 and huh2. The mutants have constitutive expression of the nop operon, which includes the genes nop1 and nop2. One of the mutants is a point mutation in a DNA-binding site, and the other is a deletion of the gene which encodes the DNA-binding protein.Which term describes the regulatory function of the DNA-binding protein?The scientist then performs a experiment mating the two haploid yeast together to determine which mutation is in the DNA-binding protein and which is in the dna-binding site. The experimental setup is listed below, wherein a minus indicates a lose-of-function mutation, and a plus indicates the wild type allele.How will nop1 and nop2 be expressed if huh1 encodes the dna-binding protein and huh2 is a mutation in the binding site? How will nop1 and nop2 be expressed if huh2 encodes the DNA-binding protein and huh1 is a mutation in the binding site? Why do you think perfect flowers are beneficial for species??? the circumference of a circle is 11.4mm. find the length of the diameter. give your answer rounded to 3SF. A paddle wheel on a boat is 8 feet in diameter. The fins along the outer edge travel at a speed of 6.7 feet per second. How long does it take the paddle wheel to complete 100 full revolutions? Round to the nearest second. Which of the following statements about natural killer cells is true?SELECT ALL THAT APPLYGroup of answer choicesNatural killer cells are lymphocytes that function as part of the innate immune system.Natural killer cells secrete toxins onto the surface of neoplasms.Natural killer cells may bind to the Fc portion of antibodies thereby triggering ADCC.Natural killer cells destroy virus infected cells.Natural killer cells require activation by T helper cells, and are responsible for cell-mediated immunity What is the molarity of H2SO3 if 250 mL of the acid was used to neutralize 200 mL of 1.5 M solution of Mg(OH)2? Create a function average_temp(s) that accepts a file name s that contains temperature readings. Each line in the file contains a date followed by 24 hourly temperature readings in a comma-separated-value format, like this example:2/3/2016,18,17,17,18,20,22,25,30,32,32,32,33,31,28,26,26,25,22,20,20,19,18,18,18For each line in the file, the function should print out a line containing two items: the date, then comma, then the average temperature on that date, e.g.3/5/2018, 58.243/6/2018, 60.113/7/2018, 57.55 cos(-15) = _____.cos 75-cos 345cos 15-cos 15 Please help me now plz What is the area of the following parallelogram in square centimeters?396 cm2360 cm23.6 cm23.96 cm2 Fantastical Stories Class began as it usually does: The gossipers were gossiping, the paper throwers were throwing paper, and the colorful and brilliantly shiny medieval dragon was leering toward me, breathing heavily. Wait, a dragon? Those fantasy books had really taken a toll on my sense of reality. My senses came to me as I discovered that, of course, no dragon had found its way into my classroom. Unfortunately, there was a fiery, heavy exhale that reached my desk. I looked up, nervously, as Mr. Anderson stared down at me with his arms crossed, his brow furrowed with disapproval. I had fallen asleep. "Off in the ozone again?" my teacher asked as I sat there embarrassed. "Sorry, Mr. Anderson. Late night, you know?" There was no reason to explain the exhausting quest I had endeavored to complete, well into the deep forest and across the unfathomable heights of the great mountains. I knew my fantasies didn't belong in school. Very few of my classmates would continue talking to me after I ranted about the vast territories my heroes traveled, or the colossal dangers that await victims in the forbidden swamps. My teacher, however, was fully aware of my interests because, as he noted, I talk in my sleep. The next day, Mr. Anderson wrote an assignment on the board right off the bat. Halfheartedly, I glanced at the writing at the front of the room. "Write your own story with fantastical creatures and include elaborate detail." My enthusiasm was felt throughout the room as I shifted my posture quickly and began shuffling papers erratically. My dreams had become a reality as I envisioned a new quest, a new mission to embark on that would transform the fantasy genre forever! A week later, I sprang up to the front of the classroom to read my story, delivering powerful dialogue and suspenseful plot twists. Everyone shifted in their seats, wriggling around with the introduction of a new setting, waiting in anticipation as each character turned a new corner. My teacher was in awe, but proud and happy that I was able to get out of my rut and finally take interest in school. After the 14 full pages came to a close, and after the bell had already rung, my classmatesthose who never spoke a word to mecheered with great enthusiasm as I walked back to my desk in a full, confident stride. Find the value of r in the following diagram. A math class has 3 girls and 9 boys in the seventh grade and 7 girls and 3 boys in the eighth grade. The teacher randomly selects a seventh grader and aneighth grader from the class for competition. What is the probability that the students she selects are both girls?Write your answer as a fraction in simplest form. g Which of the following is true about magnetic field lines? A. All magnetic field lines are always parallel to the Earths magnetic field. B. Magnetic field lines form closed loops and never intersect. C. Magnetic field lines flow out of the south pole of a bar magnet, around, and into the north pole. D. Positive charges always feel a force along magnetic field line The sum of Emmas age and her sisters age is 41 years. Emma is 11 years older than her sister. What is Emmas age and what is her sisters age? Please respond as quick as possible Steam Workshop Downloader