Questions
describe Public Wi-Fi Hotspot Security

describe Public Wi-Fi Hotspot Security

In: Computer Science

In the 1990 Clean Air Act Amendments, Congress and the EPA rely on the automobile industry...

In the 1990 Clean Air Act Amendments, Congress and the EPA rely on the automobile industry to develop a cleaner automobile. At the same time, the government imposes a relatively minor federal tax on gasoline. a. Do you see any problem with the implicit signals the federal government is sending to American auto manufacturers and to American car drivers through these policies? Briefly discuss. b. Formulate a hypothetical economic policy to motivate automobile manufacturers to advance the technology of cleaner motor vehicles.

In: Economics

Show that a satellite may speed down: that is, show that if frictional forces or reverse...

Show that a satellite may speed down: that is, show that if frictional forces or reverse thrust cause a satellite to lose total energy, it will move into an orbit closer to the earth and may have increased kinetic energy.

In: Physics

What is the difference between a parameter and a statistic? Describe an example. Finally, there are...

What is the difference between a parameter and a statistic? Describe an example. Finally, there are “adjustments” that statisticians make to statistics to make them better represent the parameter, discuss what this looks like with the standard deviation.

In: Math

1. When 4.203g of NaOH is added to 100.0mL of water, the temperature of the solution...

1. When 4.203g of NaOH is added to 100.0mL of water, the temperature of the solution increases by 3.0C. Assume the density of the solution to be 1g/mL and the specific heat of capacity of the solution to be 4.184 J/gK.

a) Calculate the amount of heat absorbed by the solution.

b) Find the enthalpy change for the dissolution of NaOH.

c) Find the enthalpy change per mole of NaOH.

In: Chemistry

“It is better to pay regular price than to stand in a long line for a...

“It is better to pay regular price than to stand in a long line for a free item.” Discuss the statement using three (3) core principles of economics (with applicable examples) to support your views.

In: Economics

You prepare a buffer solution from 10.0 mL of 0.100 M MOPS (3-morpholinopropane-1-sulfonic acid) and 10.0...

You prepare a buffer solution from 10.0 mL of 0.100 M MOPS (3-morpholinopropane-1-sulfonic acid) and 10.0 mL of 0.084 M NaOH. Next, you add 1.00 mL of 4.69 × 10-6 M lidocaine to this mixture Denoting lidocaine as L, calculate the fraction of lidocaine present in the form LH .
The Ka of MOPS is 6.3 e-8, and the Kb of lidocaine is 8.7e-7

In: Chemistry

Write a Python program that uses while loops to perform the following steps and post the...

Write a Python program that uses while loops to perform the following steps and post the text code. Thanks


a. Prompt the user to input two positive integers (no zero or negative). variables: firstNum and secondNum (firstNum must be less than secondNum). Validate the user's input; prompt the user again if firstNum is not less than secondNum (use while loop).


b. Output all odd numbers between firstNum and secondNum. (use while loop).


c. Output the sum of all even numbers between firstNum and secondNum. (use while loop).


d. Output the sum of the square of the odd numbers between firstNum and secondNum. (use while loop)

Program layout for each step:

#A

while loop

#B

while loop

#C

while loop

#D

while loop

***Allow the user to repeat the program. (requires another while loop).

***Do NOT define any functions.

***Your program output must be exactly the same as the output in the OUTPUT section, except font style.

OUTPUT:

- The bold text is the user's input.

*************************************************************************************

Enter two positive integer numbers.

First number must be less than the second number:
Enter numbers: 8 a

Incorrect Input.
Please try again.

Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: 

*************************************************************************************

Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: a 8

Incorrect Input.
Please try again.


Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: 

*************************************************************************************

Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: 8 2

First number must be less than the second number!
Please try again.


Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: 

*************************************************************************************

Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: -2 8

No negative numbers!
Please try again.


Enter two positive integer numbers.
First number must be less than the second number:
Enter numbers: 

*************************************************************************************

Enter two positive integer numbers.
First number must be less than the second number you enter
Enter numbers: 2 8

Odd integers between 2 and 8 are:
3 5 7

Sum of even integers between 2 and 8 = 20

Sum of the squares of odd integers between 2 and 8 = 83


Do you want to repeat this program?
y/n
> y

*************************************************************************************

Enter two positive integer numbers.
First number must be less than the second number you enter
Enter numbers: 1 9

Odd integers between 1 and 9 are:
1 3 5 7 9

Sum of even integers between 1 and 9 = 20

Sum of the squares of odd integers between 1 and 9 = 165


Do you want to repeat this program?
y/n
> y

*************************************************************************************

Enter two positive integer numbers.
First number must be less than the second number you enter
Enter numbers: 11 15

Odd integers between 11 and 15 are:
11 13 15

Sum of even integers between 11 and 15 = 26

Sum of the squares of odd integers between 11 and 15 = 515


Do you want to repeat this program?
y/n
> n

Bye!

In: Computer Science

Simultaneous equilibria. write the equations for the processes involving or affecting the solubility of Ca(OH)2 (s)....

Simultaneous equilibria.

write the equations for the processes involving or affecting the solubility of Ca(OH)2 (s).

i. The solubility of the salt, itself: (Ksp = 6.5 x 10−6)

ii. The autoprotolysis of water and its Kw:

iii. The formation of an ion pair between Ca2+ and OH. Kion pair = 1.3

iv. The Charge Balance equation

v. A Mass balance equation:

Simplify the simultaneous equations to an expression in a single unknown. Show your work.

calculate the equilibrium concentrations of all species, and indicate the values here:

In: Chemistry

Use R to answer the following questions. Assume that you are interested in testing H0 :...

Use R to answer the following questions.

Assume that you are interested in testing H0 : E(X) = 20 versus H1 : E(X) 1 20 with a significance level of 5% using the t-test. Let the sample average be equal to 22.7 (?̅ = 22.7) and the sample standard deviation be equal to 5.4 (s = 5.4). The sample size is 55 (n = 55).

1. Do you reject the null hypothesis?

2. If a significance level of 1% is used, do you reject the null hypothesis?

3. If the testing hypotheses are changed to H0 : E(X) = 24 versus H1 : E(X) 1 24 (with a significance level of 5%), do you reject the null hypothesis?

Once you have the answers in R, copy the text commands and results and paste them in a word processor file (e.g., Microsoft Word)

In: Math

Can someone please fix my program? I keep getting a syntax error. Thanks (Python) from tkinter...

Can someone please fix my program? I keep getting a syntax error. Thanks (Python)

from tkinter import *

class LoanCalculator:
def __init__(self):
window = Tk()
window.title("Loan Calculator")

Label(window,text = "Annual Interest Rate").grid(row = 1, column = 1, sticky = W)
Label(window,text = "Number of Years").grid(row = 2, column = 1, sticky = W)
Label(window,text = "Loan Amount").grid(row = 3, column = 1, sticky = W)
Label(window,text = "Monthly Payment").grid(row = 4, column = 1, sticky = W)
Label(window,text = "Total Payment").grid(row = 5, column = 1, sticky = W)

self.annualInterestRateVar = StingVar()
Entry(window,textvariable = self.annualInterestRateVar,Justify=Right).grid(row = 1, column = 2)
self.numberofYearsvar = StringVar()
Entry(window,textvariable = self.numberofYearsVar,Justify=Right).grid(row = 2, column = 2)
self.loanAmountVar = StringVar()
Entry(window,textvariable = self.self.loanAmountVar,Justify=Right).grid(row = 3, column = 2)

self.monthlyPaymentVar = StringVar()
lblMonthlyPayment = Label(window,textvariable = self.monthlyPaymentVar)\
.grid(row = 5, column = 2, Sticky = E)
self.totalPaymentVar = StringVar()
lblTotalPayment = Label(window,textvariable = self.totalPaymentVar)\
.grid(row = 5, column = 2, Sticky = E)

btComputePayment = Button(window, text = "Compute Payment", \
command = self.computePayment).grid(row = 6, column = 2, sticky = E)

window.mainloop()

def computePayment(self):
try:
monthlyPayment = self.getMonthlyPayment(float(self.loanAmountVar.get()),\
float(self.annualInterestRateVar.get())/1200,\
int(self.numberOfYearsVar.get())
self.monthlyPaymentVar.set('%.2f' % monthlyPayment)
totalPayment = float(self.monthlyPaymentVar.get())*12 *int(self.numberOfYearsVar.get())
self.totalPaymentVar.set('%.2f' % totalPayment)

except:
self.totalPaymentVar.set("Error in input")

def getMonthlyPayment(self,loan,Amount,monthlyInterestRate,numberOfYears):
monthlyPayment = loanAmount * monthlyInterestRate/(1-1/ \
(1 + monthlyInterestRate)**(numberOfYears*12))
return monthlyPayment
  

def main():


LoanCalulator()

In: Computer Science

Find the concentration of Fe+3 and NCS- in the following vials: Vial # .002 M Fe(NO3)3...

Find the concentration of Fe+3 and NCS- in the following vials:

Vial # .002 M Fe(NO3)3 .002 M KSCN Distiled Water

---------------------------------------------------------------------------------

1 3 mL 1 mL 6 mL

2 3 mL 2 mL 5 mL

3 3 mL 3 mL 4 mL

In: Chemistry

Q1 Calculate the period of a satellite orbiting the Moon, 100 km above the Moon's surface....

Q1

Calculate the period of a satellite orbiting the Moon, 100 km above the Moon's surface. Ignore effects of the Earth. The radius of the Moon is 1740 km.

Express your answer using two significant figures.

In: Physics

Consider a CSMA-like protocol with n nodes. Assume that the length of a time step equals...

Consider a CSMA-like protocol with n nodes. Assume that the length of a time step equals twice the maximum propagation delay between any two nodes. Recall that if the medium is sensed busy, the node continuously monitors the medium until it becomes idle. When the medium becomes idle, the node sends the frame with probability p and defers it for a later slot with probability 1 − p. Assume that each node has an infinite number of frames to send, and that all frames are of the same size. Also, assume that each frame takes exactly one time step to be completely transmitted. Assume that when the medium experiences a collision during a current time step, it must stay idle during the next time step before it can proceed with transmission attempts again. But when the medium experiences a successful transmission during a current time step, nodes can immediately proceed with transmission attempts without needing to go idle for one time step. Also, assume that when a collision occurs during a time step, each node is able to detect it by the end of the time step during which the collision has occurred. Since the current state of the system depends only on its immediate past state, we can use Markov chains to model and analyze the performance of this system. For this, consider that the system has 3 states: idle i, colliding c, and transmitting t. All answers must be expressed in terms of p and n.

1. Draw the Markov state transition diagram and show the state transition probabilities?

2.Write the balance equation for each state, and derive the stationary probabilities for all states?

3.Derive the system throughput, defined as the average number of successfully delivered frames per time step?

4.Derive the system utilization, defined as the fraction of time the medium is being used for successful transmissions?

5.Drive the average waiting time, defined as the average time from when a frame is ready to be transmitted until the time the frame is transmitted successfully?

In: Computer Science

## Problem Description You are writing a small section of an ATM machine where you accept...

## Problem Description

You are writing a small section of an ATM machine where you accept a string that is a password and accept it or reject it. If the user tries more than three times with a bad password the card is blocked and no password will be accepted until the **resetFailedAttemptCounter** method is called. The password is provided at creation of the AtmPin. Security is a priority!

The class to implement this is referred to as **AtmPin** and consists of the following public methods:

**public AtmPin(String actualCode)** - Creates an AtmPin object with the provided code as the actual PIN

**public boolean verifyPinCode(String code)** - Accepts a string which represents the user's entry of their pin code. If the string matches the actual code provided in the constructor and the account is not blocked then the method returns true. Returns false when the code is bad OR when **isAccountLocked**() is true due to too many consecutive bad verification attempts. If an invalid code was passed or a valid code, but the account is blocked, the system will increment the number of bad password attempts.

**public boolean lastAttemptFailed()** - Returns true if the last invocation of **verifyPinCode** was unsuccessful. Underlying state is updated every time a password is passed to **verifyPinCode**. This method DOES NOT do the verification of the code, but simply is a record of whether the last attempt was successful. Note that you can submit a good password but have it rejected by the system since the account is locked (**verifyPinCode** returns false).

**public boolean isAccountLocked()** - If *more than* three consecutive attempts are made then the password is not accepted (**verifyPinCode** returns false) until **resetFailedAttemptCounter** is called.

**public void resetFailedAttemptCounter()** - Resets the number of failed attempts to zero.

Your **Program.java** should contain code to test your **AtmPin** object.

**Requirements:**

- You may not hard-code the pin in the AtmPin class, but must provide it as a constructor argument

- DO NOT STORE the user's code when attempting to verify

- **verifyPinCode** returns false when

  - code is bad

  - OR

  - when **isAccountLocked**() is true due to too many consecutive bad verification attempts

- **lastAttempt** failed should not do any comparison of actual pin to the tested pin (i.e. you cannot store the user's pin)

## Getting Started

Create the following files in the folder and add the appropriately named classes to them

1. Program.java

2. AtmPin.java

In: Computer Science