Answer:
12 sides
Explanation:
{(n-2)x180}÷n
150=[tex]\frac{(n-2)*180}{n}[/tex]
150n=(n-2) x 180
150n= 180n-360
150n-180n=- 360
-30n= -360
n= 12
Sides of polygon is 12
Use strlen(userStr) to allocate exactly enough memory for newStr to hold the string in userStr (Hint: do NOT just allocate a size of 100 chars).
#include
#include
#include
int main(void) {
char userStr[100] = "";
char* newStr = NULL;
strcpy(userStr, "Hello friend!");
/* Your solution goes here */
strcpy(newStr, userStr);
printf("%s\n", newStr);
return 0;
}
Answer:
Following are the complete code to the given question:
#include <stdio.h>//header file
#include <string.h>//header file
#include <stdlib.h>//header file
int main()//main method
{
char userStr[100] = "";//defining a char array
char* newStr = NULL;//defining a char pointer
strcpy(userStr, "Hello friend!");//use strcpy method that holds char value
newStr = (char *)malloc(strlen(userStr));//defining a char variable that use malloc method
strcpy(newStr, userStr);//use strcpy method that holds newStr and userStr value
printf("%s\n", newStr);//print newStr value
return 0;
}
Output:
Hello friend!
Explanation:
In this code inside the main method a char array "userStr" and a char type pointer variable "newStr" holds a value that is null, and inside this strcpy method is declared that holds value in the parameters.
In this, a malloc method is declared that uses the copy method to hold its value and print the newStr value.
TP1. लेखा अभिलेखको अर्थ उल्लेख गर्नुहोस् । (State the mea
TP2. लेखाविधिलाई परिभाषित गर्नुहोस् । (Define accounting.
TP 3. लेखाविधिको कुनै तीन महत्वपूर्ण उद्देश्यहरू लेख्नुहोस्
accounting.)
Explanation:
TP1. लेखा अभिलेख भनेको ज्ञानको त्यस्तो शाखा हो, जुन व्यवसायको आर्थिक कारोबारहरूलाई नियमित, सु-व्यवस्थित र क्रमबद तरिकाले विभिन्न पुस्तिकाहरूमा अभिलेख गर्ने कार्यसँग सम्बन्धित छ।
some machine/items/gadget having only hardware
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
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.
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.
Select the correct answer from each drop-down menu.
Complete the sentence based on the given information.
A software development company has designed software for a finance company. Both companies want to ensure that the new software performs all the required tasks, so some employees from the finance company plan to conduct ( 1 )
testing to identify the ( 2 ) errors in the software.
1. unit
integration
user acceptance
2. functionality
performance
integration
Answer:
Explanation:
test done by employees from the finance company who are users so answer to 1. is user acceptance testing.
the only errors users can identify is 2. functionality.
Answer:
Explanation:
Both companies want to ensure that the new software performs all the required tasks, so some employees from the finance company plan to conduct user acceptance testing to identify the functionality errors in the software.
What is the meaning of negative impact in technology
Answer:
the use of criminal thought by the name of education
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();
}
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))
Viết chương trình thực hiện các công việc sau(sử dụng con trỏ):
a. Nhập vào một mảng các số nguyên n (5<=n<=50) phần tử.
b. Ghi ra file văn bản Sochan.txt các số chẵn của mảng vừa nhập.
c. Đọc file Sochan.txt sắp xếp mảng số chẵn theo thứ tự giảm dần và in kết quả ra
màn hình .
Answer:
ahbtibrkn
Explanation:
uklbejixbi9538021#fbn
A capacitor of capacitance 102/π µF is connected across a 220 V, 50 Hz A.C. mains. Calculate the capacitive reactance, RMS value of current and write down the equations of voltage and current.
Answer:
The capacitive reactance will be "100Ω" and RMS value of current is "2.2 A". A further explanation is provided below.
Explanation:
Given:
[tex]C =\frac{10^2}{\pi}\times 10^{-6} \ F[/tex]
[tex]V_{RMS}=220 \ V[/tex]
[tex]f = 50 \ Hz[/tex]
Now,
The capacitive reactance will be:
⇒ [tex]X_c=\frac{1}{\omega C} =\frac{1}{2 \pi f C}[/tex]
[tex]=\frac{1}{2\times \pi\times 50\times \frac{10^{-4}}{\pi} }[/tex]
[tex]=100 \ \Omega[/tex]
RMS value of current will be:
⇒ [tex]I_{RMS}=\frac{V_{RMS}}{X_c}[/tex]
[tex]=\frac{220}{100}[/tex]
[tex]=2.2 \ A[/tex]
So that,
⇒ [tex]V_m=220\times \sqrt{2}[/tex]
[tex]=311 \ V[/tex]
⇒ [tex]I_m=2.2\times \sqrt{2}[/tex]
[tex]=3.1 \ A[/tex]
hence,
The equation will be:
⇒ [tex]\nu=311 sin31 \ 4t[/tex]
and,
⇒ [tex]i=3.1 sin(314t+\frac{\pi}{2} )[/tex]
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
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.
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
Which of the following are incident priorities?
Answer:
what are the options?
reply in comment so i can help:)
JAVA CHALLENGE ZYBOOKs
ACTIVITY
2.18.3: Fixed range of random numbers.
Type two statements that use nextInt() to print 2 random integers between (and including) 100 and 149. End with a newline. Ex:
112 102
My Previous Incorrect Attempt :
import java.util.Scanner;
import java.util.Random;
public class RandomGenerateNumbers {
public static void main (String [] args) {
Random randGen = new Random();
int seedVal;
seedVal = 4;
randGen.setSeed(seedVal);
/* Your solution goes here */
int first = randGen.nextInt(10);
int second = randGen.nextInt(10);
System.out.println(first*seedVal*14);
System.out.println(second*seedVal*(51/4)+6);
}
}
MUST BE USED CODE TEMPLATE:
import java.util.Scanner;
import java.util.Random;
public class RandomGenerateNumbers {
public static void main (String [] args) {
Random randGen = new Random();
int seedVal;
seedVal = 4;
randGen.setSeed(seedVal);
/* Your solution goes here */
}
}
Answer:
Replace /* Your solution goes here */ with:
System.out.println(randGen.nextInt(49) + 100);
System.out.println(randGen.nextInt(49) + 100);
Explanation:
Required
Statements to print two random numbers between 100 and 149 (both inclusive)
First, the random numbers must be generated. From the template given, the random object, randGen, has been created.
The syntax to then follow to generate between the interval is:
randGen.nextInt(high-low) + low;
Where:
high = 149 and low = 100
So, the statement becomes:
randGen.nextInt(149 - 100) + 100;
randGen.nextInt(49) + 100;
Lastly, print the statements:
System.out.println(randGen.nextInt(49) + 100);
System.out.println(randGen.nextInt(49) + 100);
write c++ an algorithm to write a program to sort two numbers ascending or descending order
Answer:
++ provides versions of these algorithms in the namespace std::ranges. Algorithms are the vast topic that covers topics from searching, sorting to min/max heaps. These can be categorized as:
Explanation of C++ Algorithm
Explanation:
move down one screen
Answer:
k(kkkkkkkkkkklkkkkkkkkkk(
1.Siguraduhing _______ang mga datos o impormasyong
2.Isaalang- alang ang partikular na _______ o lokasyon ng pinagmulan ng impormasyon
3.Upang matiyak na hindi ______ang mga impormasyon, maaaring magsaliksik at kilalaning mabuti ang awtor at ang kanyang mga artikulo
Answer:
1.maayos
2. Lugar
3. mali
Explanation:
im correct if I'm rwong :-)
what is 5 times 5 times 16 times 11 2345
Answer:
4,400.
Explanation:
In order to determine what is 5 times 5 times 16 times 11 the following calcularion has to be done:
((11 x 16) x 5) x 5 = X
(176 x 5) x 5 = X
880 x 5 = X
4,400 = X
Therefore, 5 times 5 times 16 times 11 is equal to 4,400.
Answer:
use a cucullated
Explanation:
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:
Nested loops: Print rectangle Given the number of rows and the number of columns, write nested loops to print a rectangle. Sample output with inputs: 23 * * * 1 num_rows = int(input) 2 num_cols = int(input) 1 test passed VOUAWNP " Your solution goes here" print('*', end='') print All tests passed Run CHALLENGE ACTIVITY 5.8.2: Nested loops: Print seats. Given num_rows and num_cols, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print a space after each seat. Sample output with inputs: 23 1A 1B 1C 2A 2B 2C 1 num_rows = int(input) 2 num_cols = int(input) 1 test passed # Note 1: You will need to declare more variables 5 # Note 2: Place end=' ' at the end of your print statement to separate seats by spaces 7" Your solution goes here" All tests passed 9 print Run
Answer:
See attachment
Explanation:
The solution and the explanation could not be submitted directly. So,I added both as attachments
To print a rectangle based on the given number of rows and columns, you will use nested loops using the following code:
num_rows = int(input())
num_cols = int(input())
for i in range(num_rows):
for j in range(num_cols):
print('*', end=' ')
print()
How can I print a rectangle using nested loops?By using nested loops, you will iterate through each row and column to print the desired shape. The outer loop controls the rows while the inner loop controls the columns. Within the inner loop, the desired symbol or character, such as "*", is printed with the print() statement.
The end=' ' parameter is used to separate each character by a space. The outer loop then moves to the next row and the process continues until the desired number of rows and columns are printed forming a rectangle.
Read more about nested loops
brainly.com/question/31921749
#SPJ6
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:
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.
What is a geam in the ggplot2 system?
a) a plotting object like point, line, or other shape
b) a method for making conditioning plots
c) a method for mapping data to attributes like color and size
d) a statistical transformation
Answer:
a) a plotting object like point, line, or other shape
Explanation:
A geom in the ggplot2 system is "a plotting object like point, line, or other shape."
A Geom is used in formulating different layouts, shapes, or forms of a ggplot2 such as bar charts, scatterplots, and line diagrams.
For example some different types of Geom can be represented as geom_bar(), geom_point(), geom_line() etc.
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.
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)
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.