Questions
Briefly compare the following standards: 802.11a, 802.11b, and 802.11g.

Briefly compare the following standards: 802.11a, 802.11b, and 802.11g.

In: Computer Science

Write a program that implements the pseudocode below: 1. Ask the user for the number of...

Write a program that implements the pseudocode below:

1.  Ask the user for the number of days until finals.
2.  Print out the weeks until finals (weeks = days // 7)
3.  Print out the leftover days (leftover = days % 7)

Note: Always have some labeling (identifying) text to explain the meaning of any numbers printed.
And, do not forget to have your name and what the program does as comments in the beginning of your file.

In: Computer Science

the key question is how does the power to regulate interstate commerce affect the kinds of...

the key question is how does the power to regulate interstate commerce affect the kinds of legislation that Congress can pass? Would any of the great Civil Rights bills, environmental bills (Clean Air and Water), regulation of employment (FLSA, Title VII, OSHA) been possible without the commerce clause standing behind the authority of Congress to regulate?

In: Computer Science

"After the first calculation is performed, the program should ask the user if they would like...

"After the first calculation is performed, the program should ask the user if they would like to continue. They will type in the word “quit” if they wish to end the program. If they wish to continue, they will enter yes than enter a new length of a triangle side and the string they would like on their sign."

How could I show this in code? Please give examples asap. I don't understand loops at all. In java please

In: Computer Science

A) What is the minimum and maximum number of zeros in a 4-bit string? Use roster...

A) What is the minimum and maximum number of zeros in a 4-bit string? Use roster notation and find the range of f.

(The first elements in the range is f(0,0,0,0) = 0)

B) For the functions below, indicate whether the function is: Onto ,One-to-one ,Bijection.

i) f: Z → Z, f(x) = 5x - 4

ii) f: Z → Z, f(x) = 5x - 4

C) Start with the number n = 54527. Divide n by 5 and round the result down to an integer. Keep repeating the division and rounding step until the resulting number is less than 5. How many divisions are performed? You can use a calculator for this problem, but you should not have to actually perform all of the divisions. Provide an integer answer.

D) Start with the number n = 32844. Divide n by 7 and round the result down to an integer. Keep repeating the division and rounding step until the resulting number is less than 7. How many divisions are performed? Provide an integer answer.

 

This is the discerete structures problem.

This is the discerete structures problem.

In: Computer Science

c++ CHRONO CLOCK wrong format.... So right now, the code im using is using std::chrono::system_clock; std::time_t...

c++ CHRONO CLOCK wrong format....

So right now, the code im using is using std::chrono::system_clock; std::time_t tt = system_clock::to_time_t (system_clock::now()); struct std::tm * ptm = std::localtime(&tt); std::cout << "Current time: " << std::put_time(ptm,"%X") << '\n'; std::this_thread::sleep_for (std::chrono::seconds(7)); It is simple in that this is in a loop, and chrono sleep_for delays the system for however many seconds. The problem is that it is in the HH:MM:SS format when I really need seconds.milliseconds to show the system clock transaction time. How would I do this? I really just need someone to explain the code, why is it making a struct? And what should I do to change the format? Thanks!

In: Computer Science

Consider the following code segment: pid_t pid; pid = fork(); if (pid == 0) { /*...

Consider the following code segment:

pid_t pid;

pid = fork();

if (pid == 0) { /* child process */

pthread_create( ... );

fork();

}

pthread_create( ... );

fork();

the remaining code (not shown) does not call fork() nor call pthread_create(). Assume each invocation to fork() or pthread_create() was successful.

a. How many unique processes are created (including the first main or root process)? Justify your answer.

b. How many unique threads are created by pthread_create()? Justify your answer.

In: Computer Science

(Great Circle Distance) Write a program great_circle.py that takes four floats x 1 , y 1...

(Great Circle Distance) Write a program great_circle.py that takes four floats x 1 , y 1 , x 2 , and y 2 (latitude and longitude in degrees of two points on Earth) as command-line arguments and writes the great-circle distance (in km) between them, given by the equation

d = 111 arccos(sin(x 1 ) sin(x 2 ) + cos(x 1 ) cos(x 2 ) cos(y 1 − y 2 )).

$python3 great_circle .py 48.87 -2.33 37.8 -122.4

8701.389543238289

In: Computer Science

i) Explain in brevity S DES. ii) Discuss how keys are generated in IDEA. iii)  Explain the...

i) Explain in brevity S DES.

ii) Discuss how keys are generated in IDEA.

iii)  Explain the working of DES.

In: Computer Science

explain Information security objectives as drivers for security architecture development.

explain Information security objectives as drivers for security architecture development.

In: Computer Science

Given a Local Area Network (LAN) and Wide Area Network (WAN), identify and analyze the inherent...

Given a Local Area Network (LAN) and Wide Area Network (WAN), identify and analyze the inherent weaknesses and exposures, identify control techniques commonly used to provide security of data and control over access to the network, and demonstrate how a security plan functions to safeguard against unauthorized network access.

In: Computer Science

Create, test, and validate an HTML document that has a form with the following controls: a....

Create, test, and validate an HTML document that has a form with the following controls:

a. A text box to collect the user's name

b. Four checkboxes, one for each of the following items:

i. Four 25-watt light bulbs for $2.39

ii. Eight 25-watt light bulbs for $4.29

iii. Four 25-watt long-life light bulbs for $3.95

iv. Eight 25-watt long-life light bulbs for $7.49

c. A collection of three radio buttons that are labeled as follows:

i. Visa

ii. Master Card

iii. Discover

In: Computer Science

Java Script Ask the user for a Fahrenheit temperature Write the code needed to convert a...

Java Script

Ask the user for a Fahrenheit temperature
Write the code needed to convert a Fahrenheit temperature into a Celsius temperature. Use an alert box to show the result
Ask the user for a Celsius temperature
Write a function to convert from Celsius to Fahrenheit; use an alert box to show the results
Decide on two other conversions (meters to feet, pounds to kilos, other)
Ask the user for numbers to be converted; be sure to tell them what you are converting from and to
Write two more functions that will do the conversions; use an alert box to show the results
Write all results to the document, correctly formatted in complete sentences.

In: Computer Science

Create, test, and validate an HTML document for yourself, including your name, address, and email address....

Create, test, and validate an HTML document for yourself, including your name, address, and email address. If you are a student, you must include your major and your grade level. This document must use several headings and <em>, <strong>, <hr />, <p>, and <br /> tags.

In: Computer Science

The Tokenizer.java file should contain: A class called: Tokenizer Tokenizer should have a private variable that...

The Tokenizer.java file should contain:

A class called: Tokenizer

Tokenizer should have a private variable that is an ArrayList of Token objects.

Tokenizer should have a private variable that is an int, and keeps track of the number of keywords encountered when parsing through a files content.

In this case there will only be one keyword: public.

Tokenizer should have a default constructor that initializes the ArrayList of Token objects Tokenizer should have a public method called: tokenizeFile

tokenizeFile should have a string parameter that will be a file path tokenizeFile should return void tokenizeFile should throw an IOException tokenizeFile should take the contents of the file and tokenize it using a space character as a delimiter

If there are multiple spaces between tokens then ignore those spaces and only retrieve the words, so given the string: “The cat” should still only produce two tokens: “The”, and “cat”

A newline should also serve to separate tokens, for example:

If the input contains multiple lines such as:

The cat in the hat Red fish blue fish There is no space between “hat” and “Red”, just a newline, which means the resulting tokens are “hat” and “Red”, NOT a single token: “hatRed”

Each token should be added to the private ArrayList variable as a Token object If the value of a token is the keyword: public , then increment the private int counter that is keeping track of the number of keywords encountered when parsing the content of a file.

- Remember that “public” is the only keyword you have to worry about - Any letter in the word: public , can be capitalized and you must still increment the counter -

If public is part of another token, then it should NOT count as a keyword -

For example if a file contained: - Blahblahpublic -

The above public does not count as a keyword since public in this case is not its own token Every call to tokenizeFile should first clear the previous tokens from the ArrayList of Tokens, as well as reset the private int counter of keywords (public) For example: if a user calls tokenizeFile(“someFile.txt”) and it generates these tokens:

“The” , “cat”, “in” , and then the user calls tokenizeFile again but with a different input file, such as: tokenizeFile(“somenewfile.txt”), the ArrayList should no longer hold the previous tokens, and should instead hold only the new tokens generated by the new file.

Tokenizer should have only a getter for the ArrayList of Token objects (not a setter) The getter should be called: getTokens and should return an Array of Token objects, NOT an ArrayList of Token objects Tokenizer should have a method called: writeTokens writeTokens should have no input parameter writeTokens should have a return type of void writeTokens should throw an IOException writeTokens should write the tokens out to a file called: “output.txt”, and should reside in your current working directory. Each token should be written on a newline, for example - Given tokens: “The”, “cat”, “in”, “the”,”hat” The result in output.txt should be: The cat in the hat Notice the order the tokens should be written to file are in order from which they are read from the input file, which should be from left to right and from top to bottom Tokenizer should have a public method called: getKeywordCount , that has no input arguments and returns the private int keyword counter field Override the toString method inherited from the Object class, have it return the same value as calling the toString method on the ArrayList of Token objects

In: Computer Science