Answer:
connection
Explanation:
connection between each device
Create a conditional expression that evaluates to string "negative" if user_val is less than 0, and "non-negative" otherwise.
Sample output with input: -9
-9 is negative
here is the code:
user_val = int(input())
cond_str = 'negative' if user_val < 0 else cond_str
print(user_val, 'is', cond_str)
Answer:
The modified program is as follows:
user_val = int(input())
cond_str = 'non-negative'
if user_val < 0:
cond_str = 'negative'
print(user_val, 'is', cond_str)
Explanation:
This gets input for user_val
user_val = int(input())
This initializes cond_str to 'non-negative'
cond_str = 'non-negative'
If user_val is less than 0
if user_val < 0:
cond_str is updated to 'negative'
cond_str = 'negative'
This prints the required output
print(user_val, 'is', cond_str)
Write a program whose input is two integers. Output the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer. Ex: If the input is: - 15 10 the output is: -15 -10 -5 0 5 10 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first. For coding simplicity, output a space after every integer, including the last. 5.17 LAB: Print string in reverse Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text. Ex: If the input is: Hello there Hey done then the output is: ereht olleh уен 275344.1613222
Answer:
Following are the code to the given question:
For code 1:
start = int(input())#defining a start variable that takes input from the user end
end = int(input())#defining a end variable that takes input from the user end
if start > end:#use if that checks start value greater than end value
print("Second integer can't be less than the first.")#print message
else:#defining else block
while start <= end:#defining a while loop that checks start value less than equal to end value
print(start, end=' ')#print input value
start += 5#incrementing the start value by 5
print()#use print for space
For code 2:
while True:#defining a while loop that runs when its true
data = input()#defining a data variable that inputs values
if data == 'Done' or data == 'done' or data == 'd':#defining if block that checks data value
break#use break keyword
rev = ''#defining a string variable rev
for ch in data:#defining a for loop that adds value in string variable
rev = ch + rev#adding value in rev variable
print(rev)#print rev value
Explanation:
In the first code two-variable "first and end" is declared that takes input from the user end. After inputting the value if a block is used that checks start value greater than end value and use the print method that prints message.
In the else block a while loop is declared that checks start value less than equal to end value and inside the loop it prints input value and increments the start value by 5.
In the second code, a while loop runs when it's true and defines a data variable that inputs values. In the if block is used that checks data value and use break keyword.
In the next step, "rev" as a string variable is declared that uses the for loop that adds value in its variable and prints its values.
Unlike the collapse of Enron and WorldCom, TJX did not break any laws. It was simply not compliant with stated payment card processing guidelines.
a) true
b) false
The statement "Unlike the collapse of Enron and WorldCom, TJX did not break any laws. It was simply not compliant with stated payment card processing guidelines" is definitely true.
What was the cause of the TJX data breach?The major cause of the TJX data breach was thought to be the hack that wasn't discovered until 2007, hackers had first gained access to the TJX network in 2005 through a WiFi connection at a retail store.
These situations were eventually able to install a sniffer program that could recognize and capture sensitive cardholder data as it was transmitted over the company's networks. They should be required to change the encryption methodology of the data they are using to save the personal identification information of their customers.
Therefore, the statement "Unlike the collapse of Enron and WorldCom, TJX did not break any laws. It was simply not compliant with stated payment card processing guidelines" is definitely true.
To learn more about, TJX data, refer to the link:
https://brainly.com/question/22516325
#SPJ2
Which of the following examples can be solved with unsupervised learning?
Group of answer choices
A list of tweets to be classified based on their sentiment, the data has tweets associated with a positive or negative sentiment.
A spam recognition system that marks incoming emails as spam, the data has emails marked as spam and not spam.
Segmentation of students in ‘Technical Aspects of Big Data’ course based on activities they complete. The training data has no labels.
Answer:
Explanation:
Segmentation of students in ‘Technical Aspects of Big Data’ course based on activities they complete. The training data has no labels.
As a CISO, you are responsible for developing an information security program based on using a supporting framework. Discuss what you see as some major components of an information security program.
Answer:
The CISO (Chief Information Security Officer) of an organization should understand the following components of an information security program:
1) Every organization needs a well-documented information security policy that will govern the activities of all persons involved with Information Technology.
2) The organization's assets must be classified and controlled with the best industry practices, procedures, and processes put in place to achieve the organization's IT objectives.
3) There should be proper security screening of all persons in the organization, all hardware infrastructure, and software programs for the organization and those brought in by staff.
4) Access to IT infrastructure must be controlled to ensure compliance with laid-down policies.
Explanation:
As the Chief Information Security Officer responsible for the information and data security of my organization, I will work to ensure that awareness is created of current and developing security threats at all times. I will develop, procure, and install security architecture, including IT and network infrastructure with the best security features. There will good management of persons' identity and controlled access to IT hardware. Programs will be implemented to mitigate IT-related risks with due-diligence investigations, and smooth governance policies.
4.12 LAB: Using math methods Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of y, and the square root of (xy to the power of z). Ex: If the input is:
Answer:
The function is as follows:
import math
def func(x,y,z):
print(math.pow(x, z))
print(math.pow(x,math.pow(y, z)))
print(math.fabs(y))
print(math.sqrt(math.pow(x*y,z)))
Explanation:
This imports the math library
import math
This defines the function
def func(x,y,z):
Print the stated outputs as it is in the question
print(math.pow(x, z)) ---> x to power x
print(math.pow(x,math.pow(y, z))) ---- x to power of y of z
print(math.fabs(y)) ---- absolute of y
print(math.sqrt(math.pow(x*y,z))) --- square root of xy power x
Any help , and thank you all
Answer:
There are 28 chocolate-covered peanuts in 1 ounce (oz). Jay bought a 62 oz. jar of chocolate-covered peanuts.
Problem:
audio
How many chocolate-covered peanuts were there in the jar that Jay bought?
Enter your answer in the box.
Explanation:
To change lowercase letters to uppercase letters in a smaller font size, which of the following should be done?
Explanation:
Format the text in Small caps. Manually replace the lowercase letters with uppercase letters.
which is not a characteristic of software:
A) virtual
B) application
C) physical
D) computer programs
Answer:
C) physical
Explanation:
Virtual, Applications, and Computer Programs are all characteristics of software, except Physical.
Internal monitoring is accomplished by inventorying network devices and channels, IT infrastructure and applications, and information security infrastructure elements. Group of answer choices True False
Answer:
True
Explanation:
It is TRUE that Internal monitoring is accomplished by inventorying network devices and channels, IT infrastructure and applications, and information security infrastructure elements.
The above statement is true because Internal Monitoring is a term used in defining the process of creating and disseminating the current situation of the organization’s networks, information systems, and information security defenses.
The process of Internal Monitoring involved recording and informing the company's personnel from top to bottom on the issue relating to the company's security, specifically on issues about system parts that deal with the external network.
Through the use of computational thinking techniques, models and algorithms can be created. A(n)
Answer:
1.) Model
2.) Algorithm
Explanation:
Using computational thinking, problems are represented or framed as model simulation on a computer. This computer generated model is a representation of the real world problem. This computer model gives a conceptualized idea of the problem. This will enable engineers and other involved stakeholders to work and solve this problem using this conceptualized model before coming up with the solution in the real world.
To create a model or other proffer computational solution, a defined sequence of steps is written for the computer to follow in other to solve a problem. This written sequential steps gives the instructions which the computer should follow during problem solving.
Answer:
Model, algorithm
Explanation:
got it right on the test
TP1. लेखा अभिलेखको अर्थ उल्लेख गर्नुहोस् । (State the mea
TP2. लेखाविधिलाई परिभाषित गर्नुहोस् । (Define accounting.
TP 3. लेखाविधिको कुनै तीन महत्वपूर्ण उद्देश्यहरू लेख्नुहोस्
accounting.)
Explanation:
TP1. लेखा अभिलेख भनेको ज्ञानको त्यस्तो शाखा हो, जुन व्यवसायको आर्थिक कारोबारहरूलाई नियमित, सु-व्यवस्थित र क्रमबद तरिकाले विभिन्न पुस्तिकाहरूमा अभिलेख गर्ने कार्यसँग सम्बन्धित छ।
some machine/items/gadget having only hardware
True/False: The American Standard Code for Information (ASCII) is a code that allows people to read information on a computer.
True
False
2.
The program is the set of instructions a computer obeys.
True
False
3.
A flash drive, dvd, and hard drive are all examples of:
storage
processing
output
input
4.
An example of an Input device is:
speaker
monitor
keyboard
CPU
5.
How many bits are in a byte?
16
8
24
32
6.
The part of the computer that processes all the inputs and outputs is the:
Monitor
Mouse
CPU
Tower
7.
Match the word to its definition:
1.
Smart phone
2.
Program
3.
Super computer
4.
Desktop
5.
Tablet
6.
Computer
7.
Mainframes
8.
Notebook
a.
An individual’s personal computer that resides on a desk or table
b.
A small portable computer, such as a netbook
c.
A device that includes, text, and data capabilities
d.
A large and powerful scientific computer that can process large amounts of data quickly
e.
The coded instructions that tell a computer what to do; also to write the code for a program
f.
A computer that combines the features of a graphic tablet with the functions of a personal computer; sometimes called a tablet PC
g.
Is a machine that changes information from one form into another by performing four basic actions
h.
A type of computer used by many people at the same time to allow access to the same secure data
8.
The four functions of a computer are (check all that apply):
processing
input
output
storage
9.
An example of an Output device is:
barcode reader
keyboard
monitor
mouse
10.
Which of the following are part of a computer (check all that apply):
mouse
tower
keyboard
11.
A storage device is both input and output together.
True
False
Answer:
Find answers below.
Explanation:
1. True: The American Standard Code for Information Interchange (ASCII) is a code that allows people to read information on a computer. It is used for representing numbers through 128 English characters.
2. True: a program is the set of instructions a computer obeys to perform a specific task.
3. A flash drive, dvd, and hard drive are all examples of: storage device. They are used for storing data, informations and instructions.
4. An example of an Input device is: a keyboard. An input device can be defined as any device that is typically used for sending data to a computer system.
5. There are 8 bits are in a byte; 1 byte = 8 bits.
In Computer science, a bit is a short word for the term binary digit and is primarily the basic (smallest) unit measurement of data or information. A bit is a logical state which represents a single binary value of either one (1) or zero (0).
6. The part of the computer that processes all the inputs and outputs is the: central processing unit (CPU).
Match the word to its definition:
a. Desktop: an individual’s personal computer that resides on a desk or table.
b. Notebook: a small portable computer, such as a netbook.
c. Smart phone: a device that includes, text, and data capabilities.
d. Supercomputer: a large and powerful scientific computer that can process large amounts of data quickly.
e. Program: the coded instructions that tell a computer what to do; also to write the code for a program.
f. Tablet: computer that combines the features of a graphic tablet with the functions of a personal computer; sometimes called a tablet PC.
g. Computer: is a machine that changes information from one form into another by performing four basic actions.
h. Mainframe: a type of computer used by many people at the same time to allow access to the same secure data.
8. The four functions of a computer are:
processing, input, output and storage.
9. An example of an Output device is: monitor. An output device can be defined as a hardware device that typically receives processed data from the central processing unit (CPU) and converts these data into information that can be used by the end user of a computer system.
10. The parts of a computer:
keyboard and mouse.
11. False: storage device is both input and output together. A storage device is a hardware device used for holding data (informations) either permanently or temporarily.
Write a function:
class Solution { public int solution (int) A); }
that, given a zero-indexed array A consisting of N integers representing the initial test scores of a row of students, returns an array of integers representing their final test scores in the same order).
There is a group of students sat next to each other in a row. Each day, students study together and take a test at the end of the day. Test scores for a given student can only change once per day as follows:
• If a student sits immediately between two students with better scores, that student's score will improve by 1 when they take the test.
• If a student sits between two students with worse scores, that student's test score will decrease by 1.
This process will repeat each day as long as at least one student keeps changing their score. Note that the first and last student in the row never change their scores as they never sit between two students.
Return an array representing the final test scores for each student once their scores fully stop changing. Test Ou
Example 1:
Input: (1,6,3,4,3,5]
Returns: (1,4,4,4,4,5]
On the first day, the second student's score will decrease, the third student's score will increase, the fourth student's score will decrease by 1 and the fifth student's score will increase by 1, i.e. (1,5,4,3,4,5). On the second day, the second student's score will decrease again and the fourth student's score will increase, i.e. (1,4,4,4,4,5). There will be no more changes in scores after that.
Answer:
what are the choices
:"
Explanation:
Write a program that estimates how many years, months, weeks, days, and hours have gone by since Jan 1 1970 by calculations with the number of seconds that have passed.
Answer:
Explanation:
The following code is written in Java. It uses the LocalDate import to get the number of seconds since the epoch (Jan 1, 1970) and then uses the ChronoUnit import class to transform those seconds into years, months, weeks days, and hours. Finally, printing out each value separately to the console. The output of the code can be seen in the attached picture below.
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
class Brainly {
public static void main(String[] args) {
LocalDate now = LocalDate.now();
LocalDate epoch = LocalDate.ofEpochDay(0);
System.out.println("Time since Jan 1 1970");
System.out.println("Years: " + ChronoUnit.YEARS.between(epoch, now));
System.out.println("Months: " + ChronoUnit.MONTHS.between(epoch, now));
System.out.println("Weeks: " + ChronoUnit.WEEKS.between(epoch, now));
System.out.println("Days: " + ChronoUnit.DAYS.between(epoch, now));
System.out.println("Hours: " + (ChronoUnit.DAYS.between(epoch, now) * 24));
}
}
Write an application that inputs a five digit integer (The number must be entered only as ONE input) and separates the number into its individual digits using MOD, and prints the digits separated from one another. Your code will do INPUT VALIDATION and warn the user to enter the correct number of digits and let the user run your code as many times as they want (LOOP). Submit two different versions: Using the Scanner class (file name: ScanP2)
Answer:
The program in Java is as follows:
import java.util.*;
public class Main{
public static void main(String[] args) {
int n, num;
Scanner input = new Scanner(System.in);
System.out.print("Number of inputs: ");
n = input.nextInt();
LinkedList<Integer> myList = new LinkedList<Integer>();
for(int i = 0; i<n;i++){
System.out.print("Input Integer: ");
num = input.nextInt();
while (num > 0) {
myList.push( num % 10 );
num/=10;
}
while (!myList.isEmpty()) {
System.out.print(myList.pop()+" ");
}
System.out.println();
myList.clear();
}
}
}
Explanation:
This declares the number of inputs (n) and each input (num) as integer
int n, num;
Scanner input = new Scanner(System.in);
Prompt for number of inputs
System.out.print("Number of inputs: "); n = input.nextInt();
The program uses linkedlist to store individual digits. This declares the linkedlist
LinkedList<Integer> myList = new LinkedList<Integer>();
This iterates through n
for(int i = 0; i<n;i++){
Prompt for input
System.out.print("Input Integer: ");
This gets input for each iteration
num = input.nextInt();
This while loop is repeated until the digits are completely split
while (num > 0) {
This adds each digit to the linked list
myList.push( num % 10 );
This gets the other digits
num/=10;
}
The inner while loop ends here
This iterates through the linked list
while (!myList.isEmpty()) {
This pops out every element of thelist
System.out.print(myList.pop()+" ");
}
Print a new line
System.out.println();
This clears the stack
myList.clear();
}
What is the meaning of negative impact in technology
Answer:
the use of criminal thought by the name of education
which device is connected to a port on a switch in order to receive network traffic
Answer:
Passive IDS
Explanation:
A framework that is designed mostly for monitoring and analyzing internet traffic operations and alerting a user or administrator about possible bugs, as well as disruptions, is known to be passive IDS.
This IDS cannot carry out certain preventive as well as remedial processes as well as operations by itself.
use terms of interection model and norman model for ATM?
Answer:
ther you are
Explanation:
. HCI Technology Application in ATMHuman computer interface (HCI) is a term used todescribe the interaction between users and computer-s; in other words, the method by which a user tellsthe computer what to do, and the responses which thecomputer makes. Even more, HCI is about designingcomputer systems to support people’s use, so that theycan carry out their activities productively and safely.All of this can be summarized as ”to develop or im-prove the safety, utility, effectiveness, efficiency andusability of systems that include computers” [1].
MAKE ME BRAINLIEST PLEASE I NEED IT TO PASS AMBITIOS STAGE ON HERE THANKS
How do you find the average length of words in a sentence with Python?
Answer:
split() wordCount = len(words) # start with zero characters ch = 0 for word in words: # add up characters ch += len(word) avg = ch / wordCount if avg == 1: print "In the sentence ", s , ", the average word length is", avg, "letter." else: print "In the sentence ", s , ", the average word length is", avg, "letters.
Select all the correct answers.
An organization wants to improve its network Security to limit access to confidential Information on its internal network. The organization wants
to make sure that only approved employees can get access to sensitive files and folders.
Which two network security techniques will best meet the organization's needs?
A firewall
B. Virtual Local Area Network (VLAN)
C demilitarized zone
D. subnetting
E. Intrusion Prevention System (IPS)
Answer:
The two network security techniques which will best meet the organization's needs include:
D. subnetting
E. Intrusion Prevention System (IPS)
Explanation:
Answer:
B. Virtual Local Area Network (VLAN)
D. subnetting
Explanation:
Plato correct!
Write a simple program that tests your extrasensory perception! The program randomly selects a color from the following list of words: Red, Green, Blue, Orange, and Yellow. To select a word, the program could generate a random number. For example, if the number is 0, the selected word is Red; if the number is 1, the selected word is Green; and so forth.
Answer:
The program in Python is as follows:
from random import randrange
colors = ['Red', 'Green', 'Blue', 'Orange', 'Yellow']
randNum = randrange(5)
print(colors[randNum])
Explanation:
This imports the randrange module from the random library
from random import randrange
This initializes the list of colors
colors = ['Red', 'Green', 'Blue', 'Orange', 'Yellow']
This generates a random number between 0 and 4 (inclusive)
randNum = randrange(5)
This prints the corresponding color
print(colors[randNum])
Which of the following are incident priorities?
Answer:
what are the options?
reply in comment so i can help:)
what is a shock wave plugin? why it is used? Is it used to access content that is unaccessable on the web?
Explanation:
Shockwave is an acoustic wave which carries high energy to painful spots and myoskeletal tissues with subacute, subchronic and chronic conditions. The energy promotes regeneration and reparative processes of the bones, tendons and other soft tissues.
whatis a node (or a device) that connects two different networks together and allows them to communicate.
Answer:
Router
Explanation:
A router can be defined as a network device that is designed typically for forwarding data packets between two or more networks based on a well-defined routing protocol.
Hence, a router is a node (or a device) that connects two different networks together and allows them to communicate.
Generally, routers are configured using a standard routing protocol with an IP address as the default gateway.
A routing protocol can be defined as a set of defined rules or algorithms used by routers to determine the communication paths unto which data should be exchanged between the source router and destination or host device.
Additionally, in order for packets to be sent to a remote destination, these three parameters must be configured on a host.
I. Default gateway
II. IP address
III. Subnet mask
After a router successfully determines the destination network, the router checks the routing table for the resulting destination network number. If a match is found, the interface associated with the network number receives the packets. Else, the default gateway configured is used. Also, If there is no default gateway, the packet is dropped.
Create a function void process(char ch, int x, int y)- to accept an arithmetic operator (+,-./, in argum
ch and two integers in arguments x and y. Now on the basis of the operator stored in ch perform the operator
in x and y and print the final result. Also, write a main function to input the two integers and an arithmetit
operator, and by invoking function process() print the output.
Example: Input:
First Integer
Second Integer
: 6
Value of ch
Output: The result of 5 and 7 on * = 24
write in java
Answer:
The program is as follows:
import java.util.*;
public class Main{
public static void process(char ch, int x, int y){
if(ch == '+'){
System.out.print(x+y); }
else if(ch == '-'){
System.out.print(x-y); }
else if(ch == '*'){
System.out.print(x*y); }
else if(ch == '/'){
if(y!=0){
double num = x;
System.out.print(num/y); }
else{
System.out.print("Cannot divide by 0"); } }
else{
System.out.print("Invalid operator"); }
}
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int x, y;
char ch;
System.out.print("Enter two integers: ");
x = input.nextInt(); y = input.nextInt();
System.out.print("Enter operator: ");
ch = input.next().charAt(0);
process(ch,x, y);
}
}
Explanation:
The function begins here
public static void process(char ch, int x, int y){
If the character is +, this prints the sum of both integers
if(ch == '+'){
System.out.print(x+y); }
If the character is -, this prints the difference of both integers
else if(ch == '-'){
System.out.print(x-y); }
If the character is *, this prints the product of both integers
else if(ch == '*'){
System.out.print(x*y); }
If the character is /, this prints the division of both integers.
else if(ch == '/'){
if(y!=0){
double num = x;
System.out.print(num/y); }
else{
This is executed if the denominator is 0
System.out.print("Cannot divide by 0"); } }
Invalid operator is printed for every other character
else{
System.out.print("Invalid operator"); }
}
The main begins here
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
This declares both integers
int x, y;
This declares the operator
char ch;
Get input for both integers
System.out.print("Enter two integers: ");
x = input.nextInt(); y = input.nextInt();
Get input for the operator
System.out.print("Enter operator: ");
ch = input.next().charAt(0);
Call the function
process(ch,x, y);
}
}
Write a program that reads the balance and annual percentage interest rate and displays the interest for the next month. Python not JAVA
Answer:
Explanation:
The following code is written in Python. It asks the user to enter the current balance and the annual interest rate. It then calculates the monthly interest rate and uses that to detect the interest that will be earned for the next month. Finally, printing that to the screen. A test output can be seen in the attached picture below.
balance = int(input("Enter current Balance: "))
interest = int(input("Enter current annual interest %: "))
interest = (interest / 12) / 100
next_month_interest = balance * interest
print('$ ' + str(next_month_interest))
which specific rights are related to the application of media freedom and why?
move down one screen
Answer:
k(kkkkkkkkkkklkkkkkkkkkk(