x is available to code that is written outside the Circle class. is False.
What are the differences between private and public derivations in C++?Everyone will have access to all of the class participants who have been made public. Only the functions contained within the class have access to the class members that have been designated as private. Other classes may also access the data members and member methods that have been declared public.Members can be accessed by others outside the class.Members cannot be accessed (or viewed) from outside the class if they are private.protected members can be accessed in inherited classes but cannot be accessed from outside the class.The public and protected members of the base class are protected in the derived class due to protected inheritance. The public and protected members of the base class become private in the derived class due to private inheritance.To learn more about class refer,
https://brainly.com/question/28875336
#SPJ4
Ok so im going to list my question and then the work so far.
Here is the code so far:(THE PROBLEM WITH THE CODE IS THAT THE IM SUPPOSE TO USE FIND() TO REPEATEDLY CHANGE THE OCCURRENCE OF THE WORD "MASK" TO THE WORD "HAT" IN THE FILE BUT AM KIND OF LOST HAVE BEEN WORKING ON THIS FOR A WEEK AND A HALF) ALSO I CAN NOT use the replace method, count method, split method, range() function, or lists in your solution. HAVE BEEN TRYING TO FIND SUM WAY TO USE FIND() BUT AM COMING UP SHORT
CODE:
#Get input file name
fileOne = input("Enter the input file name :")
#Get output file name
fileTwo = input("Enter the output file name :")
'''Get a string that will be searched in the source file
to locate all occurrences of the string'''
targetString = input("Enter the target string :")
'''Get a string that will replace each occurrence of the target
string in the source file'''
replacementString = input("Enter the replacement string :")
files =input("Enter a file with the word 'mask':")
#Open the input file in read mode
f1 = open(fileOne,"r+")
#Read the content of input file
content =f1.read()
#Replace the target string with the replacement string
content =f1.find('mask')
print(files[0:content]+ "hat"+ files[content +content:len(files)])
#Open the output file in write mode
f1 = open(fileTwo,"w")
'''Write the content after all of the occurrences of the target
string have been found and replaced by the replacement string'''
f1.close()
Answer:
qwerty
Explanation:
qwerty
XYZ Medicomplex hospital have recently installed a large computer system having a high performance processor and about 25 PCs attached with the processor through a Local Area Network (LAN). You have been selected as Information System Auditor and are asked to perform an audit ffor the hospital. What are the important steps you have to go through for this audit? Write your answer in maximum 200 words.
An IT audit is required to guarantee that your system is secure and not exposed to assaults. An IT audit's major goal is to assess the availability of computer systems, the security, and confidentiality of information within the system, and if the system is accurate, reliable, and timely.
What should an IT Audit Include?Depending on the size of your firm, you may do a single comprehensive IT audit or examine particular sections of your infrastructure. The aim is to identify the risks associated with your IT systems and discover strategies to minimize those risks, whether by resolving current issues, improving staff behavior, or deploying new technologies.
An IT audit must involve the following steps:
Determine the goal of the IT audit.Create an audit plan to meet those goals.Collect and analyze all relevant IT controls' data and information.Execute tests like data extraction or a thorough software analysis.Any discoveries should be reported.Follow-UpLearn more about IT Audit:
https://brainly.com/question/14277768
#SPJ1
What is the best way to deal with a spam
Simply ignoring and deleting spam is the best course of action. Avoid responding to or engaging with the spam communication because doing so can let the sender know that your contact information is still live and invite additional spam in the future. Additionally, it's critical to mark the email as spam using your email program or by reporting it to the relevant authorities. Make careful to report the spam to the proper authorities for investigation if it appears to be a phishing scheme or contains hazardous content.
Ranjan have received an email saying that he won a free gift project to climb the gift voucher Ranjana give some personal details suggest Bank account number Bank name exact graph which type of security threat is indicated in the mail? should he answer the mail?
Which of the following is NOT an arithmetic operator?
Considering the available options, the choice that is NOT an arithmetic operator is "]."
What is Arithmetic Operator?Arithmetic Operator is the term used in computer science to describe the mathematical function that takes two operands while making calculations.
Arithmetic Operators are generally used for arithmetic and sequential calculation.
Major Arithmetic Operators + (addition), - (subtraction), * (multiplication), / (division), % (modulo).++ Autoincrement−− AutodecrementHence, in this case, it is concluded that the correct answer is "]."
The available options are:
a.+
b.-
c. *
d. ]
Learn more about Arithmetic Operator here: https://brainly.com/question/5973382
Write a recursive function is_pow2(n) that returns True if the positive integer n is an integer power of 2, and False otherwise. For example: function call return value is_pow2(1) True is_pow2(2) True is_pow2(3) False is_pow2(4) True is_pow2(5) False is_pow2(6) False is_pow2(7) False is_pow2(8) True is_pow2(9) False is_pow2(255) False is_pow2(256) True Hint: Consider using repeated floor division.
Answer:
In Python:
def is_power(n):
if n > 2:
n = n/2
return is_power(n)
elif n == 2:
return True
else:
return False
Explanation:
This defines the function
def is_power(n):
If n is greater than 0
if n > 2:
Divide n by 2
n = n/2
Call the function
return is_power(n)
If n equals 2
elif n == 2:
Return True
return True
If n is less than 2
else:
Then, return false
return False
We would like the set of points given in the following figure into 1D space. The set of points has been
generated using this instruction [X, y = make_moons(n_samples = 100)], where X are the 2D features
and y are the labels(blue or red).
How to do that while keeping separable data point with linear classification? Give the
mathematics and the full algorithm.
How to apply the SVM algorithm on this data without dimension reduction? Give the
mathematics and full algorithm.
One way to project the 2D data points onto a 1D space while preserving linear separability is through the use of a linear discriminant analysis (LDA) technique. LDA finds the linear combination of the original features that maximizes the separation between the different classes.
What is the mathematics in SVM algorithm?The mathematics behind LDA involve finding the eigenvectors of the within-class scatter matrix and the between-class scatter matrix and selecting the eigenvector that corresponds to the largest eigenvalue. The full algorithm for LDA can be outlined as follows:
Compute the mean vectors for each class
Compute the within-class scatter matrix (SW) and the between-class scatter matrix (SB)Compute the eigenvectors and eigenvalues of the matrix (SW⁻¹SB)Select the eigenvector that corresponds to the largest eigenvalue as the linear discriminantProject the original data onto the new 1D space using the linear discriminantRegarding the SVM algorithm, it can be applied directly to the original 2D data without the need for dimension reduction. The mathematics behind SVM involve finding the hyperplane that maximizes the margin, or the distance between the closest data points of each class, while also ensuring that the data points are correctly classified.
The full algorithm for SVM can be outlined as follows:
Select a kernel function (e.g. linear, polynomial, radial basis function)Train the model by solving the optimization problem that maximizes the marginUse the trained model to classify new data points by finding the hyperplane that separates the different classesIt is important to note that, in case of non-linearly separable data, SVM algorithm uses the kernel trick to map the original data into a higher dimensional space, where the data is linearly separable.Learn more about algorithm from
https://brainly.com/question/24953880
#SPJ1
Which of the following is not an input device?
Printers
Sensors
keyboards
Scanners
Answer:
Printers
Explanation:
Sensors detect something and send some kind of pulse in response.
Keyboards can be used to input characters into a device
Scanners can be used to input a digital version of some material document.
Only printers take a digital form from the computer and turn it into something physical
A method for breaking a program down into smaller parts
Answer:
Top Down Design
A method for breaking a program down into smaller parts
Explanation:
Answer:
Top Down Design
A method for breaking a program down into smaller parts
Explanation:
14. use dotted red line and * for the marks for the ozoneconc. use dotted blue line and x for the marks of the standard2015. [1 point]
The dotted red line with * marks can be used to represent the ozone concentration, while the dotted blue line with x marks can be used to represent the standard set by the EPA in 2015.
What is ozone?Ozone is a highly reactive, toxic gas composed of three oxygen atoms. It is found both in the Earth's upper atmosphere, known as the stratosphere, and at ground level. In the stratosphere, ozone is created naturally by ultraviolet radiation, forming a layer that protects life on Earth from the Sun's harmful ultraviolet radiation. However, at ground level ozone is considered a pollutant, created by the reaction of sunlight with nitrogen oxides and volatile organic compounds. This type of ozone is known as ground-level or “bad” ozone and can cause serious health problems, such as asthma and other respiratory illnesses. It can also damage crops, trees, and other vegetation, as well as buildings and other materials. Reducing air pollution and emissions from vehicles, industry, and other sources can help to reduce the amount of ground-level ozone.
The red line will show the current ozone concentration, while the blue line will show the standard that is set. This can be used to show the changes in ozone concentrations over time and how they compare to the standard set.
To learn more about EPA
https://brainly.com/question/10852073
#SPJ4
Consider the code fragment below. Show the values stored at each location in memory and as they change while the code executes. Use the memory addresses given in the comments following each statement. Assume all integer and pointer sizes are four bytes and each box in the memory representation is 4 bytes.
int x; // x is at memory address 5000
int *y; // *y is at memory address 5004
int *z; // *z is at memory address 5008
int *a; // a is at memory address 5012
z=&x;
y=malloc(5 * sizeof(int)); // malloc returns
// address 6000
X = 10;
y[1] = 15;
y[2] = *z; x=*(y + 1);
a = malloc(sizeof(int)); // malloc returns // address 6020
*a = *y; a = z; *z= 25; *a = 12; y[3] = *z; y[4] = x; y[0] = x;
Answer:
see explaination
Explanation:
Final value :-
Memory => value = reference in code
5000 => 12 = x
5004 => 6000 = *y
5008 => 5000 = *z
5012 => 5000 = *a
6000 => 12 = y[0]
6004 => 15 = y[1]
6008 => 10 = y[2]
6012 => 12 = y[3]
6016 => 12 = y[4]
6020 =>
With clear examples, describe how artificial intelligence is applied in fraud detection
Answer:
AI can be used to reject credit transactions or flag them for review. Like at Walmart
Explanation:
I work with AI, i know what i'm talking about.
Write a function called matches that takes two int arrays and their respective sizes, and returns the number of consecutive values that match between the two arrays starting at index 0. Suppose the two arrays are {3, 2, 5, 6, 1, 3} and {3, 2, 5, 2, 6, 1, 3} then the function should return 3 since the consecutive matches are for values 3, 2, and 5.
Answer:
Written in C++
int matches(int arr1[], int arr2[], int k) {
int count = 0;
int length = k;
for(int i =0; i<length; i++) {
if(arr1[i] == arr2[i]) {
count++;
}
}
return count;
}
Explanation:
This line defines the function
int matches(int arr1[], int arr2[], int k) {
This line initializes count to 0
int count = 0;
This line initializes length to k
int length = k;
This line iterates through the array
for(int i =0; i<length; i++) {
The following if statement checks for matches
if(arr1[i] == arr2[i]) {
count++;
}
}
This returns the number of matches
return count;
}
See attachment for complete program
Fill in the blank to complete the “even_numbers” function. This function should use a list comprehension to create a list of even numbers using a conditional if statement with the modulo operator to test for numbers evenly divisible by 2. The function receives two variables and should return the list of even numbers that occur between the “first” and “last” variables exclusively (meaning don’t modify the default behavior of the range to exclude the “end” value in the range). For example, even_numbers(2, 7) should return [2, 4, 6].
def even_numbers(first, last):
return [ ___ ]
print(even_numbers(4, 14)) # Should print [4, 6, 8, 10, 12]
print(even_numbers(0, 9)) # Should print [0, 2, 4, 6, 8]
print(even_numbers(2, 7)) # Should print [2, 4, 6]
This code creates a new list by iterating over a range of numbers between "first" and "last" exclusively. It then filters out odd numbers by checking if each number is evenly divisible by 2 using the modulo operator (%), and only adding the number to the list if it passes this test.
Write a Python code to implement the given task.def even_numbers(first, last):
return [num for num in range(first, last) if num % 2 == 0]
Write a short note on Python functions.In Python, a function is a block of code that can perform a specific task. It is defined using the def keyword followed by the function name, parentheses, and a colon. The function body is indented and contains the code to perform the task.
Functions can take parameters, which are values passed to the function for it to work on, and can return values, which are the result of the function's work. The return keyword is used to return a value from a function.
Functions can be called by their name and passed arguments if required. They can be defined in any part of the code and can be called from anywhere in the code, making them reusable and modular.
Functions can make the code more organized, easier to read, and simpler to maintain. They are also an essential part of object-oriented programming, where functions are known as methods, and they are attached to objects.
To learn more about iterating, visit:
https://brainly.com/question/30039467
#SPJ1
You must give careful consideration before adding text to a placeholder because once text has been entered into a placeholder, the placeholder cannot be deleted.
True
False
Write a program that will filter a list of non-negative integers such that all duplicate values are removed. Integer values will come from standard input (the keyboard) and will range in value from 0 up to 2,000,000,000. Input will be terminated by the special value, -1. Once the input is read in you should output (to the screen) the list of numbers as a sorted list (smallest to largest) with one value listed per line where all duplicates have been removed. The primary difficulty with this program is that there are an enormous number of input values and an expected large number of duplicate numbers.
Answer:
The program in python is as follows:
original = []
inp = int(input(": "))
while inp>=0:
if inp<=2000000000:
original.append(inp)
inp = int(input(": "))
newlist = []
for i in original:
if i not in newlist:
newlist.append(i)
newlist.sort()
for i in newlist:
print(i)
Explanation:
This initializes the original list
original = []
This gets input for the list
inp = int(input(": "))
The following loop is repeated while input is not negative
while inp>=0:
This ensures that only inputs from 0 and 2000000000 enters the list
if inp<=2000000000:
original.append(inp)
Prompt the user for another input
inp = int(input(": "))
This initializes a newlist
newlist = []
Iterates through the original list
for i in original:
Check for duplicate
if i not in newlist:
Each number is entered to the new list, without duplicate
newlist.append(i)
This sorts the new list in ascending order
newlist.sort()
This prints the list item one per line
for i in newlist:
print(i)
QUESTION 1 Choose a term from COLUMN B that matches a description in COLUMN A. Write only the letter (A-L) next to the question number (1.1-1.10) in the ANSWER BOOK. COLUMN A 1.1. Substances that provide nourishment to the body 1.2. How you think and feel about something 1.3. Helps to cope with the challenges of being a student Exercise relating to increasing your heart rate 1.5. Having traits or qualities traditionally associated with 1.4. men 1.6. Seeing, hearing, or sensing something that is not really there 1.7. 1.8. Leaving everything till the last minute Is Chapter 2 in the Constitution of SA 1.9. Group of people who share notes and information 1.10. Ability to exercise for extended period of time COLUMN B A hallucination B nutrients C study group D procrastinate E endurance F Bill of Rights G Cardio-vascular H masculine I attitude J resilience K strength L flexibility
Answer:
1.1 B nutrients 1.2 I attitude 1.3 J resilience 1.4 H masculine 1.5 L flexibility 1.6 A hallucination 1.7 D procrastinate 1.8 F Bill of Rights 1.9 C study group 1.10 E endurance
Explanation:
discuss how sentiment analysis works using big data?
sentiment analysis is the process of using text analytics to mine various of data for opinions. often sentiment analysis is done on the data that is collected from the internet & from various social media platforms.
1. Human to ____Human____
2. _Human________ to machine
3. Machine to ______Machine
4. _______________ to machine
Answer:
uhmmm human machine whaT?
Explanation:
Answer:
4 is Machine to machine
Using touch or mouse to move or copy cells is calLed_______.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
Using touch or mouse to move or copy cells is called Drag and Drop.
It can be called dragging when moving, or dragging or filling when copying. If you are using Fill Handle, you are filling, but you can also drag to copy something to a non-contiguous location with the mouse, while holding the Ctrl key.
Write a program that reads in the first name, hourly rate and number of hours worked for 5 people. Print the following details for each employee. Name of employee The number of hours worked Their weekly gross pay.This is calculated by multiplying hours worked times hourly rate. If hours worked per week is greater than 40, then overtime needs to also be included. Overtime pay is calculated as the number of hours worked beyond 40 * rate * 1.5 Taxes withheld Our tax system is simple, the government gets 20% of the gross pay. Net paid The amount of the check issued to the employee.
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
String name;
double hourlyRate;
int hours;
double grossPay = 0.0;
double netPaid = 0.0;
double taxes = 0.0;
Scanner input = new Scanner(System.in);
for (int i=1; i<=5; i++){
System.out.print("Enter the name of the employee #" + i + ": ");
name = input.nextLine();
System.out.print("Enter the hourly rate: ");
hourlyRate = input.nextDouble();
System.out.print("Enter the hours: ");
hours = input.nextInt();
input.nextLine();
if(hours > 40)
grossPay = (40 * hourlyRate) + ((hours - 40) * hourlyRate * 1.5);
else
grossPay = hours * hourlyRate;
taxes = grossPay * 0.2;
netPaid = grossPay - taxes;
System.out.println("\nName: " + name);
System.out.println("The number of hours worked: " + hours);
System.out.println("The weekly gross pay: " + grossPay);
System.out.println("Taxes: " + taxes);
System.out.println("Net Paid: " + netPaid + "\n");
}
}
}
Explanation:
*The code is in Java
Declare the variables
Create a for loop that iterates 5 times (for each employee)
Inside the loop:
Ask the user to enter the name, hourlyRate and hours
Check if hours is above 40. If it is, calculate the gross pay and overtime pay using the given instructions. Otherwise, do not add the overtime pay to the gross pay
Calculate the taxes using given information
Calculate the net paid by subtracting the taxes from grossPay
Print the name, hours, grossPay, taxes, and netPaid
You are given an initially empty queue and perform the following operations on it: enqueue (B), enqueue (A), enqueue(T), enqueue(), dequeue(), dequeue(), enqueue (Z), enqueue(A), dequeue(), enqueue(1), enqueue(N), enqueue(L), dequeue(), enqueue(G), enqueue(A), enqueue(R) enqueue(F), dequeue), dequeue(). Show the contents of the queue after all operations have been performed and indicate where the front and end of the queue are. Describe in pseudo-code a linear-time algorithm for reversing a queue Q. To access the queue, you are only allowed to use the methods of a queue ADT. Hint: Consider using an auxiliary data structure.
Reversing a queue Q in linear time: ReverseQueue(Q): stack = []; while Q: stack.append(Q.pop(0)); while stack: Q.append(stack.pop()).
After performing the given operations on the initially empty queue, the contents of the queue and the positions of the front and end of the queue are as follows:
Contents of queue: T Z 1 A G A R F
Front of queue: points to the element 'T'
End of queue: points to the element 'F'
To reverse a queue Q in linear time, we can use a stack as an auxiliary data structure. The algorithm will work as follows:
Create an empty stack S.Dequeue each element from the queue Q and push it onto the stack S.Once all elements have been pushed onto the stack S, pop each element from the stack S and enqueue it back onto the queue Q.The elements of the queue Q are now in reversed order.Pseudo-code for the algorithm is as follows:
reverseQueue(Q):
create a stack S
while Q is not empty:
x = dequeue(Q)
push(S, x)
while S is not empty:
x = pop(S)
enqueue(Q, x)
This algorithm reverses the order of the elements in the queue in linear time O(n), where n is the number of elements in the queue.
Learn more about algorithm here:
https://brainly.com/question/17780739
#SPJ4
What will the output of the statements below? System.out.println(9%2); System.out.println(12%6); The output of the first statement is * The output of the second statement is
Answer:
You get Exact 30 print of that sentence on a comadore 64
Explanation:
Just simple basic science. hope this helps
How could a computer more closely match a sound wave to produce a quality digital copy of a sound?
Answer:
have more time samples that are closer together.
Explanation:
To improve the quality and store the sound at a higher quality than the original, use more time samples that are closer together. More detail about the sound may be collected this way so that when it is converted to digital and back to analog, it does not lose as much quality.
I hope this helps you!!! Sorry for being late.
Answer: By increasing the sample rate of the recording
Explanation:
What is the difference between copy- paste and cut-paste
Answer:
Copy/ Paste - In the case of Copy/paste, the text you have copied will appear on both the locations i.e the source from where you copied the text and the target where you have pasted the text.
Cut/paste- In the case of Copy/paste, the text you have copied will appear on only one location i.e the target where you have pasted the text. The text will get deleted from the original position
Which of the following types of data can be stored using cloud computing? Check all of the boxes that apply.
photos
movies
documents
music
CORRECT: all 4 are correct
Note tht all the options can be stored using cloud computing. (A -- D)
what is Cloud Computing?
Cloud computing refers to the on-demand availability of computer system resources, particularly data storage and computational power, without the user's direct active supervision. Large clouds frequently have functions spread across numerous locations, each of which is a data center.
A wide range of services rely on cloud computing. This encompasses anything from consumer services like G. mail or the cloud backup of your smartphone's images to services that allow major organizations to host all of their data and operate all of their apps in the cloud.
Learn more about cloud computing at:
https://brainly.com/question/29737287
#SPJ1
Answer: All of them
Explanation:
WORTH 75 POINTS!!
Which best describes the video encoding process?
converting analog video into digital video
filming a video at 30 frames per second
saving a digital video in a specific file format
watching a video while the file downloads
Answer:
To watch a digital video, you must use the codec that was used to encode the video file. Most videos are compressed.
Answer:
Why is compression important for video streaming?
to increase the number of frames per second so that motion appears smooth
to watch video without waiting for it to download(this one)
to improve image quality
to increase file size
Explanation:
What is an example of an absolute cell reference? 52% D2 $B$5 !90!
Answer:
$B$5 is an example of absolute cell reference
Explanation:
There are two types of referencing in MS Excel.
1. Relative
2. Absolute
Relative cell referencing changes according to the corresponding new cells when it is copied in other cells. MS Excel uses relative cell referencing by default.
Absolute cell referencing uses dollar sign with the row number and column name. When any formula with absolute referencing is copied, the cell addresses used remain the same.
From the given choices in question,
$B$5 is an example of absolute cell reference
An example of an absolute cell reference is "$B$5".
Thus, option (C) is correct.
Cell references can be either relative or absolute.
A relative cell reference changes when it is copied to another cell.
For example, if you have a formula in cell C2 that references cell A2 as "=A2+1", and you copy this formula to cell C3, it will automatically adjust to "=A3+1".
An absolute cell reference remains constant, regardless of where it is copied. When a cell reference is made absolute, the dollar sign ($) is used to indicate this.
For example, if you have a formula in cell C2 that references cell B5 as "=B$5+1", and you copy this formula to cell D3, it will still refer to cell B5 as "=B$5+1". The row and column references remain fixed.
Therefore, "$B$5" is an absolute cell reference.
Thus, option (C) is correct.
Learn more about Cell Reference here:
https://brainly.com/question/30714866
#SPJ6
Help me with this ……..
Answer:
So is this talking about this pic?
how many jobs can you get without a college degree