math = 2-2/3+2/5-2/7+2/9
Print(math)
Simple as that tell me if im wrong its been a while since i didn’t do python
Answer:
User roles and access authorization
(Explanation of this question is given below in the explanation section.
Explanation:
As noted in question that a terminated employee comeback in office and installed some malicious script on a computer that was scheduled to run a logic bomb on the first day of the following month. And, that script will change administrator passwords, delete files, and shut down over 100 servers in the data center.
The following problem can be with that account
- Unauthorized user access and privileges
The user may be given unauthorized access to system resources. If a user has unauthorized access to system resource then he can modify or destroy the system function easily.
- The firewall may be disabled to detect the malicious script
The firewall should be enabled to detect such types of attack from unauthorized access to the system
May be user role is not defined properly. If role would be defined according to user role then there are very fewer chances in doing unauthorized changes in the system that will result in an unexpected outage.
Answer:
//Program written in Java Programming Language
// Comments are used for explanatory purpose
import java.util.Scanner; //Scanner Library Imported
public class findloc { //Program Class Declared
public static void main (String [] args) {//Program Main Method
Scanner input = new Scanner(System.in);
string passCode; // Declare string passCode
passCode = Input.next();//Input Passcode
if(Character.isLetter(passCode.charAt(0)))//Check Alphabet Position
{
System.out.println("Alphabetic at 0");//Print Alphabet position is at 0
}
if(Character.isLetter(passCode.charAt(1))) //Check Alphabet Position
{
System.out.println("Alphabetic at 1");//Print Alphabet position is at 1
}
}
}
0 and 1's are stored in a computer which is converted into a electric signal that goes to the screen and keyboard which sends a signal back<span />
Answer:
public class PostAccount
{
public void withdraw(float savings)
{
if (savings >=0 )
{
IllegalArgumentException exception
= new IllegalArgumentException("Savings cannot be negative");
throw exception;
}
balance = savings - withdraw;
}
}
Explanation:
IllgalArgumentException is a type of NumberFormatException of runtime exception. Here in the program we have created an object of IllgalArgumentException class and after that we have thrown the error to show the condition if it does not satisfy the if condition.